-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Relative docs links are broken in "versioned" docs when building with "skip-next-release" #1805
Comments
parkas2018
added a commit
to parkas2018/docusaurus
that referenced
this issue
Oct 8, 2019
…build option The problem is described in issue facebook#1805 and it seems to have existed for a long time. Given versioning is enabled and the repository contains versioned docs, if the build option `--skip-next-release` is used when building the static site, the versioned docs contains a lot of broken links. The generator is not able to locate the targetted file for the relative link and so it leaves the html links as ".md" instead of ".html". The issue appears to be isolated to `website/versioned-docs/` only and only if the above mentioned build option is used. This change fixes this issue and allows for generating site with appropriate relative links.
parkas2018
added a commit
to parkas2018/docusaurus
that referenced
this issue
Oct 18, 2019
…build option The problem is described in issue facebook#1805 and it seems to have existed for a long time. Given versioning is enabled and the repository contains versioned docs, if the build option `--skip-next-release` is used when building the static site, the versioned docs contains a lot of broken links. The generator is not able to locate the targetted file for the relative link and so it leaves the html links as ".md" instead of ".html". The issue appears to be isolated to `website/versioned-docs/` only and only if the above mentioned build option is used. This change fixes this issue and allows for generating site with appropriate relative links.
parkas2018
added a commit
to parkas2018/docusaurus
that referenced
this issue
Oct 21, 2019
…build option The problem is described in issue facebook#1805 and it seems to have existed for a long time. Given versioning is enabled and the repository contains versioned docs, if the build option `--skip-next-release` is used when building the static site, the versioned docs contains a lot of broken links. The generator is not able to locate the targetted file for the relative link and so it leaves the html links as ".md" instead of ".html". The issue appears to be isolated to `website/versioned-docs/` only and only if the above mentioned build option is used. This change fixes this issue and allows for generating site with appropriate relative links.
parkas2018
added a commit
to parkas2018/docusaurus
that referenced
this issue
Oct 31, 2019
…build option The problem is described in issue facebook#1805 and it seems to have existed for a long time. Given versioning is enabled and the repository contains versioned docs, if the build option `--skip-next-release` is used when building the static site, the versioned docs contains a lot of broken links. The generator is not able to locate the targetted file for the relative link and so it leaves the html links as ".md" instead of ".html". The issue appears to be isolated to `website/versioned-docs/` only and only if the above mentioned build option is used. This change fixes this issue and allows for generating site with appropriate relative links.
parkas2018
added a commit
to parkas2018/docusaurus
that referenced
this issue
Nov 6, 2019
…build option The problem is described in issue facebook#1805 and it seems to have existed for a long time. Given versioning is enabled and the repository contains versioned docs, if the build option `--skip-next-release` is used when building the static site, the versioned docs contains a lot of broken links. The generator is not able to locate the targetted file for the relative link and so it leaves the html links as ".md" instead of ".html". The issue appears to be isolated to `website/versioned-docs/` only and only if the above mentioned build option is used. This change fixes this issue and allows for generating site with appropriate relative links.
parkas2018
added a commit
to parkas2018/docusaurus
that referenced
this issue
Dec 17, 2019
…build option The problem is described in issue facebook#1805 and it seems to have existed for a long time. Given versioning is enabled and the repository contains versioned docs, if the build option `--skip-next-release` is used when building the static site, the versioned docs contains a lot of broken links. The generator is not able to locate the targetted file for the relative link and so it leaves the html links as ".md" instead of ".html". The issue appears to be isolated to `website/versioned-docs/` only and only if the above mentioned build option is used. This change fixes this issue and allows for generating site with appropriate relative links.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug Report
When the site is built with the option
--skip-next-release
, relative links from one doc to another in the versioned docs are broken.Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
(Write your steps here:)
yarn build
and observe that there are no build errorsyarn build --skip-next-release
and observe that there are following warnings about broken relative links:Expected behavior
The build would work the same way as it does when
--skip-next-release
option is not used. The relative links should not be broken.Actual Behavior
The build produces site with broken links from one doc to another when
--skip-next-release
option is used. This seems to be isolated toversioned_docs/
only. Looking at the final output, it seems that the generator is not converting markdown links from.md
to.html
Reproducible Demo
(Paste the link to an example repo, including a
siteConfig.js
, and exact instructions to reproduce the issue.)Reproducible demo can be found here: https://github.com/amimas/docusaurus-bug-broken-link
Please follow the steps mentioned above to see the issue.
The text was updated successfully, but these errors were encountered: