Commit graph

26 commits

Author SHA1 Message Date
Jan Kassens
b174ee2d2a Update prettier to 1.9.1 (#273) 2017-12-12 12:47:52 -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
Héctor Ramos
459984516b Ensure some errors are logged to the console (#194)
* Clarify some error conditions in versioning

* Clarify missing doc error;

* Remove excess space

* Remove excess space part duex
2017-10-30 11:42:45 -07:00
Eric Nakagawa
ee5c8a4278 Adds a note that languages.js is autogenerated
Add a comment about auto-generation to top of en.json file
2017-10-24 16:21:16 -07:00
Ricky Vetter
58613545b6 add translateable strings and allow overriding of english strings (#158) 2017-10-23 15:01:26 -07:00
Eric Nakagawa
a4695a3083 Code cleanups for consistency & adds Docusaurus to meta tags (#138)
* Add a made with Docusaurus meta tag

* Code cleanups and changes for clarity

* Add back pages string extraction
2017-10-18 14:40:16 -07:00
Eric Nakagawa
bcba05ae03 Adds sitemap.xml. Adds 'Help Translate' to translatable strings. Error messages and fn name cleanups. (#136)
* added a note about needing more than one language to be enabled to allow for a drop down

* Removing debug statements

* Add 'Help Translate' to translatable strings, improves error messages around missing translated strings, calls write-translations on some routes

* Adds sitemap.xml to live server and build. Versioning not supported. -- Also did some file name and module cache cleanups.
2017-10-18 12:55:58 -07:00
Eric Nakagawa
8ac191a331 Fixes #104 by providing a useful error message.
Next step will be to run 'write-translations' on 'yarn start' and 'yarn build' (#119)
2017-10-06 12:16:27 -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
43ef3c8142 Add comments 2017-08-15 16:55:38 -07:00
Frank Li
c8e4dc343c Change sidebar_title to sidebar_label 2017-08-09 17:10:07 -07:00
Frank Li
090aa4c903 Merge branch 'master' into header-links 2017-08-08 13:48:24 -07:00
Frank Li
6ca90610f4 Update headerLinks API 2017-08-08 13:46:11 -07:00
Frank Li
8c70286ad0 Fix usage of sidebars.json for versioning 2017-08-08 13:38:37 -07:00
Frank Li
9ddd2f5ea4 Merge branch 'master' into versioning 2017-08-08 11:39:23 -07:00
Frank Li
4b96408fa5 Rename sidebar.json to sidebars.json 2017-08-07 17:25:52 -07:00
Frank Li
63e3e31117 Merge branch 'master' of https://github.com/facebookexperimental/Docusaurus into website 2017-08-07 10:28:52 -07:00
Frank Li
9eb6ff2034 Update write-translations.js to find versioned sidebar category names 2017-08-04 10:44:54 -07:00
Frank Li
419e0c0ff9 Initial API refactor 2017-07-31 16:19:02 -07:00
Frank Li
c6503c4bfa Use template strings, update React components, and update package.json files 2017-07-28 16:59:41 -07:00
Frank Li
abc5e325cd Use information from "docSidebar.js" file instead of doc front matters for sidebars. 2017-07-24 13:33:58 -07:00
Frank Li
eccbc178e5 Add optional sidebar_title docs front matter field for sidebar titles distinct from document article titles 2017-07-17 10:57:08 -07:00
Frank Li
523d824651 Fix translation functionality to properly condense whitespace and parse escaped characters (#17) 2017-07-16 20:34:26 -07:00
Frank Li
30a8ff329a Integrate handling of translation tag into static html building, add default description to translate tags 2017-07-10 14:08:00 -07:00
Frank Li
ed648074f2 Fix and move writeTranslations.js file to write-translations.js, move tagline property of en.json inside localized-strings 2017-07-10 10:53:38 -07:00
Renamed from lib/server/writeTranslations.js (Browse further)