Closed qiell closed 5 years ago
Hey! I would love to take up the issue. Please assign this to me.
@swatisingh45 Please go ahead
Hey! So you want a json version of this version.json, right? Where to do that?
@swatisingh45 In the website directory, you can find sidebars.json, we can have the version.json in the same directory.
We do not want only the JSON file, but also the implementation to fetch the version drop-down content using that JSON file.
Hello, if not done I would like to take it up.
Hi @mathagician, @swatisingh45 didn't respond yet. If you want to pick it up, please go ahead.
is someone working on this or I can take it?
@mathagician are you working on this?
@Akash4927 any update?
@sudonitesh I think you can work on this and don't forget to join hacktoberfest2018 channel on our slack workspace.
@Akash4927 I would like to work on this
@Rishabh570 Please go ahead.
@Akash4927 Okay, so far what I've understood is, we need to write the version in the versions.json
and then extract its value (through some js method call to ./versions.json
) and use it wherever needed, like in the headerNav...so we don't have to manually change its value from the file, just updating versions.json
would suffice. Have I made a mistake in understanding this?
@Rishabh570 Great! You understood it correctly. Please feel free to ping me if you need any help.
@Akash4927 Sure, I am on it. If I get stuck, I'll ask you. Thanks :)
@Akash4927 I was installing the repo for local development and got stuck while doing npm start
. This is error message I'm getting...
Sure, done! I'll ask it there :)
Currently, the version is hardcoded in the docusaurus code. Whenever we release a new version, we need to add it in the code. https://github.com/openebs/openebs-docs/blob/80566bf9b4a00bd8ed2cde21fffce9b82c7ec48c/website/node_modules/docusaurus/lib/core/nav/HeaderNav.js#L242
Instead of this, we need to maintain a
version.json
file which will have all the versions and their links. (Similar to sidebars.json file)Implement logic to fetch version from version.json file and show in the dropdown menu.
Whenever we release a new version, we need to update the
version.json
file.