Commit graph

14 commits

Author SHA1 Message Date
Joel Marcey
1388e13795
Don't throw if a doc hasn't been versioned yet (#455)
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
2018-02-16 19:16:38 -08:00
Jan Kassens
d97e2e9d81 Add newlines at end of generated files (#283) 2017-12-13 13:55:40 -08:00
Héctor Ramos
65421db62e Add Prettier Formatting (#258)
* 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
2017-12-04 19:21:02 -08:00
Joel Marcey
dc0c1390c4 [WIP] Allow custom subpath for docs within the "docs" folder
e.g.,

The default is

`docs/*.md`

This allows

`docs/somedir/*.md`

or

`docs/somedir/anotherdir/*.md`

Notes:

- All URLs are still /docs/*.html (i.e. the subpath does not get preserved in the link).
- Files in `translated_docs`, if any, will still only be one level
- This should not affect translations or versioning
2017-11-08 20:16:05 -08:00
Joel Marcey
d26d263bd0
Don't try to version files that have no metadata headers (#197) 2017-10-30 12:00:55 -07:00
Joel Marcey
77535d80f2 The complete move to MIT license (#115)
- headers in .js files
- update README and LICENSE year

Testing:

grep BSD, Patents, patents turned up nothing
2017-10-05 11:14:49 -07:00
Frank Li
ae4c577237 Fix to metadata ids 2017-08-14 10:19:01 -07:00
Frank Li
964e9e2108 Update doc metadata to use file name as id fallback and id as title fallback 2017-08-10 14:51:34 -07:00
Frank Li
88359ea845 Update messages for versioning 2017-08-09 16:17:39 -07:00
Frank Li
8c70286ad0 Fix usage of sidebars.json for versioning 2017-08-08 13:38:37 -07:00
Frank Li
fd01449db2 Fix version.js script for when there are no versions yet 2017-08-07 12:04:35 -07:00
Frank Li
67592dcf8a Use versions.json file and move versioned, translated docs into translated_docs 2017-08-03 15:58:56 -07:00
Frank Li
d3e3d209a4 Add comments for new versioning files 2017-08-03 11:14:56 -07:00
Frank Li
3598dffc58 Add versioning functionality 2017-08-03 10:25:01 -07:00