react-native-website icon indicating copy to clipboard operation
react-native-website copied to clipboard

Edit button is linking to versioned_docs instead of docs

Open liamsheppard opened this issue 8 years ago • 3 comments

I was confused when clicking the Edit button that I was being taken into the versioned_docs/version-X.XX folder.

I'm assuming this is incorrect, based on this quote from README.md:

Do not edit the auto-generated files within 'versioned_docs/' or 'versioned_sidebars/' unless you are sure it is necessary. Edits made to older versions will not be propagated to newer versions of the docs.

liamsheppard avatar Dec 04 '17 10:12 liamsheppard

This also confused me. It directed me to the versioned page for a very old version of the docs.

gaearon avatar Dec 04 '17 13:12 gaearon

Yeah this is confusing. It's an issue with the static site generator we are using. It's working as intended - it's pointing to the actual source of truth, which is the versioned file. But we actually want people to submit PRs against the master file in docs/ which is where versioned files are generated from.

I'm working on a fix upstream.

hramos avatar Dec 05 '17 20:12 hramos

For now, you may have noticed I've been merging changes made against docs/ as well as versioned_docs/. These are mostly changes that fix broken links and other issues related to the transition, as we do want those changes to be applied to past versions.

hramos avatar Dec 05 '17 20:12 hramos