Commit Graph

2589 Commits

Author SHA1 Message Date
Sam Zhou f2fb2b8e0f
fix(v2): Fix plugin path resolution (#2829)
* fix(v2): Fix plugin path resolution

* Import docusaurus.config.js from constant file
2020-05-29 15:37:07 +08:00
Alexey Pyltsyn 0047db2896 docs(v2): delete alpha.43 2020-05-28 08:58:04 +03: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 3cf1a7b9ef
chore(v2): v2.0.0-alpha.56 (#2822) 2020-05-27 20:04:12 +03:00
Sébastien Lorber 6462e1c4da
chore: ignore /coverage folder (#2821) 2020-05-28 00:38:36 +08: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 082c6212cb
feat(v2): allow deploy without building website (#2770)
* feat(v2): allow deploy without building website

* Update cli.md
2020-05-27 22:34:41 +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 2105700fb7
refactor(v2): various tweaks to website (#2816) 2020-05-27 20:56:59 +08:00
Alexey Pyltsyn f23d03bd3b
refactor(v2): align search icon to center on mobiles (#2814) 2020-05-27 16:36:13 +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
Sylvain Pace 34e664ac27
docs(v2): add mention on DocSearch when you run the crawler on your own (#2809) 2020-05-26 01:09:22 +08:00
Alexey Pyltsyn b52b7d64ff
fix(v2): make proper h1 font size on mobiles (#2800) 2020-05-24 20:08:42 +08:00
Alexey Pyltsyn ca90b42991
misc: minor improvements for init templates (#2802) 2020-05-24 19:47:04 +08:00
Alexey Pyltsyn 4cc36a535e
docs(v2): add trailing slash to external links (#2801) 2020-05-24 19:46:23 +08:00
Sam Zhou 9001c49880
fix(v2): Properly declare peerDependencies (#2806) 2020-05-24 12:48:36 +08:00
Alexey Pyltsyn 2e12269f94
misc: use branded favicon in init templates (#2803) 2020-05-24 12:48:04 +08:00
Alexey Pyltsyn 604f9f5b25
refactor(v2): increase search input on medium screens (#2799)
* refactor(v2): show only search icon on mobiles

* refactor(v2): increase search input on medium screens
2020-05-24 12:45:38 +08:00
Alexey Pyltsyn a7e4013d3b chore: prettier 2020-05-23 11:23:28 +03: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
Sam Zhou 78136e77a2
feat(v2): Use pnp-webpack-plugin to support pnp module resolution (#2796) 2020-05-23 11:25:23 +08:00
Yangshun Tay 2dbd0488d7 docs(v2): document beforeDefaultRemarkPlugins and beforeDefaultRehypePlugins 2020-05-23 06:12:24 +08:00
Kasper Bøgebjerg Pedersen 0e61da8f69
feat(v2): allow specifying of remark and rehype plugins before default plugins (#2689)
* feat(v2): swap order of markdown plugins

* feat(v2): remark/rehype plugins can override default plugins
2020-05-23 06:07:01 +08:00
Alexey Pyltsyn 0ff6dd31f4
style(v2): disable Prettier checks for Markdown files of init templates (#2792) 2020-05-23 05:05:16 +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
Sam Zhou 1503943e3f
fix(v2): Use `require.resolve` to resolve plugin path in presets (#2794) 2020-05-23 04:57:02 +08:00
Yangshun Tay 20fbceb9f1 docs(v2): fix markdown syntax examples in templates 2020-05-22 19:18:29 +08:00
Piotr Baran 926cbb818b
docs(v2): change docs for markdown features (#2786)
* fix(v2): change docs for markdown features

* Update doc1.md

* Update doc1.md

* Update doc1.md

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-05-22 18:57:48 +08:00
Sam Zhou faf48e9b16
fix(v2): Resolve plugins relative to siteDir (#2789) 2020-05-22 17:04:40 +08:00
Sam Zhou a7925f28be
fix(v2): use `require.resolve` for all webpack presets and plugins (#2788) 2020-05-22 11:36:46 +08:00
Alexey Pyltsyn 783e7e7663
fix(v2): do not show sidebar on reserved docs home page (#2785) 2020-05-22 11:28:53 +08:00
James McShane b6b108e5b1
misc: update debug config for Docusaurus v2 in VS Code (#2775)
Adding instructions that work to debug docusaurus locally
2020-05-22 11:27:47 +08:00
Muhammad Ali e6cdeba603
docs(v2): add articles section to resources page (#2781) 2020-05-22 11:26:29 +08:00
Alexey Pyltsyn 7448501c7c
refactor(v2): make external links more secure (#2783) 2020-05-22 11:18:27 +08:00
John Knox 70c201c24d
feat(v2): open external links in new tab by default (#2780)
Docusaurus is already opinionated about doing this, for example the navbar and
footer do this already.

This changes the Link component to do the same. This includes links in markdown
in the form of `[label](url)`.

You can override this behaviour by passing the target: '_self' prop.
2020-05-21 19:34:33 +08:00
Alexey Pyltsyn 05c3aa31f4
fix(v2): do not highlight root docs path in navbar (#2778) 2020-05-20 16:49:11 +08:00
Alexey Pyltsyn 0dc0c35ec8 docs(v2): misc update 2020-05-20 11:41:39 +03:00
Alexey Pyltsyn e8f50af8f0
fix(v2): check for docs homepage correctly (#2777) 2020-05-20 16:18:56 +08:00
Alexey Pyltsyn d94a549cfb v2.0.0-alpha.55 2020-05-19 13:55:03 +03:00
Alexey Pyltsyn 570ce36cc7
chore(v2): v2.0.0-alpha.55 (#2774) 2020-05-19 13:38:09 +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 da0f865831
fix(v2): remove Markdown syntax from excerpt (#2701)
* fix(v2): remove Markdown syntax from excerpt

* Update snapshots

* Use Remark

* Switch to own solution
2020-05-18 19:57:03 +08:00
Alexey Pyltsyn c7baa125e6
chore(v2): mention about docs home page in init templates (#2763)
* chore(v2): mention about docs home page in init templates

* use home page id for docs

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-05-18 13:14:06 +08:00
Alexey Pyltsyn fc161b8455
docs(v2): various improvements (#2768) 2020-05-18 11:37:53 +08:00
Alexey Pyltsyn cc688f48fc
refactor(v2): add support for dark mode to live code blocks (#2767) 2020-05-18 11:24:32 +08:00
Alexey Pyltsyn eed2ade7b3
refactor(v2): remove extra active CSS class for menu item links (#2766) 2020-05-18 11:22:12 +08:00