Skip to content

[Feature Request]: Link checking related to API docs #974

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

Open
2 tasks done
lcawl opened this issue Apr 5, 2025 · 0 comments
Open
2 tasks done

[Feature Request]: Link checking related to API docs #974

lcawl opened this issue Apr 5, 2025 · 0 comments

Comments

@lcawl
Copy link
Contributor

lcawl commented Apr 5, 2025

Prerequisites

  • I have searched existing issues to ensure this feature hasn't already been requested
  • I have tested using the latest version of docs-builder

What problem are you trying to solve?

While editing the list of "current" redirects in preparation for GA, I was reminded that we have an increasing number of links between the narrative docs and the API docs but AFAIK there is no link checking to ensure those links remain valid.

Possibly related to #123 and #949, however there is even less human intervention, since the API documents are largely automated, so humans are even less likely to know when a specific target disappears.

Proposed Solution

Similar to #123 it seems to me that we need to have a way of generating a list of URLs (in this case, ones used by the docs, the product, or in our redirects list that target https://www.elastic.co/docs/api/) and periodically testing them. When one of them fails, I assume human intervention will be required to:

  • update the source of the link to point to a different target, or
  • investigate whether the target was removed in error

Examples and Research

One example of a situation where API endpoints disappear is when they've gone from being "deprecated" to "discontinued". In such a case if we have pages that still need to cover the older versions' behaviour, we'd update them to use the older branches of the API docs (e.g. there are Upgrade Assistant APIs that exist in https://www.elastic.co/docs/api/doc/kibana/v8/ that do not exist in https://www.elastic.co/docs/api/doc/kibana/v9/ or https://www.elastic.co/docs/api/doc/kibana/ ).

Alternative Solutions

No response

Additional Context

No response

How important is this feature to you?

Nice to have

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant