Commit graph

477 commits

Author SHA1 Message Date
Yangshun Tay
1094dbd352
CSS revamp - Improve typography and overall styling (#757)
* Improve CSS code

* Fix blog layout

* Fix

* Refactor onPageNav

* More fixes

* Fix docs nav

* Use alternative hack

* Tweak clearfix
2018-06-19 21:46:15 -07:00
Endilie Yacop Sucipto
0eb6612b58
add language & version meta for algolia docsearch (#787) 2018-06-19 12:30:03 +08:00
Endilie Yacop Sucipto
0f01eace8b
Use absoluteURL instead of relativeURL for next/prev links (#783)
* Remove trailing slash for docs url

* undo remove trailing slash & use absoluteURL for next/prev links

* use baseUrl instead of hardcoded slash
2018-06-17 11:35:05 +08:00
Thai
7bef1b96dc Hide TOC menu when onPageNav is not separate (#768)
* (bug) - Mobile menu when onPageNav is separate

* fixed lint

* fixed lint

* removed whitespace in brackets

* refactored

* refactor

* Prettier
2018-06-15 21:16:58 -07:00
Luis Merino
371fdda4a8 Fix anchors erroring when heading is empty (#772) 2018-06-15 21:04:46 -07:00
Jonathan Ingram
58fba70dea Add config option for setting title of the blog sidebar (#770)
* Allow controlling the title of the blog sidebar

* Update guides-blog.md
2018-06-15 00:08:34 -07:00
=^._.^=
62a2c7c1a5 Add option to disable live reload server during development (#766)
* add option to disable live reload server

* change live to watch, fix incorrect argument parsing code

* Update api-commands.md
2018-06-14 23:51:03 -07:00
Joel Marcey
608e2c85a2
Move custom translation strings to its own file (#775) 2018-06-14 17:25:29 -07:00
Gustavo Henke
fd9a3ffb6d Cross repo publishing (#764) 2018-06-14 16:03:37 -07:00
Joel Marcey
c2ff413650 Configure sitemap depending on whether clean URLs enabled (#765)
* Configure sitemap depending on whether clean URLs enabled

* Run Prettier
2018-06-13 07:00:32 +08:00
Rupesh Parab
a2b076bdca fix sidebar file name issue in rename-version (#762) 2018-06-12 08:02:13 -07:00
Rémi Doreau
a77ae958db Duplicate code in readMetadata.js & versionFallback.js #725 (#726)
* Duplicate code in readMetadata.js & versionFallback.js #725

* Putting back package-lock.json

* Rename lib/server/utilsMetadata.js -> lib/server/metadataUtils.js

* Update splitHeader + extractMetadata

* Update prettier
2018-06-12 12:25:23 +08:00
skratchdot
8e58d2e903 Adding baseUrl to feed links. (#745) 2018-06-10 10:56:29 -07:00
Endilie Yacop Sucipto
c47af6be4b Enable custom meta description for custom pages (#752) 2018-06-10 09:35:30 -07:00
Endilie Yacop Sucipto
33a0f309ff
Fix HeaderNav linking to versions page to depends on cleanUrl (#748) 2018-06-10 17:56:49 +08:00
Endilie Yacop Sucipto
6244bb1aa4 Fix typo in code comment (#747) 2018-06-10 02:17:08 -07:00
Sviatoslav
3ff24c7926 Show onPageNav on mobile devices (#730)
* Draft implementation of ToC (onPageNav) support for mobile devices

* Support onPageNav on tablets

* Improve tablet layout, when no onPageNav

* Add close state for toc icon

* Close onPageNav, when after navigation on mobile devices
2018-06-09 18:48:18 -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
Endilie Yacop Sucipto
46661c8f1e Fix Express.js regex for docs & blog (#739) 2018-06-07 09:01:41 -07:00
Endilie Yacop Sucipto
ff93ba9853 Translation language respect current url (#734) 2018-06-07 08:15:35 -07:00
Endilie Yacop Sucipto
d04b3ca87b Enable sub-directories in docs/ (#705) 2018-06-07 07:41:28 -07:00
Eric Nakagawa
49c27b733b Adds right-sidebar navigation made available in #475 to Blog Post pages (#682) 2018-06-06 14:20:18 -07:00
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