[docs] Indicate navigation links that take the user to an external site
Feature Request / Improvement
The Iceberg docs left-hand nav currently has a mixture of links to within the docs, and those external such as third-party sites. The UX of this can grate, because the user is never sure when they're leaving the Iceberg docs or not.
We should update the docs so that link use one of the generally recognised icons to indicate an external link such as https://fontawesome.com/v4/icon/external-link
Query engine
None
Willingness to contribute
- [x] I can contribute this improvement/feature independently
- [ ] I would be willing to contribute this improvement/feature with guidance from the Iceberg community
- [ ] I cannot contribute this improvement/feature at this time
+1! this would be great. Do you know how we can go about implementing this? Maybe there's a plugin to do this
found link-marker from https://github.com/mkdocs/catalog/blob/main/README.md#-links--references https://github.com/timmeinerzhagen/mkdocs-link-marker
Looks like this is our use case!
Hi all, I’d like to take this one.
I looked at the earlier comments and can try implementing it with mkdocs-link-marker so links that go outside the Iceberg docs are clearly indicated, while internal links stay as-is.
My plan is:
- Add/configure the plugin in the docs site.
- Mark only external links in the nav/docs.
- Keep the styling lightweight so it matches the current docs theme.
- Double-check internal navigation behavior and add a short contributor note if needed.
If that sounds good, I can open a small PR first with screenshots so we can agree on UX before expanding it.
@kevinjqliu Hey Kevin,
I tried mkdocs-link-marker route for this issue but it works only for regular pages content, not the nav bar. I come up with a workaround by adding following to extra.css:
.md-tabs__link[href^="http"]:not([href^="https://iceberg.apache.org"]) .md-ellipsis::after,
.md-nav__link[href^="http"]:not([href^="https://iceberg.apache.org"]) .md-ellipsis::after {
content: " ↗";
color: var(--md-typeset-a-color);
}
It is not ideal as it is not the actual industry standard icon, the one you can see in this issues description. Let me know if it worth pursuing and creating PR.
It looks like this:
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.