Skip to content
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

Consider current anchor #1

Open
OLibutzki opened this issue Apr 22, 2021 · 3 comments
Open

Consider current anchor #1

OLibutzki opened this issue Apr 22, 2021 · 3 comments

Comments

@OLibutzki
Copy link

Is it possible to consider the current anchor?

Like https://docs.spring.io/spring-boot/docs/2.2.0.RELEASE/reference/htmlsingle/#cloud-deployment-openshift --> https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#cloud-deployment-openshift

@maciejwalkowiak
Copy link
Owner

Current anchor should work already - your specific example works too, at least for me.. 🤔

@OLibutzki
Copy link
Author

Yes, it works if visit the doc site with the anchor in the first place.

If you navgate and want to switch to the current docs then the link to the current docs does not consider the latest anchor.

@maciejwalkowiak
Copy link
Owner

Had a look into this, and ideally its added to the tocbot - the script Spring docs uses for table of contents. Otherwise URL change either gets out of sync with the table of contents, or I would have to copy quite a bit of tocbot code. Created tscanlin/tocbot#229 - lets see how it goes.

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

No branches or pull requests

2 participants