No
Yes
N/A
See https://github.com/facebook/Docusaurus/pull/333#issuecomment-353166152
Better error message telling user that they might be missing versions.js file.
404 for versions.html missing
https://github.com/facebook/Docusaurus/pull/333#issuecomment-353166152
@JoelMarcey
Hi Joel, I'm interested to work in this issue. Could u give me the right direction of how to solve this issue? (such as message format, etc) 馃槃
Hi @sujono91, thanks for taking this on.
I think there are a couple of ways to tackle this:
You can create a console message in https://github.com/facebook/Docusaurus/blob/master/lib/version.js if a versions.js file does not exist in the pages directory. This would solve the problem if someone ran the version script before creating the versions.js page (like is done when someone follows the instructions here and runs yarn examples versions first).
You can do something in https://github.com/facebook/Docusaurus/blob/master/lib/core/nav/HeaderNav.js and check to see if env.versioning.enabled is true and if so, and there is no versions.js page, then something happens like an error in the log and/or a message in the header nav or something.
Does this help you get started?
@JoelMarcey Ok, I'll try it right now. Will let u know if i've any concern
@JoelMarcey I think we can close this issue
Yes you're right! For future reference, you can also add "Fixes #369" in your PR and when your PR is merged, the issue will be closed automatically 馃槃
Most helpful comment
@JoelMarcey
Hi Joel, I'm interested to work in this issue. Could u give me the right direction of how to solve this issue? (such as message format, etc) 馃槃