Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
334 views
in Technique[技术] by (71.8m points)

tableofcontents - The docusaurus v2 doc and blog anchors only work on localhost

I'm using Docusaurus v2. The right-side Table of Contents (TOC) anchors in my docs and blogs successfully scroll down the page when I'm testing on localhost. However, when I deploy to the live site and click one of the TOC anchors they use the homepage url as a base instead of the url of the page that contains the TOC. Has anyone run into this before?

Here's a link to see it live https://www.iot-ensemble.com/docs/getting-started/connecting-first-device

question from:https://stackoverflow.com/questions/65947852/the-docusaurus-v2-doc-and-blog-anchors-only-work-on-localhost

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...