Commit graph

305 commits

Author SHA1 Message Date
Joel Marcey
582efb496c Write CNAME file if custom domain
Custom domains in GitHub pages require a CNAME file. This file is automatically created for you if you add a custom
domain to the GitHub pages section of the "Settings" area in a GitHub repo.

However, the way we push to GitHub, we remove all files from a `gh-pages` branch before building and pushing the new
content on a rebuild. This includes removing the CNAME file, even if it was autogenerated when changing the setting.

So, just always create a CNAME file if the domain is a custom domain.
2017-07-28 07:40:31 -07:00
Frank Li
f3cb4d1860 Merge branch 'master' into sidebar-ordering 2017-07-25 16:34:57 -07:00
Frank Li
ab58eaa9fa Update use of readCategories.js 2017-07-25 16:30:49 -07:00
Frank Li
f3a152170d Add syntax highlighting for more languages besides Javascript 2017-07-24 14:53:00 -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
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
5135138156 Allow GridBlock titles to use markdown 2017-07-20 16:15:04 -07:00
Frank Li
b2be3331cf Update edit button and header language drop down 2017-07-20 15:56:38 -07:00
Frank Li
f622bf17d2 Allow removal of "Edit this Doc" button 2017-07-20 15:21:20 -07:00
Frank Li
d5fb69d475 Remove unused doc sidebar config 2017-07-19 13:47:21 -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
e3b99f800b Update server routing for "docs" urls 2017-07-18 16:52:47 -07:00
Frank Li
ef6c04d1cb Merge remote-tracking branch 'origin/update-examples' 2017-07-18 12:09:55 -07:00
Frank Li
63c62f1d11 Update build-files.js to ignore .babelrc file 2017-07-18 11:44:44 -07:00
Frank Li
610b598827 Update start-server.js to ignore .babelrc files 2017-07-18 11:44:19 -07:00
Frank Li
6dd70c67f6 Update message when file to copy already exists 2017-07-17 16:36:20 -07:00
Frank Li
ba487826a5 Merge pull request #21 from facebookexperimental/allow-incomplete-docs
Skip processing any docs with empty/no front matter instead of throwing error
2017-07-17 16:19:25 -07:00
Frank Li
9f26e4f305 Merge pull request #20 from facebookexperimental/blog-navigation
Add Recent Posts button at bottom of blog posts
2017-07-17 16:19:04 -07:00
Frank Li
de088ce376 Update css blog button styles 2017-07-17 16:18:14 -07:00
Frank Li
2585dfa1f9 Skip processing any docs with empty/no front matter instead of throwing error 2017-07-17 12:25:36 -07:00
Frank Li
68395bbe3c Merge pull request #16 from facebookexperimental/fix-search-positioning
Fix search bar positioning in header
2017-07-17 11:54:56 -07:00
Frank Li
8f705fcb7e Move location in css file of search bar css change 2017-07-17 11:54:28 -07:00
Frank Li
c6bdc81376 Add Recent Posts button at bottom of blog posts 2017-07-17 11:46:35 -07:00
Frank Li
07001fafdc Merge pull request #19 from facebookexperimental/sidebar-titles
Add optional sidebar_title docs front matter field for sidebar title distinct from document article titles
2017-07-17 11:39:13 -07:00
Frank Li
14ce8c6d30 Make SideNav.js more readable 2017-07-17 11:23:03 -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
704897fd61 Add config option to allow disabled header title 2017-07-17 10:35:43 -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
833d9d30a1 Fix search bar positioning in header
Adding this style change should fix the search bar. Could someone advise on where the best place to put it in the file would actually be, and if this is the right way to approach a fix? Thanks.
2017-07-13 15:27:24 -07:00
Frank Li
72328ef4a9 Use flag for server port number 2017-07-13 13:40:24 -07:00
Frank Li
c9f3f6a7dd Update examples script to print messages and move docs/blog examples to folder outside of website 2017-07-12 16:24:15 -07:00
Frank Li
ea4a4f6fe3 Fix hardcoded port number 2017-07-12 14:43:24 -07:00
Shawn Wilsher
4fd8d5a105 Ensure mutli-word page titles do not wrap (#13)
If you happen to have a page with the title of "Getting Started", the title would wrap even if there was plenty of space.
2017-07-12 14:23:13 -07:00
Frank Li
a7258f990c Merge pull request #4 from facebookexperimental/deltice
Add new translation functionality and run prettier
2017-07-12 11:56:12 -07:00
Frank Li
2d2f324c7d Add new translate functionality to dev server 2017-07-12 11:38:02 -07:00
Shawn Wilsher
6ed4afef64 Do not wrap on words in navigation links
If you have text like "Getting Started", it will wrap on the space and not be one line.
2017-07-12 10:22:18 -07:00
Frank Li
099a13a264 Move references to languages and translated strings out of siteConfig.js into new translation.js module 2017-07-11 17:03:27 -07:00
Frank Li
ef5c4f83a2 Update Site.js to use template strings 2017-07-11 14:52:33 -07:00
Frank Li
0f6800df10 Allow server port to be chosen and update example 2017-07-11 14:48:57 -07:00
Frank Li
330153fbf3 Separate examples for translation functionality 2017-07-11 10:49:22 -07:00
Frank Li
3033688d40 Fix translate module 2017-07-10 16:45:36 -07:00
Frank Li
fbae29b0ff Run Prettier 2017-07-10 16:38:35 -07:00
Frank Li
a7b5148e06 Add plugin usage to build script, update example files 2017-07-10 16:34:07 -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