Closed amimas closed 5 years ago
@amimas I fixed myself although it seems this behavior should be auto generated with version creation.
Inside version.js I added:
const versionMap = {};
versions.map(version => versionMap[version] = docs/${version}/doc.html
);
Then for url i added:
š Bug Report
The
/versions
page shows a list of versions, but "Documentation" and "Release Notes" links are not working. On the browser, they are linking back to the same page (/versions
).Also, the documentation does not have any reference to where "Release Notes" are stored. Are they expected to be a tag in Github or can we have an actual doc published elsewhere or another static page/doc within docusaurus.
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
yarn examples versions
pages/en/versions.js
file.yarn run version 1.0.0
yarn start
Expected behavior
Clicking on the "Documentation" link would take me to the pages that are created when clicking on the Docs link from the top navigation bar.
Not sure what to expect from the "Release Notes" link because I can't find any related configurations in previous steps or in
siteConfig.js
Actual Behavior
Neither links (Documentation, Release Notes) are valid. They refer to the same page (
/versions
). I did notice that the generated/pages/en/versions.js
file contains emptyhref
attribute. Am I expected to manually fill-in this information? If yes, that is okay with me, but I didn't see it mentioned anywhere in the docs.Reproducible Demo
(Paste the link to an example repo, including a
siteConfig.js
, and exact instructions to reproduce the issue.)I'm sorry I don't have an example repo to share with you as I'm working with an internal/private repo. Here's a copy of the
siteConfig.js
. I followed the steps in the docs to prepare the site.