Commit graph

2343 commits

Author SHA1 Message Date
Alexey Pyltsyn
c3aa162ea5
refactor(v2): remove unnecessary X-UA-Compatible meta tag (#2485) 2020-03-31 11:44:58 +08:00
Alexey Pyltsyn
8143af6851
feat(v2): add a way to exclude components from build-time prerendering (#2323)
* feat(v2): add a way to exclude components from SSR within JSX

* Update docusaurus-core.md

* Update and rename ClientOnly.js to BrowserOnly.js

* improve docs

* Improve naming

* Simplify realization

* Fix code style

* Fix docs

* Update docusaurus-core.md

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-03-29 23:43:57 +08:00
Alexey Pyltsyn
005eb07a32
fix(v2): do not render sidebar logo if used sticky navbar (#2483) 2020-03-29 23:37:48 +08:00
Alexey Pyltsyn
4539055de6
misc: add special thanks section in README file (#2482)
* misc: add special thanks in readme

* Update README.md

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-03-29 23:37:20 +08:00
Alexey Pyltsyn
c299baa80b
fix(v2): various improvements for accessibility (#2480) 2020-03-29 23:35:58 +08:00
Alexey Pyltsyn
8fe203d529
chore(v2): upgrade MDX to 1.5.8 (#2479) 2020-03-29 23:34:31 +08:00
Alexey Pyltsyn
fa2e263ce8
feat(v2): add ability to create unminimized bundles (#2474) 2020-03-29 23:32:26 +08:00
Alexey Pyltsyn
a869d5d705 misc: fix heading level in feature issue template 2020-03-29 17:37:52 +03:00
Alexey Pyltsyn
5ed226dc64 fix(v2): remove unnecessary role navigation 2020-03-29 13:21:16 +03:00
Alexey Pyltsyn
cf884f532d
fix(v2): improve code block scroll accessibility (#2476) 2020-03-29 12:48:34 +08:00
Alexey Pyltsyn
cffb3f9af5
fix(v2): make correct Open Graph title for doc page (#2475) 2020-03-29 12:12:07 +08:00
Alexey Pyltsyn
92f2c52034
docs(v2): mark that in dev server some features may not work (#2478) 2020-03-29 12:10:50 +08:00
Alexey Pyltsyn
f0941a9ff6
chore(v2): upgrade remark-admonitions for a11y fixes (#2477) 2020-03-29 12:10:26 +08:00
Yangshun Tay
36ea74504e
docs(v2): use codeblock title syntax instead of comments (#2473) 2020-03-29 01:08:50 +08:00
GermaVinsmoke
b8c888b1b1
docs(v2): fix typo in deployment docs (#2472) 2020-03-29 00:15:13 +08:00
mohrash92
bf3c7cc8f9
fix(v1): fix broken links in example docs (#2453)
* fix(v1): add languages file to fix broken links

* fix(v1): add languages file to fix broken links

* fix(v1): change links for default website instead of introducing languages file

* fix(v1): after linter run

* fix(v1): fix my IDE's weird formatting

* fix(v1): follow same indentation as the rest of the anchor tags

* fix(v1): maybe I do need linter to run
2020-03-27 19:04:02 +08:00
Sam Zhou
ecfb55eee8
feat(v2): support TypeScript theme components (#2469) 2020-03-27 19:02:36 +08:00
Fanny
079e1ce2df
docs(v2): add setup of mdx plugins (#2466)
* Add mdx plugins

* Apply suggestions from code review

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

* Update website/docs/markdown-features.mdx

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

* Update markdown-features.mdx

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-03-27 02:15:26 +08:00
Kohhee Peace
5e0d11dbaf
feat(v2): add filename in CodeBlock (#2346)
* feat: add filename in CodeBlock

* Fix code to use Regex to find title from markdown and Update style

* Fix reviewed point
- Delete unnecessary template literals
- Delete unnecessary "important!" from css

* Add title in live codeblock

* Just edit code order

* Add demo for code title

* Add docs about code title in markdown-features.mdx

* Make code title height scalable

* Rename codeBlockWrapper to codeBlockContent

* Make copyButton appear when hovering codeTitle

* Fix docs description about code title
2020-03-26 01:05:18 +08:00
Sébastien Lorber
201c663318
feat(v2): allow nested sidebar category shorthand syntax (#2444)
* feat(v2): allow sidebar category shorthand syntax also for nested elements

* Update sidebars-category-shorthand.js

* Update sidebars-category-shorthand.js

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-03-26 00:59:51 +08:00
Bartosz Kaszubowski
85c124e3f1
chore(v2): use single method package instead of whole Lodash package in blog plugin (#2460) 2020-03-25 18:28:27 +08:00
Elvis Wolcott
16a84998da
fix(v2): expand broken admonitions (#2458)
* fix: expand broken admonitions

* fix: properly format admonitions
2020-03-25 18:22:03 +08:00
Yangshun Tay
27e7fa617d
feat(v2): add @theme-original alias to give access to pre-swizzled components (#2455) 2020-03-25 00:53:51 +08:00
Alexey Pyltsyn
c2fd6520ae
fix(v2): do not force terminate building when bundle analyzer is on (#2462) 2020-03-25 00:52:47 +08:00
Alexey Pyltsyn
b0933364d4
chore(v2): upgrade react-dev-utils (#2461) 2020-03-25 00:51:00 +08:00
Alexey Pyltsyn
daab34bbb0 chore(v2): update yarn.lock 2020-03-24 17:16:40 +03:00
Alexey Pyltsyn
8d31c21fe5 docs(v2): fix misc styling 2020-03-24 09:56:02 +03:00
Alexey Pyltsyn
c56ec347f2 Merge branch 'master' of github.com:facebook/docusaurus 2020-03-24 09:16:50 +03:00
Yangshun Tay
eca292b6c8 misc(v2): make watchman config valid 2020-03-24 12:17:00 +08:00
Ben Gubler
a8a4fe467a
polish(v2): use npm-to-yarn for the npm2yarn remark plugin (#2428)
* Use npm-to-yarn for the Bash npm2yarn Remark plugin

* Update npm-to-yarn version with fix

* Update npm-to-yarn yet another time to fix another -g/--global bug

* Update remark-npm2yarn.js

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-03-24 08:53:48 +08:00
Elvis Wolcott
55188ed0a1
fix(v2): pass options to remark-admonitions (#2451) 2020-03-24 08:42:41 +08:00
Alexey Pyltsyn
204ce1d362 Merge branch 'master' of github.com:facebook/docusaurus 2020-03-23 23:09:29 +03:00
Jefferson Licet
7845425bde docs(v2): add Motion Layout to Showcase page (#2450) 2020-03-23 23:07:32 +03:00
Jefferson Licet
08616997da
Adding Motion Layout to showcase users (#2450) 2020-03-23 22:31:05 +03:00
Yangshun Tay
5813faab32 misc(v2): prettier 2020-03-24 01:40:18 +08:00
Ramón Lamana
a0570e48ac
fix(v2): normalize location for route matching (#2393)
* fix(v2): normalize location path for route matching

* fix(v2): Memoize normalized pathnames

* fix(v2): fix wrong reference to this.state instead of normalized location

* Update normalizeLocation.js

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-03-24 01:34:50 +08:00
Ramón Lamana
c05cb75cbc
docs(v2): add sass/scss under the styling section (#2423) 2020-03-24 01:13:28 +08:00
Ramón Lamana
e1cd0142b6
docs(v2): add docusaurus-plugin-sass to community plugins (#2446) 2020-03-23 22:17:27 +08:00
Favour Kelvin
cdfab94b53
docs(v2): suggest Surge for quick deployment (#2408)
* docs(v2): suggest Surge for quick deployment

* fixed typos

* removed surge from version docs

* Update getting-started-publishing.md

* Update deployment.md

* Update deployment.md

* Update deployment.md

* Update deployment.md

Co-authored-by: Fakela <favourkelvin17gmail.com>
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-03-23 11:51:23 +08:00
mohrash92
264bfddf26
fix(v2): always exit after successful build (#2443)
* fix(v2): always exit after sucessfull build

* fix(v2): exit before return
2020-03-23 11:47:24 +08:00
Alexey Pyltsyn
3052ef14e5
fix(v2): various improvements for accessibility (#2442) 2020-03-23 11:46:57 +08:00
Alexey Pyltsyn
15a21ace93
feat(v2): make clickable sidebar logo (#2440) 2020-03-22 21:34:00 +08:00
Alexey Pyltsyn
5b08ba7f48
polish(v2): add logo for dark mode (#2439) 2020-03-22 21:33:19 +08:00
Alexey Pyltsyn
93da7fe576
feat(v2): add version to page's generated meta tags (#2438) 2020-03-22 10:08:53 +08:00
Alexey Pyltsyn
b3d14816bb
fix(v2): do not force terminate building if client bundle failed in development mode (#2437) 2020-03-22 10:06:10 +08:00
Alexey Pyltsyn
feaa75c876
fix(v2): update twitter:card to summary_large_image (#2436) 2020-03-22 10:05:40 +08:00
Alexey Pyltsyn
18169814c8
fix(v2): fix aspect ratio for Open Graph image (#2435) 2020-03-22 10:05:23 +08:00
Alexey Pyltsyn
5358fca09a
fix(v2): add support dark logo for sidebar logo (#2434) 2020-03-22 10:05:09 +08:00
Alexey Pyltsyn
c7101e032b fix(v2): properly process multiple nodes in slugger 2020-03-21 21:06:51 +03:00
Sébastien Lorber
79a3f35de6
chore(v2): ignore JetBrains editor .iml files (#2433) 2020-03-22 01:34:06 +08:00