Commit graph

405 commits

Author SHA1 Message Date
Endilie Yacop Sucipto
31f0c27f81 Enable clean / extension-less url (#677) 2018-06-06 13:37:49 -07:00
Lespagnol Rémy
aee255219b Add a scroll to top button siteConfig option (#723) 2018-06-06 12:34:32 -07:00
Endilie Yacop Sucipto
d28b864a59 Don't start server if versions.js is missing but versioning is enabled (#714)
* don't start server if versions.js missing but versioning is enabled

* refactor

* fix nits

* refactor & address review
2018-06-02 23:45:36 -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
Endilie Yacop Sucipto
b00e9d14e2 Fix assets not found in Express server (#720) 2018-06-02 11:28:04 -07:00
Endilie Yacop Sucipto
72f4f36939 Enable setting of title for custom pages
* allowing custom title on page component

* Update about-slash.js

* Update help.js

* Update users.js

* Update versions.js
2018-05-30 21:37:38 -07:00
Paulus Schoutsen
b3d59f8a0f Disable the padding of the p tag inside the blockquote tag (#711)
* Disable the padding of the p tag inside the blockquote tag

* Make CSS rule more specific.
2018-05-30 20:38:02 -07:00
Dongwoo Gim
49a5263d62 Fix incorrect loading of existing translations file (#710) 2018-05-30 00:45:28 -07:00
artiebits
b5fd7bae73 Don't watch node_modules dir in dev server mode (#702)
* add a negate pattern for a watcher

* replace hardcoded docs path with getDocsPath()
2018-05-25 22:34:03 -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
Paolo Bernardini
2c74d93760 Fix onPageNav not showing on Safari (#687)
Fixes #686 

adding supports ((position: -webkit-sticky) to support Safari
2018-05-22 22:05:41 -07:00
Sujono
436a3d04d2 Show warning console if version.js file is missing (#678) 2018-05-21 00:37:05 -07:00
Noam Elboim
67c84c185c Fix sticky footer to work on index page (#674)
* fixing sticky footer not being sticky

* remove unneeded flex rules

* Revert "remove unneeded flex rules"

This reverts commit 9b8d1809ca.

* adding flex-grow to first-child

* adding min-height in 'vh' to .navPusher for it to work on IE11
2018-05-20 22:31:45 -07:00
Endilie Yacop Sucipto
aae106c018 Enable Facebook comments on blog posts (#673)
* Enable comment on blog post

* adjust css

* Tweak
2018-05-19 09:26:57 -07:00
Endilie Yacop Sucipto
24da6bfba0 Fix typo from #490 (#676)
`'en'` is written as `en`
2018-05-19 07:45:05 -07:00
Endilie Yacop Sucipto
f8521c2fe1 Enhance footer with Facebook and Twitter buttons (#666)
* enhance footer with social media buttons

* Update api-site-config.md

* Update Footer.js

* fix minor issue on social-footer

* update facebookAppId description in api-site-config

* rm heading & pad footer social button

* Update api-site-config.md
2018-05-17 21:26:06 -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
Ahmad Alfy
e3b4f3945e Fix collapse of sidebar caused by #646 (#653) 2018-05-08 15:25:11 -07:00
Amy Lam
873a2427f9 Remove authorImage (#652)
authorImage was replaced by authorImageURL in https://github.com/facebook/Docusaurus/pull/577

authorImage was removed from react-native-website in https://github.com/facebook/react-native-website/pull/314 

authorImage was undocumented, so no docs changes
2018-05-07 23:58:52 -07:00
Ahmad Alfy
0ea685d455 Fix misalignment of the sidebar and the content (#650) 2018-05-07 17:59:47 -07:00
Yangshun Tay
1a6f2fc51c Add open in browser functionality (#643) 2018-05-07 09:46:14 -07:00
Ahmad Alfy
432bdffb22 Fix collapse of main content on "Users" page on IE11 (#646) 2018-05-06 15:37:12 -07:00
Yangshun Tay
8d676e6a5a
Extract blog post truncation logic and add tests (#640) 2018-05-06 09:15:18 -07:00
Ahmad Alfy
5b3f54741e Fix flex children's width not calculated correctly on IE11 (#644)
This is a known issue on IE11 caused by the fact that IE add the padding value to the `flex-basis` leading to increase in the size of the column beyond intended. The block behave as if has `box-sizing` set to `border-box` even if it is set correctly.

Reference: https://github.com/philipwalton/flexbugs#flexbug-7
2018-05-05 22:58:58 -07:00
Ahmad Alfy
17dd6d9c8e Fix font rendering on IE11 (#642)
This is an issue on IE11, it cannot pick the correct system font because the font `-apple-system` makes the value invalid and hence making the whole declaration invalid.

A good solution is to split the shorthand version into separate properties/values and it will work.
2018-05-05 22:42:00 -07:00
Ahmad Alfy
6d77403dc1 Fix navigation collapse on IE11 (#641)
* Fix navigation collapse on IE11
2018-05-05 21:49:06 -07:00
Matthew Francis Brunetti
cf59f72ecd Windows compatibility fix (#583) 2018-05-05 18:29:28 -07:00
Ahmad Alfy
b220ec2f23 Implement sticky footer using flexbox (#637)
Implemented the solution provided [here](https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/) to allow the footer to stick downward no matter how much content the page contain.
2018-05-05 17:56:43 -07:00
Erin Teo
5771549e75 Rename latestVersion to defaultVersion (#639)
* Rename lastVersion to defaultVersion

* Added defaultVersionShown to site-config doc

* Remove defaultVersionShown from siteConfig

* Update api-site-config.md
2018-05-05 17:24:39 -07:00
Joel Marcey
dbc597bfd7 Allow configuring what version is shown by default (#554)
* [RFC] Allow configure what version is shown by default

Seeing if this will work - it won't work if you want to show `master` or `next` by default.
Only named version that would exist in `versioned_docs`.

If this does work and we want to go with it - `latestVersion` in many places seems like a
misnomer. `defaultVersion` would be better or something

* Remove from docusaurus siteconfig
2018-05-04 10:00:46 -07:00
Yangshun Tay
545a053289 Add Facebook copyright headers (#633) 2018-05-04 09:40:07 -07:00
Yangshun Tay
be54c8f035 Fix header anchor alignment (#635) 2018-05-04 08:29:04 -07:00
Sviatoslav
9c98142fea Ensure anchor links are unique per document (#574) 2018-05-03 19:36:12 -07:00
Amy Lam
7fa0f910ac On mobile, hide title if logo exists (#629)
* On mobile, hide title if logo exists

* Run Prettier, use ternary, reorder

* Rename class for clarity

* Update main.css
2018-05-03 10:54:25 -07:00
Yangshun Tay
ef7f8b061f Reduce redundant css (#621) 2018-04-29 22:24:33 -07:00
Fabrizio Ruggeri
976ae770b5 Allow Google Analytics to use gtag.js (#601)
* Moved google analytics script to head

The code now uses the new gtag script to track the website on google analytics.
The migration is explained [here](https://developers.google.com/analytics/devguides/collection/gtagjs/migration).
This will help to solve issues such as #375.
As indicated at https://support.google.com/analytics/answer/1008080
the analytics code must be placed in the head tag, so it is moved there.

* Add a boolean to use the new gtag library

* Update api-site-config.md
2018-04-29 10:44:11 -07:00
Yangshun Tay
812f2be6e3 Sidebar revamp (#617)
* Revamp sidebar

* Change links color

* Tweak for mobile
2018-04-28 18:44:02 -07:00
Paulus Schoutsen
6c9c7e5de5 Generate sitemap if any blog post or page exists (#610) 2018-04-27 23:09:47 -07:00
Yangshun Tay
327d044362 Improve code block appearance (#609) 2018-04-27 06:21:36 -07:00
Yangshun Tay
3a24606887 Improve <table> appearance (#607) 2018-04-26 08:39:26 -07:00
Steven Zeck
df6f6df333 Do not ignore 'custom_edit_url' (#604) 2018-04-25 10:40:53 -07:00
Eric Nakagawa
ec13640097 Revert "Output the full path to build folder to aid when deploying site." (#593) 2018-04-23 11:42:10 -07:00
Eric Nakagawa
083d70d679 Output the full path to build folder to aid when deploying site. 2018-04-23 09:35:47 -07:00
Yangshun Tay
d3fd347d21
Regenerate blog metadata on request to blog (#590) 2018-04-22 20:46:16 -07:00
Christopher Chedeau
1d4e334a86 Restore the ability to use the --port command line argument (#588)
The behavior was changed in #516. With this change, both the command line argument and environment variable will work.
2018-04-20 09:25:12 -07:00
Christopher Chedeau
c400636fb6 Do not ignore the layout header (#587)
#347 added support for warning for unknown fields but didn't take into account `layout` which was added by #128
2018-04-20 09:19:57 -07:00