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
ab5590bafa
fix(v2): add default value for options in theme classic [ci skip] ( #2688 )
2020-04-28 09:30:18 +03:00
Alexey Pyltsyn
46118b3fe4
fix(v2): allow build website without custom css ( #2676 )
2020-04-27 21:09:57 +08: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
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
Alexey Pyltsyn
6965a668cd
chore(v2): fix code style
2020-04-05 17:30:59 +03:00
Yangshun Tay
b07507c9cc
chore(v2): upgrade devDependencies ( #2538 )
...
* chore(v2): upgrade devDependencies
* chore(v2): upgrade devDependencies
* chore: prettier
2020-04-05 19:07:44 +08:00
Alexey Pyltsyn
ea8c916528
fix(v2): sync changes between code block components
...
aa0d85646f
@yangshun arrgh, please pay attention on this PR! https://github.com/facebook/docusaurus/pull/2464
2020-04-05 13:39:18 +03:00
Alexey Pyltsyn
349eee042b
refactor(v2): make better code blocks ( #2534 )
...
* refactor(v2): make better code blocks
* Update styles.module.css
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-05 18:01:07 +08:00
Fanny
5e664a1f26
feat(v2): add edit url in post page ( #2524 )
...
* Add edit page url in docs
* feat(v2): Create EditPage component
* feat(v2): Improve component
* Add test
* çhore(v2): update description
* çhore(v2): update url
* fix(v2): test
* fix(v2): test
* feat(v2): change the prop of EditPage component
* chore(v2): Remove packages
* feat(v2): Update old tests
* chore(v2): fix package
* fix(v2): fix editUrl
* docs(v2): document editUrl
* --
* --
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-05 17:34:48 +08:00
Alexey Pyltsyn
7bc7241ee4
fix(v2): add rounded corners in code blocks properly ( #2533 )
2020-04-05 15:57:11 +08:00
José Renan
95fdfe7e15
feat(v2): add blog post estimated reading time ( #2531 )
...
* feat: add estimated reading time to blog posts
* docs: add showReadingTime on plugin docs
* test: update plugin-content-blog tests to cover readingTime
* Update index.js
* Update using-plugins.md
* Update index.js
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-05 15:08:42 +08:00
Yangshun Tay
692ab14e4f
fix(v2): make code block nicer again ( #2526 )
2020-04-04 13:06:11 +08:00
Alexey Pyltsyn
44f9c76851
fix(v2): synchronize code block components changes ( #2509 )
2020-04-02 23:05:48 +08:00
Yangshun Tay
f51b56460e
fix(v2): tweak colors for announcement bar ( #2505 )
...
* fix(v2): tweak colors for announcement bar
* black
2020-04-02 14:41:49 +08:00
Alexey Pyltsyn
0c1d593e00
refactor(v2): improve announcement bar ( #2504 )
2020-04-02 14:31:53 +08:00
Yangshun Tay
63997a4fbe
fix(v2): make code block nicer ( #2502 )
2020-04-02 14:12:47 +08:00
Yangshun Tay
eeebc31ff1
docs(v2): reorganize markdown features page ( #2503 )
...
* docs(v2): reorganize markdown features page
* docs(v2): reorganize markdown features page
2020-04-02 14:12:17 +08:00
Yangshun Tay
8018a835e5
docs(v2): misc docs updates ( #2500 )
2020-04-02 12:29:39 +08:00
Yangshun Tay
e240d1b5aa
fix(v2): blog item styling ( #2498 )
2020-04-02 11:14:49 +08:00
Alexey Pyltsyn
d1326cdee8
refactor(v2): update HTML markup of pagination for better 11y ( #2495 )
2020-04-02 10:43:34 +08:00