Commit graph

1152 commits

Author SHA1 Message Date
Alexey Pyltsyn
d391a2bcdb
fix(v2): enable scrolling for sidebar menu only (#2645)
* fix(v2): enable scrolling for sidebar menu only

* Add support for announcement bar

* fix: remove redundant styles
2020-05-26 01:47:40 +08:00
Alexey Pyltsyn
b52b7d64ff
fix(v2): make proper h1 font size on mobiles (#2800) 2020-05-24 20:08:42 +08:00
Sam Zhou
9001c49880
fix(v2): Properly declare peerDependencies (#2806) 2020-05-24 12:48:36 +08:00
Sam Zhou
705f8f3c51
fix(v2): Consistently use require.resolve in official plugins to resolve modules (#2797)
* fix(v2): Use require.resolve to resolve loaders in official plugins

* Use require.resolve to resolve client modules
2020-05-23 11:26:50 +08:00
Alexey Pyltsyn
83f980cadf
refactor(v2): show only search icon on mobiles (#2791) 2020-05-23 05:02:18 +08:00
Sam Zhou
85a694448f
fix(v2): Ensure that theme classic require webpack provided by @docusaurus/core (#2795) 2020-05-23 04:58:21 +08:00
Alexey Pyltsyn
d94a549cfb v2.0.0-alpha.55 2020-05-19 13:55:03 +03:00
Alexey Pyltsyn
4f38d78118
chore(v2): upgrade Infima to 0.2.0-alpha.11 (#2773) 2020-05-19 12:40:20 +03:00
Alexey Pyltsyn
eed2ade7b3
refactor(v2): remove extra active CSS class for menu item links (#2766) 2020-05-18 11:22:12 +08:00
Alexey Pyltsyn
48b2b753bb
fix(v2): remove invalid attr from mobile nav links (#2765)
* fix(v2): remove invalid attr from mobile nav links

* Update index.js

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-05-18 11:21:36 +08:00
Alexey Pyltsyn
d910ff118e
refactor(v2): add @theme-init alias to give access to initial components (#2464) 2020-05-17 22:47:05 +08:00
Ben Gubler
daafd2f0cc
feat(v2): allow activeBaseTest in NavLink (#2690)
* Update documentation, add support for activeBaseTest

* Implicit else

* Fix Regular Expression capitalization

Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com>

* Refactor isActive to ternary function, rename activeBaseTest to activeBaseRegex

* Update website/docs/theme-classic.md

Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com>

* Fix typo

* Update website/docs/theme-classic.md

Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com>

* Update theme-classic.md

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-05-17 19:23:32 +08:00
Alexey Pyltsyn
00a8e9e365
feat(v2): allow home page for docs (#2652)
* feat(v2): allow home page for docs

* Refactor

* Remove debugging info 🤦‍♂️

* Add sort routes for first test case

* Sort child routes for consistency
2020-05-17 17:48:02 +08:00
Alexey Pyltsyn
393adc5324
fix(v2): move anchor link to right of heading (#2760) 2020-05-17 17:38:41 +08:00
Alexey Pyltsyn
2d0b36df1b
fix(v2): remove extra top margin of tab item (#2758) 2020-05-17 17:37:05 +08:00
Alexey Pyltsyn
1fe2dc192e
fix(v2): restore hiding of docs toc (#2759) 2020-05-17 15:45:14 +08:00
Yangshun Tay
be7367b2f8
feat(v2): allow prepending of baseUrl to href in navbar and footer (#2746) 2020-05-14 11:47:28 +08:00
Fanny
dd1ad5d943
Merge pull request #2739 from facebook/fanny/copyright-headers
chore(v2): Add missing copyright headers
2020-05-13 14:26:04 -03:00
Jimmy
aac4e27a90
feat(v2): add canonical URL to <head> (#2694) 2020-05-13 11:29:38 +08:00
fanny
c23f065175 chore(v2): Add copyright headers 2020-05-12 14:01:12 -03:00
Alexey Pyltsyn
93b39e674f
chore(v2): upgrade Infima to 0.2.0-alpha.10 (#2729)
* chore(v2): upgrade Infima to 0.2.0-alpha.10

* Changelog
2020-05-10 21:03:45 +08:00
Alexey Pyltsyn
753d117025 v2.0.0-alpha.54 2020-04-28 09:49:27 +03:00
Alexey Pyltsyn
ab5590bafa
fix(v2): add default value for options in theme classic [ci skip] (#2688) 2020-04-28 09:30:18 +03:00
Alexey Pyltsyn
d90fdb04d5 v2.0.0-alpha.53 2020-04-27 16:38:33 +03:00
Alexey Pyltsyn
7359945f52 v2.0.0-alpha.52 2020-04-27 16:30:15 +03:00
Alexey Pyltsyn
46118b3fe4
fix(v2): allow build website without custom css (#2676) 2020-04-27 21:09:57 +08:00
Alexey Pyltsyn
c9c5aedcb5 v2.0.0-alpha.51 2020-04-27 14:44:56 +03:00
Alexey Pyltsyn
7389a60514
fix(v2): add a11y support for dropdown (#2672)
* fix(v2): add a11y support for dropdown

* fix(v2): add aria-label for navbar GH link
2020-04-27 14:17:55 +03:00
Yangshun Tay
1d8cc4b10f
chore(v2): upgrade Infima (#2669)
* chore(v2): upgrade Infima

* Make proper classes for active items

* upgrade Infima to v0.2.0-alpha.9

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-04-27 10:50:28 +08:00
Alexey Pyltsyn
c0e531e5d9
feat(v2): add ability to specify CSS class for navbar item (#2660)
* feat(v2): add ability to specify CSS class for navbar item

* Fix linting issues
2020-04-27 02:21:36 +08:00
Alexey Pyltsyn
379d3e0d23
chore(v2): upgrade prism-react-renderer to latest version (#2666) 2020-04-27 00:50:06 +08:00
Alexey Pyltsyn
fed12e49a4 fix(v2): disable focus on clicked sidebar category 2020-04-25 09:05:09 +03:00
Alexey Pyltsyn
71b66f1a42
refactor(v2): lose focus of active sidebar item after click on it (#2656) 2020-04-25 11:59:14 +08:00
Alexey Pyltsyn
9e1f816fcd
fix(v2): use remark-admonitions separately in each plugin instead of in preset only (#2642)
* fix(v2): use remark-admonitions separately in each plugin instead of in preset only

* Update types.d.ts

* Update types.d.ts

* Address fixes from review

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-24 12:18:54 +08:00
Alexey Pyltsyn
0a2a037dbb fix(v2): adjust proper padding top of doc page on mobiles 2020-04-23 10:42:16 +03:00
Alexey Pyltsyn
796bd0ce8a
fix(v2): hide sidebar after click on child item (#2649) 2020-04-23 15:14:06 +08:00
Alexey Pyltsyn
510bec6532
Revert "feat(v2): add option to toggle sidebar category open by default (#2613)" (#2644)
This reverts commit 1863a3c805.
2020-04-22 18:50:18 +03:00
Joe Previte
1863a3c805
feat(v2): add option to toggle sidebar category open by default (#2613)
* feat: update sidebar categ to  take collapsed prop

* feat: add extra sidebars collapsed test

* fix: only mutate item.collapsed if necessary

* feat: update docs for SidebarItemCategory

* fix: update snapshots

* fix: update json to match new sidebar schema

* fix: update last snapshot
2020-04-22 20:31:10 +08:00
Alexey Pyltsyn
4367197c77
refactor(v2): extract scroll position detection into separate hook (#2627) 2020-04-22 13:56:04 +08:00
Alexey Pyltsyn
2823d73e19
fix(v2): hide doc sidebar on mobiles (#2631) 2020-04-20 10:48:10 +08:00
Alexey Pyltsyn
52d15e0f7e
fix(v2): make border right of doc sidebar equals doc page (#2626) 2020-04-19 21:28:35 +08:00
Alexey Pyltsyn
2c4490a1ff
fix(v2): disable tab focus on collapsed doc sidebar items (#2625) 2020-04-19 21:28:08 +08:00
Yangshun Tay
409f8788dc
fix(v2): hide mobile navbar hamburger when there are no links (#2624) 2020-04-18 12:09:28 +08:00
Alexey Pyltsyn
14f4ef875a
feat(v2): add ability set dark mode by default (#2597)
* feat(v2): add ability set dark mode by default

* s/forceDarkMode/defaultDarkMode

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-17 19:19:55 +08:00
Alexey Pyltsyn
6a2fdbe3ca
fix(v2): inherit color for announcement bar close icon (#2602) 2020-04-14 23:04:54 +08:00
Alexey Pyltsyn
b50179071f
refactor(v2): make margin top on blog pages as on docs pages (#2595) 2020-04-13 15:57:40 +08:00
Alexey Pyltsyn
c663d7c1f7
refactor(v2): remove redundant container on docs page (#2588) 2020-04-12 23:42:30 +08:00
Alexey Pyltsyn
9c1abcddab
refactor(v2): use nav link component only where needed (#2585) 2020-04-12 13:34:50 +08:00
Alexey Pyltsyn
d531735b3a
fix(v2): remove horizontal scroll on docs page (#2582) 2020-04-11 22:58:59 +08:00
Alexey Pyltsyn
1f00d15c74 chore(v2): fix code style (revert previous changes) 2020-04-05 17:38:12 +03:00