-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core] docLinks server-side service #95389
Comments
I think the best place for the links currently living in The doc build script will have to be updated to also look for the package file where we moved the links definition. |
What do you think about the package also allowing devs to register new doc links? We have a few different types ATM and would need to account for that and probably have different methods to generate the link fairly easily. For example, The Is this a crazy idea? |
The problem is that the doc build script is basically just regexp-parsing the content of the docLink file to extract the links, interpolate them against the variables, and then check the validity of the URLs (it's as scary as it sounds but that how that works currently), which is why we can't really use any kind of dynamic registration for links at the moment, as it will cause the doc CI job to just miss/ignore these links As the CI job is meant to be 'very generic', as it gather and validate links from all products of the stack, I don't think this could be improved specifically for Kibana without a lot of work. cc @gtback |
Thanks for the ping @pgayvallet. Yes, the current implementation doesn't evaluate any TypeScript code at all, it just munges the contents of the TypeScript file with Perl to pull out links and do some basic substitution. I'm not tied to that implementation, though (if there were some service that spit out a list of links to check as part of CI, or some other way to build a list of docs pages that Kibana links to, I'd be happy to adapt the docs link-checking code). |
Hopefully this issue would also address the need for hard-coded links in server-side code like the Fleet integration UX (per discussion in #113666 (comment)) |
That would also allow |
So, we'll want to:
Also, the core team will NOT take ownership of the |
Thanks, @pgayvallet . One issue we've run into before is if there's a "stub file" in one of the old locations, it won't check the links in the newer location, unless we add new paths to the top of the if/else chain in |
Yea, that was what I was planning to try. I'll make sure to ping you if I need anything, thank you |
When converting the legacy
ui/documentation_links
to the new platform we built it as a browser-side only service to match the features of the legacy implementation.However there are a number of places where we it would be helpful to be able to construct a message on the server-side to point users to our documentation e.g.:
(This will probably also require updating the doc build script)
The text was updated successfully, but these errors were encountered: