Commit graph

39 commits

Author SHA1 Message Date
Laxman
cfabaedc99 Fix: conflicting strings issue in translations (#917)
* Fix conflicting strings issue in translations

* Preserve structure of `customTranslations`

* Use `deepmerge` to merge whole of `localized-strings`

* Simplify and make deep property access on an object safe

* Fix deep property accessor and rename it to idx
2018-08-29 00:04:02 +08:00
Endilie Yacop Sucipto
2fa67bbc13
v1.3.3 (#912)
* v1.3.3

* nits changelog

* run npm update & yarn update

* run prettier
2018-08-23 11:48:44 +08:00
Endilie Yacop Sucipto
9f718a5097 Refactor + add more tests (Part 2) (#854)
* Refactor doc in server.js & generate.js

* Refactor finding metadata with find() & avoid param reassign

* Refactor replacing markdown link to html + add test

* Minify func to getFile & add test

* use ./ for md link as well

* nits & better test

* better mdToHtmlify

* babel-register on versions & write-translations to transpile ES6 in server/env.js

* better docs test & move out metadata to fixtures

* Update .babelrc
2018-07-16 01:45:23 -07:00
Yangshun Tay
a7a214fb3a ESLintify Part 3 (#846)
* ESLintify Part 3

* ESLintify Part 3

* ESLintify Part 3
2018-07-11 18:21:31 +08:00
Yangshun Tay
5ac2cee658
ESLintify Part 2 (#841)
* ESLintify Part 2

* Fix

* Fix tests

* Fix tests

* Fix tests
2018-07-10 21:53:08 -07:00
Yangshun Tay
b5bf53ef40
Add in missing Babel plugins for write-translations 2018-07-08 10:38:28 -07:00
Yangshun Tay
ebb86275d3
Use Babel in write-translations script 2018-07-08 10:26:29 -07:00
Yangshun Tay
e8e3f42685
ESLintify Part 1 (#837)
* ESLint-ify

* Allow empty try/catch

* Escape regexp
2018-07-08 09:13:18 -07:00
Joel Marcey
608e2c85a2
Move custom translation strings to its own file (#775) 2018-06-14 17:25:29 -07:00
Endilie Yacop Sucipto
d04b3ca87b Enable sub-directories in docs/ (#705) 2018-06-07 07:41:28 -07:00
Dongwoo Gim
49a5263d62 Fix incorrect loading of existing translations file (#710) 2018-05-30 00:45:28 -07:00
Kunall Banerjee
c60131fdb4 cleanup startup logs (#291) 2017-12-16 16:51:52 -08:00
Jan Kassens
d97e2e9d81 Add newlines at end of generated files (#283) 2017-12-13 13:55:40 -08:00
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)