Commit graph

287 commits

Author SHA1 Message Date
Joel Marcey
5bb062b6f0
Versioning ids should be based on whether translation is enabled (#333)
* Versioning ids should be based on whether translation is enabled

Ref: ff117979c6 and a5e963dba1

Tested locally on:

Docusaurus
Relay
Test site from `npm run examples`

* Prettier
2017-12-20 19:47:51 -08:00
Joel Marcey
250395a96a
Better error when parsing headerLinks.doc fields (#337)
Closes #309
2017-12-20 19:47:13 -08:00
Christian Oliff
3e2cfc27ff No need for chromeframe tag (#328)
Remove the unneeded chromeframe tag, it has long since been retired by Google and was only ever needed for very old IE (would render the page in Chrome within IE).
REF: http://www.chromium.org/developers/how-tos/chrome-frame-getting-started
2017-12-20 10:56:00 -08:00
Joel Marcey
665b2da09f Prettier fix for ce338fff64 2017-12-20 10:07:57 -08:00
Ricky Vetter
ce338fff64
Merge pull request #275 from rickyvetter/wrapPagesHTML
add wrapPagesHTML which renders html snippets in pages inside of a header + footer
2017-12-20 10:05:21 -08:00
Joel Marcey
db65f4b7fd Prettier fix for b96fae035f 2017-12-20 10:03:24 -08:00
António Afonso
b96fae035f Guard against lack of layouts in siteConfig.js (#330)
If a document states a `layout` in its header but `layouts` doesn't exist in `siteConfig.js` the doc would not render.
2017-12-20 09:55:10 -08:00
Joel Marcey
a12ebcd401 Don't translate if we do not have a language
This will most likely be because we have not enabled translation
2017-12-19 17:58:49 -08:00
Joel Marcey
ff117979c6 Add language to the version part
just like we did with the language part

otherwise we get `-version-....` ids with no prefixes
2017-12-19 17:51:03 -08:00
Richard Zhang
a5e963dba1 Issue 305 broken link because of language fixes (#322)
* without having having to worry about site design.

Let me know if double having is intentional

* distinguish case of no translation and en lang

* prettier recommends

* distinguish case of no translation and en lang

* prettier recommends

* merge with latest origin/master changes

* typo

* link with language fixes

* do not show language dropdown if only one enabled

* check translation outside of LanguageDropDown.render
2017-12-19 17:44:43 -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
Joel Marcey
18c9a2ab31 Revert "Fixing Issue 305 - broken links because of language (#316)"
This reverts commit 7dc6c6c2da.
2017-12-19 09:23:41 -08:00
Richard Zhang
7dc6c6c2da Fixing Issue 305 - broken links because of language (#316)
* without having having to worry about site design.

Let me know if double having is intentional

* distinguish case of no translation and en lang

* prettier recommends

* distinguish case of no translation and en lang

* prettier recommends

* merge with latest origin/master changes

* typo
2017-12-19 09:20:32 -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
neilsutcliffe
21cbece838 Fixes to testing guide (for Windows only) (#304)
* Fixes to testing guide (for Windows only)

* Fixed line ending detection for UNIX and Windows

* Removed incorrect instructions about translations

* Removed redudant heading and turned it into a note.
2017-12-18 11:48:53 -08:00
neilsutcliffe
b374391446 Ensured that any H1 elements in content appear correct size (#306) 2017-12-18 10:17:15 -08:00
Joel Marcey
d14dff7480 Prettier formatting fixes 2017-12-18 10:04:27 -08:00
Forbes Lindesay
a49787a56e Rethrow promise errors (#296) 2017-12-18 10:03:02 -08:00
António Afonso
829508797e A bunch of tiny little fixes for issues I found while setting up docusaurus (#312)
* Do not show users related UI if no users have been specified

* Fixed typo in Docusaurus homepage link

* Allow projects without icons

Not every project has an icon, so avoid showing a broken image in that case.

* Do not show project icon in the footer if there's no footer icon
2017-12-18 09:26:33 -08:00
Richard Zhang
2f860ecfe7 Issue 245 fix (#299)
* without having having to worry about site design.

Let me know if double having is intentional

* sitemap display flex with direction as column on mobile
2017-12-17 16:35:39 -08:00
Forbes Lindesay
bf8006f6ba Include a lang property on html node (#295)
Google Chrome guesses the language if this is not present. Large quantities of source code can confuse it and lead to it selecting completely the wrong language.
2017-12-16 20:05:58 -08:00
Kunall Banerjee
c60131fdb4 cleanup startup logs (#291) 2017-12-16 16:51:52 -08:00
Joel Marcey
c888bc52b9 Fix og:image URL to make it absolute 2017-12-14 09:53:37 -08:00
Joel Marcey
606029b9ff Fix prettier 2017-12-14 09:38:32 -08:00
Joel Marcey
d6fb14cfa4
Add introductory blog post (#279)
* Add introductory blog post

For launch!

\o/

* Update post to launch date

* Add ogImage and fix how we get og:Description

Plus a few updates to the post

* Remove some code block info
2017-12-14 09:32:49 -08:00
Joel Marcey
3404b40096 Fix example website output path when copying examples 2017-12-14 09:13:21 -08:00
Joel Marcey
8481791221 Update the Docusaurus help page 2017-12-13 15:26:24 -08:00
Jan Kassens
d97e2e9d81 Add newlines at end of generated files (#283) 2017-12-13 13:55:40 -08:00
Joel Marcey
ecf62f80b7 Add notification that a site was built successfully
after running `npm run build`
2017-12-12 14:15:14 -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
Ricky Vetter
c22203523f use faded primaryColor background for inline code snippets instead of link color (#276) 2017-12-12 12:46: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
Ricky Vetter
786fdbb136 add wrapPagesHTML which renders html snippets in pages inside of a header + footer 2017-12-11 21:46:07 -08:00
Joel Marcey
c9e4f4479d Prettier fix 2017-12-11 16:41:09 -08:00
Héctor Ramos
11029cf02d Update build script (#272)
* Copy dot files if present in the static folder, and add .circleci config to Docusaurus site

* Update docs
2017-12-11 16:32:05 -08:00
Héctor Ramos
ad87bab09b Fix path to docs assets dir (#265) 2017-12-07 10:14:32 -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
97612cf20b Link to master version of doc when editing (#262)
* Ensure Edit this Doc links always point to the master source of truth, and not a particular version

* Only show Edit this Doc link if editUrl has been set
2017-12-05 15:44:14 -08:00
Héctor Ramos
80fc8169b7 Fix background css (#261) 2017-12-05 13:35:15 -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