🐛 Bug Report
When the docsUrl setting is configured to put all docs in the root, i.e. docsUrl="", images that are linked to in documents using  are broken. Whereas this works fine when built/published; images are linked to correctly.
Yes
To Reproduce
- Initialise a new Docusaurus project.
- Rename the example docs directory to
docs.
- Yarn install the modules in the website directory.
- Delete the example blog directory.
- Remove the blog entry from
headerLinks in website/siteConfig.js.
- Add
docsUrl: "" setting to website/siteConfig.js.
- Add
docs/assets directory and put an example image in there.
- Link to your example image in a doc document:
.
Expected behavior
When running the website locally, the image should be shown.
Actual Behavior
Image link is broken when running website locally (yarn start).
Reproducible Demo
Repo:
https://github.com/will-stone/docusaurus-image-issue
Site Config:
https://github.com/will-stone/docusaurus-image-issue/blob/master/website/siteConfig.js
🐛 Bug Report
When the
docsUrlsetting is configured to put all docs in the root, i.e.docsUrl="", images that are linked to in documents usingare broken. Whereas this works fine when built/published; images are linked to correctly.Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
docs.headerLinksinwebsite/siteConfig.js.docsUrl: ""setting towebsite/siteConfig.js.docs/assetsdirectory and put an example image in there..Expected behavior
When running the website locally, the image should be shown.
Actual Behavior
Image link is broken when running website locally (
yarn start).Reproducible Demo
Repo:
https://github.com/will-stone/docusaurus-image-issue
Site Config:
https://github.com/will-stone/docusaurus-image-issue/blob/master/website/siteConfig.js