4 ms·
Docusaurus is great! We migrated from Sphinx to Docusaurus[1] recently, the navigation is much better than before. One thing that bothers us: we have not figur
by daviesliu 5y ago
Docusaurus is great! We migrated from Sphinx to Docusaurus[1] recently, the navigation is much better than before.
One thing that bothers us: we have not figure a way to name the anchor that both work in Github (`<span id='aws-s3'/>`) and Docusaurus (`{#aws-s3}`), for example [2]. Any ideas?
[1] https://juicefs.com/docs/community/introduction https://juicefs.com/docs/community/introduction
[2] https://github.com/juicedata/juicefs/blob/main/docs/en/how_to_setup_object_storage.md https://github.com/juicedata/juicefs/blob/main/docs/en/how_t...
- navaneethpk 5y agoHaven't tried this but will it work on both GitHub and Docusaurus if the section "S3" is renamed as "Amazon S3" and then removing the "{#aws-s3}" part?
- daviesliu 5y agoYes, we can use `#amazon-s3` as the anchor, then the name could be long, for example, `#digitalocean-spaces-object-storage`), and it will not work in Chinese. Your suggestion is better than current one, we will use that, thanks!
- dsmmcken 5y agoNot a great solution, but you could create the links github style, then write a remark/rehype plugin that transforms them to Docusaurus style at build time. I would probably just live with it though.
- kaycebasques 5y agoWhat was your motivation(s) for migrating away from Sphinx?