Commit Graph

390 Commits

Author SHA1 Message Date
Julien Odent 0a3f0ecdc5 Renamed Sonar to Flipper (#905)
* 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".
2018-08-17 09:39:20 -07:00
jess ef80581e8e Activating Open Collective (#883) 2018-08-03 18:25:57 -07:00
Endilie Yacop Sucipto edb364ad02
chore: update jest to v23 (#885)
* chore: update jest to v23

* add changelog
2018-08-03 17:08:51 +08:00
Endilie Yacop Sucipto 18158d6abc
fix: truncate blogpost properly with truncate-html (#880)
* fix: truncate blogpost properly with truncate-html

* revert test file change

* chore: truncate blogpost for feed changelog
2018-08-02 15:16:26 +08:00
Endilie Yacop Sucipto 42a96696a4
chore: delete unused/ old file (#881) 2018-08-02 00:52:50 +08:00
Sashank Thupukari d3417b3bf2 Add autoprefixing to CSS pipeline (#867)
Add [autoprefixer](https://github.com/postcss/autoprefixer) as a final build step in the CSS pipeline.
2018-07-22 00:05:13 -07: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 4267337fb0
Fix CSS tests (#839)
* Fix CSS tests

* Revamp

* -

* fix failing test

* add test for minifyCss with fixtures & snapshot

* remove unintended addition

* simplify the test.css
2018-07-10 10:42:32 -07:00
Yangshun Tay 128dbfca0a Tidy up ESLint usage (#836)
* Use Airbnb ESLint

* Turn off rules

* Add back

* add website to eslint precommit

* Add back

* remove useless escape
2018-07-07 15:25:14 +07:00
Yangshun Tay 936725c94d Bump package.json 🤦‍♂️ 2018-07-06 01:11:13 -07:00
Endilie Yacop Sucipto 21dcea2a31
Integrate eslint & precommit to codebase (#815)
* add eslint, precommit & refactor

* fix exit code 127

* modify contributing.md & add package-lock

* use .eslintrc.js
2018-07-01 12:27:31 +08:00
Yangshun Tay 3a3ee44389
Publish v.1.3.1 (#816)
* Publish v.1.3.1

* Add desc
2018-06-30 13:02:28 -07:00
Yangshun Tay 5a8e9a9ff1
Exclude vendor dir from directory tree printing (#798)
* Exclude vendor dir for directory tree printing

* Upgrade tree-node-cli

* Upgrade tree-node-cli

* Update package-lock.json
2018-06-23 23:47:48 -07:00
Yangshun Tay 82f5727965
Publish v1.3.0 (#791)
* Publish v1.3.0

* Run version script

* Update CHANGELOG.md
2018-06-20 21:13:58 -07:00
Joel Marcey ca8afb0951
Publish v1.2.1 (#785) 2018-06-17 16:00:12 -07:00
Joel Marcey 0d000b1bec Publish v1.2.0 (#753) 2018-06-10 12:04:23 -07:00
Endilie Yacop Sucipto c8bc00a3a7 Enable using Prism for syntax highlighting (#735)
* 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
2018-06-09 11:38:01 -07:00
Joel Marcey 01bc5e4dd5
Publish v1.1.5 (#707) 2018-05-26 11:29:10 -07:00
Yangshun Tay b7be85843a
Publish v1.1.4 (#703) 2018-05-25 23:10:44 -07:00
artiebits 407636a4d9 Don't open a site in a new tab if it's already open (#698)
* Don't open a site in a new tab if it's already open

* Remove opn from dependencies
2018-05-24 20:47:01 -07:00
Joel Marcey d143b3f87e
Publish v1.1.3 (#695) 2018-05-23 11:28:02 -07:00
Yangshun Tay a603aff193
Publish v1.1.2 (#685)
* Update tree-node-cli

* Publish v1.1.2

* Fix version
2018-05-21 21:43:23 -07:00
Yangshun Tay 1a604d820b
Update tree-node-cli (#684) 2018-05-21 21:32:24 -07:00
Joel Marcey 96dd757bdc
Publish v1.1.1 (#681) 2018-05-21 13:56:37 -07:00
Yangshun Tay 923356e312 Shift opn to dependencies (#680) 2018-05-21 13:46:49 -07:00
Joel Marcey cfaa8905ef
Publish version 1.1.0 (#679) 2018-05-21 08:27:18 -07:00
Amy Lam f9a09072e3 Add LiveReload (#663) 2018-05-17 16:17:56 -07:00
Amy Lam 1796764b1c Print out directory tree during docusaurus-init (#665)
* 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
2018-05-15 20:06:44 -07:00
Agastya Darma 25cf8bb786 Migrate to React 16 (#655)
* 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
2018-05-09 19:58:47 -07:00
Ahmad Alfy ab6bab9f8d [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
2018-05-09 16:59:36 -07:00
Yangshun Tay 1a6f2fc51c Add open in browser functionality (#643) 2018-05-07 09:46:14 -07:00
Joel Marcey 5b4fb4b4a5
Publish v1.0.15 (#645) 2018-05-06 11:04:56 -07:00
Joel Marcey 6041f9ece7
Publish v1.0.14 (#597) 2018-04-23 16:40:13 -07:00
Joel Marcey 266b37498a
Publish v1.0.13 (#589) 2018-04-20 12:03:21 -07:00
Joel Marcey 40a9047620
Publish v1.0.12 (#581) 2018-04-18 09:57:17 -07:00
Yangshun Tay 159b80df94
Use cssnano to minify main CSS file (#569)
* Add cssnano to CSS generation

* Add babel-polyfill

* Call cssnano at the end

* Fix tests

* Add babelrc
2018-04-16 21:31:01 -07:00
Zoltan Kochan e2b8fa7aef Fix(deps): add mkdirp to package.json (#471)
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.
2018-04-14 10:47:41 -07:00
Joel Marcey 257b5c9ebd
Publish Docusaurus v1.0.11 (#551) 2018-04-12 09:50:16 -07:00
Yangshun Tay 1db939b119 Revert yarn prettier addition in yarn ci-check (#543) 2018-04-10 10:30:29 -07:00
Kaveh Khorram bbbe311004 Dynamic port switching (#516) 2018-04-10 08:48:44 -07:00
Joel Marcey 71317e49ba
Publish Docusaurus v1.0.10 (#538) 2018-04-09 12:06:40 -07:00
Elian Ibaj c437f7be37 Use markdown-toc (#524) 2018-04-04 10:19:03 -07:00
Joel Marcey 288afc3310
Publish Docusaurus v1.0.9 (#502) 2018-03-13 09:33:34 -07:00
Joel Marcey 1a245a81b2
Publish Docusaurus v1.0.8 (#499) 2018-03-12 17:00:58 -07:00
Joel Marcey 2c2d6d6158
Publish Docusaurus v1.0.7 (#461) 2018-02-17 12:39:15 -08:00
Joel Marcey b27ff6e1c0
Publish Docusaurus v1.0.6 (#447) 2018-02-12 19:30:35 -08:00
Henry Zhu cb2f0eda62 Also transform class properties and object rest spread (#419) 2018-01-26 10:47:09 -08:00
Joel Marcey be09889b41
Publish Docusaurus v1.0.5 (#386) 2018-01-09 13:56:35 -08:00
Joel Marcey 430e35b5ea
Publish Docusaurus v1.0.4 (#363) 2017-12-27 16:14:30 -08:00
Héctor Ramos eafcf13a4c Switch rsync for fs-extra (#321) 2017-12-19 13:29:41 -08:00
Héctor Ramos 60bd8bc754 Switch to rsync package (#320)
* Switch to rsync package

This removes the need to install rsync natively in CI

* Update publish-gh-pages.js
2017-12-19 12:34:12 -08:00
Héctor Ramos 9dadb3578c Add first set of docusaurus-build tests using Jest (#259)
* 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

* Initial test suite

* Rename test to match original file

* restore test files

* Remove yarn.lock from pull request. Will run it again in a separate commit
2017-12-18 14:40:52 -08:00
Joel Marcey 7dbdf17b0b Bump to Docusaurus 1.0.3 2017-12-14 09:54:37 -08:00
Joel Marcey bee98053c8 Publish Docusaurus 1.0.2 2017-12-14 09:15:17 -08:00
Joel Marcey 38eb5419a3 Update to Docusaurus 1.0.1
Should be the go-live package \o/
2017-12-13 20:40:16 -08:00
Joel Marcey ad8921950c Publish 1.0.0-beta.16
Could be the last beta before launch

\o/
2017-12-13 09:14:14 -08:00
Jan Kassens b174ee2d2a Update prettier to 1.9.1 (#273) 2017-12-12 12:47:52 -08:00
Ricky Vetter c22203523f use faded primaryColor background for inline code snippets instead of link color (#276) 2017-12-12 12:46:52 -08:00
Joel Marcey ef6f550700 Replace facebookexperimental with facebook (#266)
Moving to the facebook GitHub org
2017-12-07 10:52:12 -08:00
Joel Marcey 643c7a4047 Bump to 1.0.0-beta.15
Needed for ad87bab09b
2017-12-07 10:15:14 -08:00
Joel Marcey 2d04b3071e Bump to 1.0.0-beta.14 2017-12-06 13:58:54 -08:00
Joel Marcey d89abde579 Update publish-gh.js after running Prettier 2017-12-05 21:32:36 -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 909c193fa1 Bump to 1.0.0-beta.13 2017-11-16 09:32:14 -08:00
Héctor Ramos 420d2e86fb Replace diff with string comparison (#230) 2017-11-15 12:17:05 -08:00
Joel Marcey fe11556ae7 Bump to 1.0.0-beta.12 2017-11-13 19:43:54 -08:00
Eric Nakagawa 8d14f8fb02
Merge pull request #217 from JoelMarcey/custom-docs-subdir
Allow custom path for the location of documentation
2017-11-13 13:50:39 -08:00
Joel Marcey eab6b59094 Bump to 1.0.0-beta.11 2017-11-10 16:22:12 -08:00
Joel Marcey e273dfc13b Allow the docs not to just be in a folder called `docs`
Also:
- regex escaping
- update api documentation
2017-11-09 09:55:26 -08:00
Joel Marcey 3d8d991ede Bump to 1.0.0-beta.10 2017-11-02 09:41:56 -07:00
Joel Marcey 2849cc86cf Update to 1.0.0-beta.9 2017-11-01 12:18:20 -07:00
Joel Marcey 1324ddfa47
Update site preparation docs (#203) 2017-11-01 09:48:14 -07:00
Joel Marcey 893a6e85b5 Bump to 1.0.0-beta.8 2017-10-31 09:20:59 -07:00
Joel Marcey dcf50a4e4d Bump to 1.0.0-beta.7 2017-10-30 16:18:26 -07:00
Joel Marcey d2d3ace924 Bump to 1.0.0-beta.6 2017-10-25 16:51:49 -07:00
Héctor Ramos 140dcaa500 [CI] Switch to Circle 2 (#168)
* Switch to Circle 2

* Use Yarn in CI

* Move things around

* Fix Remarkable case issue

* Run placeholder test

* Update deploy script

Use multiline commit messages to ensure commit beign deployed is documented in git history
2017-10-25 14:04:24 -07:00
Eric Nakagawa a5320dbd36 Merge pull request #159 from JoelMarcey/port-in-use
Check if a port is in use
2017-10-24 13:32:26 -07:00
Héctor Ramos 49034dd6bb Fix Remarkable case issue (#166) 2017-10-24 10:49:13 -07:00
Héctor Ramos b832176dc6 [markdown] Switch to Remarkable (#153)
* Switch to Remarkable
* Clean up references to custom code blocks
* Remove valdiateDOMNesting warning
* Add syntax highlighting
* Add Reason support
* Breaking change: prismColor to codeColor, remove CompLibrary.Prism, expose hljs
* Completely remove Prism and associated CSS rules
* Support loading plugins and scripts
* Remove CSS rules, allowing Highlight.js theme to be used entirely
* Remove unnecessary webplayer script
2017-10-24 09:45:21 -07:00
Joel Marcey 7bad58022c Check if a port is in use
Test:

Ran a separate server on port 3000

```
Checking if port 3000 is free...
Extracting translateable strings from files...
Loading translation files...
Generating Metadata for Docs....
Generating Metadata for Docs....
server.js triggered...
Generating Metadata for Docs....
Extracting translateable strings from files...
listening on port: 3000
Open http://localhost:3000/
Port 3000 is in use
```

Fixes #124
2017-10-23 18:32:39 -07:00
Joel Marcey 3fe1b7e0d4 Bump to 1.0.0.beta.5 2017-10-21 20:24:41 -07:00
Joel Marcey b7819a18d8 Bump to 1.0.0-beta.4 2017-10-19 16:57:09 -07:00
Joel Marcey b312821f78 Bump package to Beta 3 2017-10-19 14:52:28 -07:00
Joel Marcey 3e9e130256 Bump Docusaurus version number 2017-10-18 15:11:30 -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
Joel Marcey f55e09a427 Bump the version number to Beta 1
\o/
2017-10-06 12:59:22 -07:00
Joel Marcey a3d1fb693b Bump version to alpha.42 2017-10-03 10:38:45 -07:00
Joel Marcey 9274b2a849 Add back babel preset for React plugins package
This fixes the circular JSON error in https://github.com/facebookexperimental/Docusaurus/issues/89

Maybe its not the best workaround here, but I think it does the trick.

Fixes #89
2017-10-02 18:57:58 -07:00
Joel Marcey a44cda05c5 Bump npm version to alpha 41 2017-09-28 14:49:15 -07:00
Eric Nakagawa 3b5db4bbf8 2 bug fixes (#98)
* Merge fix

* Updating lock file.

* Bug fix for rss feed truncation...

* Fixes infinite recursive loop for #89

* Removed use of module cache invalidator from feed.js

* Replaced 'latest' babel presets with 'env'

* Ignore temp build folder

* Adding back new truncation logic for RSS

* Updating yarn lock
2017-09-28 14:46:29 -07:00
Joel Marcey f26db92a46 Bump npm version 2017-09-27 15:31:20 -07:00
Eric Nakagawa dc835770a0 RSS/ATOM Feed added, Prism changes, and global Copyright notice. (#94)
* Add Reason support to Prism.js

* Add XML/ATOM feed. Generates for both localhost and build script. Adds meta links to feeds to all html files.

* Updated /core/Footer.js to pull from siteConfig
2017-09-27 12:49:09 -07:00
Eric Nakagawa a83e16308b Fixes one warning in console for React.DOM.* usage. 2017-09-20 14:45:55 -07:00
Frank Li 6e57456a4a Add repository field to package.json 2017-08-16 14:00:08 -07:00
Frank Li 47799d6b72 Remove unused scripts from package.json 2017-08-16 12:05:26 -07:00
Frank Li e2cdb44bfb Add script to rename existing version 2017-08-14 14:02:56 -07:00
Frank Li 88a32030e3 Publish version 1.0.0-alpha.35 to npm 2017-08-11 15:26:05 -07:00
Frank Li b256d2f8d9 Initial changes to error messages 2017-08-09 15:43:30 -07:00
Frank Li ac3cc01830 Change babel options 2017-08-09 13:10:04 -07:00
Frank Li 987558d228 Update package.json 2017-08-09 13:04:29 -07:00
Frank Li 9ddd2f5ea4 Merge branch 'master' into versioning 2017-08-08 11:39:23 -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 1517b155b7 Remove semver dependency 2017-08-03 16:00:17 -07:00
Frank Li 3598dffc58 Add versioning functionality 2017-08-03 10:25:01 -07:00
Frank Li 58452ea963 Merge pull request #27 from facebookexperimental/update-api
Refactor API
2017-08-02 17:00:40 -07:00
Frank Li 5dd6609db9 Fix Open Graph image option 2017-08-01 15:58:05 -07:00
Frank Li 9e70055452 Add siteConfig option for Open Graph image 2017-08-01 15:56:50 -07:00
Frank Li 419e0c0ff9 Initial API refactor 2017-07-31 16:19:02 -07:00
Frank Li 32768eea7e Merge branch 'sidebar-ordering' of https://github.com/facebookexperimental/Docusaurus into update-api 2017-07-31 10:57:08 -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 dfeaac74cc Publish changes to npm 2017-07-28 10:56:24 -07:00
Frank Li 0917de0090 Fix header image link 2017-07-28 10:31:08 -07:00
Frank Li 4c0b9e807e Publish Prism changes to npm 2017-07-28 09:40:46 -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 69ba05e4f1 Publish updates to npm 2017-07-24 13:21:21 -07:00
Frank Li da4b381df4 Allow external link target (e.g. _blank) 2017-07-21 16:23:59 -07:00
Frank Li f72144e988 Allow GridBlock images to be clickable links 2017-07-21 13:57:37 -07:00
Frank Li b359a2500d Update how separate css files are identified 2017-07-21 12:37:16 -07:00
Frank Li fc4e5b05df Allow exclusion of tagline in page title 2017-07-21 12:24:43 -07:00
Frank Li 1edd160ceb Allow separate css files that don't get added to Docusaurus's 2017-07-21 12:13:13 -07:00
Frank Li 4cbada5350 Publish updates to npm 2017-07-20 16:15:19 -07:00
Frank Li f622bf17d2 Allow removal of "Edit this Doc" button 2017-07-20 15:21:20 -07:00
Frank Li ee82575df0 Update server routing for static assets 2017-07-19 10:57:07 -07:00
Frank Li a455ca9745 Update server routing 2017-07-19 10:50:32 -07:00
Frank Li a56c7a6755 Publish changes to npm 2017-07-18 16:53:39 -07:00
Frank Li 23f160f13a Publish to npm 2017-07-18 12:15:40 -07:00
Frank Li 7fb1f147fb Update package.json 2017-07-18 12:03:42 -07:00
Frank Li 35a4b63396 Publish changes to npm 2017-07-17 17:00:20 -07:00
Frank Li 70ed75b046 Publish changes to start args to npm 2017-07-13 15:09:52 -07:00
Frank Li 72328ef4a9 Use flag for server port number 2017-07-13 13:40:24 -07:00
Frank Li ea4a4f6fe3 Fix hardcoded port number 2017-07-12 14:43:24 -07:00
Frank Li 0ccda03dac Publish version 1.0.0-alpha.13 to npm
Adds new translation functionality, updates examples, adds ability to specify server port number
2017-07-12 12:09:01 -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
Frank Li dbbfecaf62 Remove find-strings-plugin 2017-07-07 18:34:09 -07:00
Frank Li 6e1d5579fc Merge branch 'deltice' of https://github.com/facebookexperimental/Docusaurus into deltice 2017-07-07 18:27:52 -07:00
Frank Li d620f2e6dd Use babylon and babel-traverse directly to find strings to translate 2017-07-07 18:15:06 -07:00
Frank Li fe7d386f67 Add translation babel plugins and module to generate json strings file 2017-07-07 15:18:52 -07:00
Joel Marcey e3139eea2f Initial commit 2017-07-07 10:28:29 -07:00