Commit graph

2612 commits

Author SHA1 Message Date
Alexey Pyltsyn
5c6670b94e fix(v2): fix broken URL to introduction 2020-06-04 03:38:01 +03:00
Fanny
4b78fd4f96
fix(v2): Getting Started URL (#2874) 2020-06-04 03:34:22 +03: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
Alexey Pyltsyn
e68b81bc33
fix(v2): do not create route for document that serve as docs home page (#2861) 2020-06-03 15:56:57 +08: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
Sébastien Lorber
b8de9c6ded
feat(v2): introduce docs slug in front matter (#2771)
* feat: docs pathname frontmatter (for #2697)

* feat: docs pathname frontmatter (for #2697)

* chore: comment typo

* feat: add slug frontmatter for docs

* test: add tests for versioned sites slugs

* docs: document slug feature

* test: fix tests and snapshots about doc slug feature

* docs(v2): doc slug wording

* Update website/docs/docs.md

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-06-02 20:50:30 +03:00
Alexey Pyltsyn
a32422caa2
refactor(v2): add aria role for doc sidebar (#2864) 2020-06-02 11:06:06 +03:00
Alexey Pyltsyn
ed9977accc
docs(v2): description field in frontmatter of blog post (#2865) 2020-06-02 11:02:45 +03:00
tetunori
e63c468b0f
fix(v2): use base url to navigate to search page (#2838)
* fix: consider baseUrl

Add baseUrl to search page query URL.

* fix: use `useBaseUrl()`

* Revert "fix: use `useBaseUrl()`"

This reverts commit 72b319a293.

* fix: add link to PR
2020-06-02 10:51:54 +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
Yangshun Tay
2cd326fe20 fix(v1): black lives matter banner 2020-06-02 12:09:28 +08:00
Joel Marcey
63e2720dff
Updated banner in solidarity (#2862) 2020-06-01 12:42:48 -07:00
Alexey Pyltsyn
a159a5fc6e chore: prettier 2020-06-01 14:41:28 +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
hackerman
7cba7f0d06
docs(v2): _index docs page does not show a sidebar (#2839)
* docs: _index docs page does not show a sidebar

Closes #2836

* Update website/docs/docs.md

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-06-01 14:06:02 +03:00
Alexey Pyltsyn
1b2744570b
fix(v2): strip images and footnotes for excerpt correctly (#2855) 2020-06-01 18:36:02 +08:00
Alexey Pyltsyn
af912f5a65
misc: move runme demo in block quote about v2 (#2852) 2020-06-01 18:35:36 +08:00
Alexey Pyltsyn
be65f4511e
fix(v2): fix broken build when swizzled NotFound component exist (#2854) 2020-06-01 18:32:59 +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
belokonm
374eba7474
misc: add v2 runme demo to README (#2811)
* added demo runner on runme.io

* change to readme, added button indside

* Change to version 2 of docusaurus

* V2 (#1)

* try v2

* port change

* put path to folder

* change running string

Co-authored-by: Cloud User <belokonm@gmail.com>

Co-authored-by: MishaJexia <44843719+MishaJexia@users.noreply.github.com>
2020-05-30 13:36:42 +08:00
Koki Nishihara
ce4b0187aa
docs(v2): Update ZEIT to Vercel (#2842)
docs: update ZEIT to Vercel
2020-05-30 13:35:22 +08:00
Alexey Pyltsyn
e57294f70f
fix(v2): set proper font for live editor (#2835) 2020-05-29 17:57:19 +08:00
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