* Move start reload server into separate module
* Find an unused port when starting the live reload server
* Move findUnusedPort into module
* Add tests for findUnusedPort module
* Refactor findUnusedPort
* Move starting of servers into separate module and add tests
* Remove unused constants.js
* Zap extra line breaks
* Add tests for liveReloadServer
* Rename serverController to start
* Move start into lib/server
* Add portfinder package
* Replace findUnusedPort with portfinder
* nits
* Adding last updated time for docs
* Making file path general and other suggested changes
* Checking if time returned is null due to absence of git or some other issue
* Adding option to enable/disable update time feature and test-doc
* Adding simple unit tests for getGitUpdateTime()
* nits & rewrote failing test
* consistent test naming
* Adding optional updateEnableTime in documentation
* package-lock & yarn.lock
* 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
* Noticed caption was "Sonar" but redirecting to https://fbflipper.com.
* Fixed caption and renamed files for consistency.
* Moved project after FastText to keep alphabetical ordering.
* Ran prettier and included changes.
Test plan:
npm run test && npm run prettier && npm run lint
cd website && npm run start
Noticed projects are rendered properly and caption is now "Flipper".
* 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
* Enable user to use prism.js as syntax highlighter
* add package-lock
* if 'usePrism' is true, use prismjs on all languages
* don't get lang by hljs if use prism
* Update api-site-config.md
* Update api-doc-markdown.md
* only load prism css when usePrism is true
* WIP does not work
* rm -rf website/
Run docusaurus-init
Even by deleting text here, it still shows up? Confused.
* Shift in tree printing logic
* Shift printing logic to the current location
* migrating to react 16
* Add WarriorJS to Docusaurus users (#656)
* Separate users data from code
* Add WarriorJS to Docusaurus users
* [Feature] Introducing image compression using imagemin (#654)
* Introduce imagemin for compressing images
* Replace original images with the optimized ones
* Add imagemin-svgo to dependencies
* Remove console statement, replace let with const
* Replace let with const
* Add --skip-image-compression
* Run Prettier
* Fix header
* Prettier
* Introduce imagemin for compressing images
* Replace original images with the optimized ones
* Add imagemin-svgo to dependencies
* Remove console statement, replace let with const
* Replace let with const
* Add --skip-image-compression
* Run Prettier
mkdirp is used throughout the project.
This works because npm and Yarn create flat node_modules.
Docusaurus fails though with pnpm, which creates a strict
node_modules.