* Allow multiple `-` in a version string
Right now we were assuming that there would be no `-` in a version.
That was breaking things.
This allows more flexibility for versions like:
1.0.0-beta.2
Ref #455Fixes#450
* Check more specific strings - need to look for the original_id
Instead of throwing, return `null` because that means we have a
new doc in our versioning sequence
(Also, cleaned up a bit of code as I researched this)
Partial Fix To #450
* Versioning ids should be based on whether translation is enabled
Ref: ff117979c6 and a5e963dba1
Tested locally on:
Docusaurus
Relay
Test site from `npm run examples`
* Prettier
* Add Prettier formatting to source files and example files, and check that Prettier formatting is maintained on PRs
* Remove trailing-comma as we are using Node 6 on Circle
* Use latest Node 6 LTS version in Circle
* Remove unused test