Endilie Yacop Sucipto
9c070f020d
Publish-gh-pages should display the correct commit that triggers it ( #829 )
2018-07-04 11:12:41 -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
Gustavo Henke
fd9a3ffb6d
Cross repo publishing ( #764 )
2018-06-14 16:03:37 -07:00
ranolf
2bd9a148c1
Support publishing to Github Enterprise hosting ( #689 )
...
* Added support for Github Enterprise GH Pages
* Fixed with prettier output
* Tweak
* Tweak
* Tweak
2018-06-02 15:59:29 -07:00
Gustavo Henke
93b2ebb53b
Trim and reference branch correctly during deployment ( #716 )
...
Otherwise it may contain a trailing \n
2018-06-02 13:54:07 -07:00
Juan Picado @jotadeveloper
d2bff6929e
Fix #374 environment variables have precedent over conf ( #473 )
2018-02-27 08:50:57 -08:00
Joel Marcey
c14a8d2e77
Always use PROJECT_NAME, even for user and org pages ( #384 )
...
* Always use PROJECT_NAME, even for user and org pages
The symptom was that if we had a user or org page (e.g., https://JoelMarcey.github.io ), we would try to copy files to a directory within a directory, getting errors like:
```
Error: Copying build assets failed with error 'Error: Cannot copy '/Users/joelm/dev/JoelMarcey.github.io/website/build' to a subdirectory of itself, '/Users/joelm/dev/JoelMarcey.github.io/website/build/JoelMarcey.github.io-master'.'
```
This is because we were setting the end of `fromPath` to empty if we were using an org or user page.
But we don't need to do that. The `PROJECT_NAME` (set in `siteConfig.js` as `projectName`) is the user or org repo
e.g., https://github.com/JoelMarcey/JoelMarcey.github.io/ has a `projectName` of `JoelMarcey.github.io` with an `organizationName` of `JoelMarcey`.
So now the `fromPath` and `toPath` look like:
`fromPath`: `build/JoelMarcey.github.io`
`toPath`: `buuid/JoelMarcey.github.io-master`
2018-01-09 09:11:07 -08:00
Héctor Ramos
eafcf13a4c
Switch rsync for fs-extra ( #321 )
2017-12-19 13:29:41 -08:00
Joel Marcey
54ffbddcd8
Add more details when failing to copy assets upon publish
2017-12-19 12:50:22 -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
Hector Ramos
a7d81c629d
Resolve conflicts
2017-12-12 12:49:02 -08:00
Jan Kassens
b174ee2d2a
Update prettier to 1.9.1 ( #273 )
2017-12-12 12:47:52 -08:00
Hector Ramos
ca97030005
Remove git commit status code check
2017-12-12 12:40:26 -08:00
Joel Marcey
46943906ce
Fix Prettier
2017-12-12 10:18:29 -08:00
Héctor Ramos
cf89dacaf6
Guard against errors during the deploy step, and install rsync ( #277 )
2017-12-12 10:16:26 -08:00
Joel Marcey
ea5a11bcd0
Redux - Use rsync instead of copy when preparing files to publish
...
Realized that rsync was installed on our Circle docker image, so that
broke everything
2017-12-12 10:14:43 -08:00
Joel Marcey
3c6bc0c5de
Revert using rsync
...
For some reason everything broke
2017-12-12 09:01:34 -08:00
Joel Marcey
ae872e7ee9
Prettier fix
2017-12-12 08:54:44 -08:00
Joel Marcey
b3c44060b9
Use rsync instead of copy when preparing files to publish
...
`shell.cp` does not support dotfiles :(
https://github.com/shelljs/shelljs/issues/79
2017-12-12 08:51:29 -08:00
Joel Marcey
d89abde579
Update publish-gh.js after running Prettier
2017-12-05 21:32:36 -08:00
Ricky Vetter
8074b96c79
allow copy from /build in github.io case ( #260 )
...
* allow copy from /build in github.io case
* Comment explaining the ! in the path.join
2017-12-05 20:59:11 -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
Ricky Vetter
0cead4b6f9
Update deployment script to work on github.io repos as well ( #256 )
...
* Update deployment script to work on github.io repos as well
* remember how index of works
* CURRENT_BRANCH
2017-12-04 09:59:49 -08:00
Héctor Ramos
31b70f053c
Update docusaurus-publish ( #250 )
...
* Update publish script to allow configuration via siteConfig.js file, as well as non-CircleCI env vars
* Use || instead of |
2017-12-04 09:15:32 -08:00
Joel Marcey
16aa42a705
Allow deploying docs from a branch other than master
...
Still have to deploy to `gh-pages`
2017-11-17 14:26:08 -08: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
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
1f1d1448b2
Update publish script to create gh-pages branch if it does not exist
2017-08-16 17:36:00 -07:00
Frank Li
37174fd305
Add ssh option to publish script
2017-08-16 16:42:31 -07:00
Frank Li
b035d41838
Update publish script
2017-08-16 15:35:19 -07:00
Frank Li
3032f464c0
Update publish script
2017-08-16 15:22:36 -07:00
Frank Li
feb2fb41d0
Fix publish script to work in Docusaurus itself
2017-08-16 15:12:26 -07:00
Frank Li
43ef3c8142
Add comments
2017-08-15 16:55:38 -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
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
fbae29b0ff
Run Prettier
2017-07-10 16:38:35 -07:00
Joel Marcey
e3139eea2f
Initial commit
2017-07-07 10:28:29 -07:00