-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[DOCS] Update hardcoded reference doc links URLs for v9 #124798
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
Conversation
Pinging @elastic/es-docs (Team:Docs) |
server/src/main/resources/org/elasticsearch/common/reference-docs-links.txt
Outdated
Show resolved
Hide resolved
server/src/main/resources/org/elasticsearch/common/reference-docs-links.txt
Outdated
Show resolved
Hide resolved
server/src/main/resources/org/elasticsearch/common/reference-docs-links.txt
Outdated
Show resolved
Hide resolved
@Override | ||
public String toString() { | ||
return "https://www.elastic.co/guide/en/elasticsearch/reference/" + VERSION_COMPONENT + "/" + linksBySymbol.get(name()); | ||
return "https://www.elastic.co/docs/" + VERSION_COMPONENT + "/" + linksBySymbol.get(name()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the URLs are handled differently for API docs and other docs, could we instead just pass in the info like this (and not use it in the API links)?
return linksBySymbol.get(name(VERSION_COMPONENT));
Or alternatively, not pass in the VERSION_COMPONENT at all and just have the full URL in the *.txt file, akin to what we're doing in the Elasticsearch specification repo in https://github.com/elastic/elasticsearch-specification/blob/main/specification/_doc_ids/table.csv?
server/src/main/resources/org/elasticsearch/common/reference-docs-links.txt
Show resolved
Hide resolved
server/src/main/resources/org/elasticsearch/common/reference-docs-links.txt
Show resolved
Hide resolved
server/src/main/resources/org/elasticsearch/common/reference-docs-links.txt
Outdated
Show resolved
Hide resolved
server/src/main/resources/org/elasticsearch/common/reference-docs-links.txt
Outdated
Show resolved
Hide resolved
server/src/main/resources/org/elasticsearch/common/reference-docs-links.txt
Show resolved
Hide resolved
Co-authored-by: shainaraskas <[email protected]>
Thanks @lcawl! Just to summarize: once Lisa's two in-flight PRs get merged, we have the following two API ref links to decide upon:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @DaveCTurner, lgtm, just an optional comment
@shainaraskas the anchors in the bootstrap Checks section don't really work because we're using dropdowns (and Maybe we'd want to use H3s with the custom anchors instead? LMKWYT Edit: this is a bug on safari/firefox, works fine on chrome |
💚 Backport successful
|
Closes #124040
TODO
Dev
ReferenceDocs.java
logic to handle version[ing/less] based on new URL structures outlined hereDocs
bootstrap-checks*
pages (in-flight )