Teik Jun
0c92f5aacd
feat(v2): add a banner that links to latest version of documentation ( #2916 )
...
* feat(v2): add metadata to indicate the document is old
* feat(v2): add badge that links old versions to latest version
* feat(v2): fix test related to metadata
* feat(v2): fix formatting
* feat(v2): fix formatting
* feat(v2): use Link component instead of anchor tag
* feat(v2): add pramlink to latest docs
* feat(v2): add more vibrant warning message
* feat(v2): position the banner above the article
* feat(v2): link latest version to intro page
* fix(v2): fix some test cases
* feat(v2): fix tests
* feat(v2): change banner to warning orange
* feat(v2): compute root route from sidebar
* style(v2): fix formatting
* feat(v2): use homeid if provided to compute base route
* feat(v2): rename functions and fix a corner case
* feat(v2): fix formating
* feat(v2): compute homepageurl
* style(v2): improve code quality
* style(v2): unbold fullstop for consistency
Co-authored-by: Anshul Goyal <anshulgoel151999@gmail.com>
2020-06-15 14:31:23 +02:00
Alexey Pyltsyn
dd1ef71aac
chore(v2): replace Clipboard with copy-text-to-clipboard ( #2900 )
...
* chore(v2): replace Clipboard with copy-text-to-clipboard
* Remove clipboard from yarn.lock
2020-06-07 13:48:28 +08:00
Alexey Pyltsyn
afe9ff91a4
chore(v2): replace classnames with clsx ( #2895 )
2020-06-07 13:40:06 +08:00
Alexey Pyltsyn
277f02b924
fix(v2): set correct canonical url for docs home page ( #2896 )
2020-06-06 16:51:00 +08:00
Sébastien Lorber
1003a15d1f
polish(v2): improve Docusaurus 1 to 2 migration developer experience ( #2884 )
...
* improve markdown parsing errors by adding file path to error
* typo commit
* Add default nav item position to right (as v1)
* improve error when sidebar references unexisting document
* parseMarkdownFile: improve errors by providing hint about using "" to avoid parsing errors, if using special characters
* improve subcategory migration error for Unknown sidebar item type
* improve unrecognizedFields error
* typo
* fix inline snapshots
* improve the migration docs
* improve the migration docs
* improve migration doc
* Update migrating-from-v1-to-v2.md
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-06-06 11:16:50 +08:00
Sam Zhou
8aa520c314
fix(v2): Do not automatically change tab when a non-existing option is selected ( #2893 )
2020-06-06 11:11:42 +08:00
Alexey Pyltsyn
664ceb7771
fix(v2): restore styles for menu scrollbar ( #2888 )
2020-06-05 20:13:40 +08:00
Alexey Pyltsyn
174cd8dc6f
refactor(v2): combine nested theme providers into one ( #2870 )
2020-06-05 15:09:13 +08:00
Alexey Pyltsyn
6f2e59a176
fix(v2): render as regular text uncollapsible categories ( #2880 )
2020-06-04 20:27:16 +08:00
Alexey Pyltsyn
6f332f4345
fix(v2): treat inline code in raw HTML as native element ( #2857 )
...
* fix(v2): treat inline code in raw HTML as native element
* Replace indexOf with includes
2020-06-03 11:34:25 +03:00
Sébastien Lorber
6797af660f
fix(v2): fix FOUC in doc sidebar and various improvements ( #2867 )
...
* bug(v2): fix active sidebar item detection logic (https://github.com/facebook/docusaurus/pull/2682#issuecomment-636631225 )
* fix sidebar category collapsed normalization to make sure we always have a boolean after normalization
* fix sidebarCollapsible option
2020-06-03 02:04:59 +08:00
Alexey Pyltsyn
a32422caa2
refactor(v2): add aria role for doc sidebar ( #2864 )
2020-06-02 11:06:06 +03:00
Alexey Pyltsyn
c0c7457e01
feat(v2): allow specifying meta image for blog posts ( #2856 )
...
* feat(v2): allow specifying meta image for blog posts
* Update docs [skip ci]
2020-06-02 10:48:22 +03:00
Alexey Pyltsyn
f25dd514f6
refactor(v2): add aria label to paginators ( #2859 )
2020-06-01 19:10:40 +08:00
Alexey Pyltsyn
ae91234e0f
refactor(v2): add missing main landmark for needed pages ( #2858 )
2020-06-01 19:10:14 +08:00
Sam Zhou
93b35afe95
feat(v2): Allow swizzling prism-include-languages in theme-classic ( #2841 )
...
* feat(v2): Allow swizzling prism-include-languages in theme-classic
* Add docs
* Improve docs
2020-05-31 14:41:16 +08:00
Joe Previte
07b9e9cd62
feat(v2): expanded sidebar categories by default ( #2682 )
...
* 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
* refactor: check if item should be expanded
* docs: update sidebar categories section
* refactor: use new collpased on docusaurus
* feat: only highlight category for active page
* fix: check for window
* refactor: use ExecutionEnviornment
* refactor: make isCategoryOfActivePage pure
* fix: rename docs to docs-introduction in sidebars
* Update docs.md
* misc: remove setting for every sidebar
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-05-28 13:17:19 +08:00
Alexey Pyltsyn
d8ebe8b2e4
v2.0.0-alpha.56
2020-05-27 20:18:28 +03:00
Alexey Pyltsyn
9973ae2d12
refactor(v2): do not use announcement bar hook unnecessarily
2020-05-27 18:42:36 +03:00
Alexey Pyltsyn
aaa8423c35
chore(v2): upgrade Infima to 0.2.0-alpha.12 ( #2820 )
2020-05-27 23:19:18 +08:00
Sam Zhou
33b60c6ba4
fix(v2): Consistently use 10.15.1 as the minimum required node version ( #2819 )
2020-05-27 23:18:48 +08:00
Alexey Pyltsyn
90db53657e
feat(v2): automatically add base url to logo link ( #2818 )
...
* feat(v2): automatically add base url to logo link
* Fix for docs non-root path
2020-05-27 22:22:22 +08:00
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