-
Notifications
You must be signed in to change notification settings - Fork 8
Link style for external and anchor links #254
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
Deploy Preview Available Via |
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.
I don't see any changes in the anchor links?
Anyway LGTM
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.
Minor change. Approving it considering it will be incorporated.
Just a suggestion, we should not be handling links that way. It becomes extremely implicit and increases maintenance. Over time we should move to a batter approach. Noting it here just for remembering.
@dandimeo The changes should look like this, before: ![]() After: ![]() Note GeoJSON, which is an anchor link (only anchor, to go to a different headline on the same page) @nikhil-varma Yes, I agree that having to set the |
@Simran-B Styling & class is OK. What I meant was about the event listener JS function. That felt very implicit and needs a better approach. Eg: We are not writing Can be discussed in a later scope. For now, this is OK to go. |
Created a ticket about the link handler: https://arangodb.atlassian.net/browse/DOC-599 |
Converted to draft because the current implementation of aliases conflicts with the merged class for internal as well as external links, making the version number/alias appear in external URLs and thus breaking the links. |
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.
LGTM
Description
Use internal link style also for anchor links, as well as for external links. Add icon to external links to indicate that they reference external content and open in a new tab.
Demo: https://deploy-preview-254--docs-hugo.netlify.app/3.11/index-and-search/indexing/working-with-indexes/geo-spatial-indexes/ (note that the GeoJSON anchor link doesn't scroll to the right location but that is addressed by #251 which is part of #232)
Upstream PRs