Joshua Chen
c3370be64d
refactor: make MDX export a flat TOC list instead of tree ( #6729 )
2022-02-23 15:12:04 +01:00
Joshua Chen
2d93750caf
fix(content-docs): improve sidebar shorthand normalization error message ( #6745 )
2022-02-23 13:03:58 +01:00
Joshua Chen
9562a5d203
refactor: remove deprecated Webpack utils & validation escape hatch ( #6740 )
2022-02-23 11:40:58 +01:00
Joshua Chen
051380aa4b
fix(content-docs): properly display collocated social card image ( #6744 )
...
* fix(content-docs): properly display collocated social card image
* oops
2022-02-23 18:21:22 +08:00
Joshua Chen
ddad9713e6
refactor: improve client modules types ( #6742 )
2022-02-23 15:45:23 +08:00
Joshua Chen
cfcc8b31f4
chore(module-type-aliases): add react as peer dependency ( #6741 )
2022-02-23 15:00:14 +08:00
Joshua Chen
671873a681
refactor(core): reduce code verbosity ( #6734 )
...
* refactor(core): reduce code verbosity
* fix
* fix
2022-02-21 19:31:22 +08:00
Joshua Chen
c38200ba5b
refactor: declare all props as interfaces ( #6730 )
...
* refactor: declare all props as interfaces
* fix
* fix...
2022-02-21 11:52:11 +08:00
Joshua Chen
c6d0d812eb
refactor: convert all fs methods to async ( #6725 )
...
* refactor: convert all fs methods to async
* fix snap
2022-02-20 10:21:33 +08:00
Balthasar Hofer
c0b3c9af65
fix(content-docs): create assets for frontmatter images ( #6720 )
...
* create assets for docs front matter images aswell
fixes : #6718
* retrigger fb cla-check
2022-02-20 10:20:33 +08:00
Joshua Chen
ea6ceaa371
refactor: ensure lodash is default-imported ( #6716 )
2022-02-19 18:15:02 +08:00
Joshua Chen
47c9a37c5f
chore: upgrade dependencies ( #6715 )
...
* chore: upgrade dependencies
* upgrade Node
2022-02-19 11:47:44 +08:00
Joshua Chen
692680d1d1
fix(mdx-loader): make headings containing links properly formatted in ToC ( #6712 )
2022-02-18 10:57:08 +08:00
Hong Yongmin
bbc0562d67
chore(theme-translations): complete Korean translations ( #6711 )
...
Requested at #6686 .
Signed-off-by: Yongmin Hong <revi@pobox.com>
2022-02-18 08:47:22 +08:00
이정환
d9bb77923e
fix(theme-translations): improve Korean translations ( #6686 )
...
* "Ko.json" Partial modification.
* format
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-18 07:24:04 +08:00
Joshua Chen
405d5d1a3e
fix(cli): disable directory listing in serve ( #6701 )
2022-02-17 14:53:40 +01:00
Sébastien Lorber
a6f53aa9d2
refactor(theme-classic): bias again search metadata toward Algolia DocSearch ( #6707 )
2022-02-17 14:24:31 +01:00
Alexey Pyltsyn
089ef14c9a
fix(theme-common): do not run useLocationChange when hot reloading ( #6696 )
2022-02-17 08:41:15 +08:00
Alexey Pyltsyn
53c2c118c4
feat(search-algolia): allow disabling search page and configuring path ( #6692 )
2022-02-16 19:07:01 +01:00
Jody Heavener
3629b5ab39
feat(docs,theme-classic): docs breadcrumbs ( #6517 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-02-16 19:02:58 +01:00
Joshua Chen
67918e35e2
refactor: convert CLI entry points to ESM; migrate create-docusaurus to ESM ( #6661 )
...
* refactor: convert CLI entry points to ESM
* fix
* fix
* fix
* fix!
* create-docusaurus ESM
* fix lock
* final touchups
* fix lodash
* fix
* use lodash
* fix hasYarn
2022-02-16 23:00:35 +08:00
Joshua Chen
eacc695542
fix(pwa): declare babel core as direct dependency ( #6691 )
2022-02-16 18:47:40 +08:00
Joshua Chen
80a9806775
fix(theme-classic): improve aria label of color mode toggle ( #6674 )
...
* fix(theme-classic): improve aria label of color mode toggle
* oops
2022-02-16 10:38:09 +08:00
Erick Zhao
0c6165b161
fix(utils): make SVGO not remove title ( #6684 )
...
* chore(utils): add `removeTitle: false` to svg loader
By default, SVGR removes the `<title>` tag from SVG inputs.
This hinders a11y since "the `<title>` element provides an
accessible, short-text description of any SVG container
element or graphics element".
Modern browsers also show tooltips on hover for inline
SVG with the `<title>` tag.
See https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title
* fix test
2022-02-15 17:14:54 +08:00
Joshua Chen
b89d93fab5
refactor: recommend using data-theme without html element selector ( #6668 )
...
* refactor: recommend using data-theme without html element selector
* simplify site CSS
* refactor
2022-02-14 10:23:42 +08:00
Joshua Chen
0c7e592d34
chore: upgrade dependencies ( #6660 )
...
* chore: upgrade dependencies
* fix types
2022-02-12 15:29:40 +08:00
Joshua Chen
acf4ae8f96
refactor: reduce exported members of docusaurus router ( #6651 )
2022-02-11 12:16:13 +01:00
Alexey Pyltsyn
cfef4755da
refactor(theme-classic): clean up CSS of doc sidebar item ( #6622 )
...
* refactor(theme-classic): clean up doc sidebar item CSS
* Use link placeholder for Introduction category
* Use test pages for dogfooding
* Update sidebars.js
* Add another test case
2022-02-11 13:11:47 +08:00
Joshua Chen
da9075105a
refactor(module-aliases): remove react-helmet dependency ( #6658 )
2022-02-11 13:08:08 +08:00
Konstantin Tarkus
916e4f1a26
fix(core): forward ref to Link's anchor element ( #6644 )
...
* feat(core): allow to pass ref into the Link component
* refactor
* add dogfood
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-11 12:34:13 +08:00
Clement Demonchy
1cd4757828
feat: allow numbers in plugin ID ( #6656 )
...
* fix example for id that didn't respect regex
example for id don't work with version 2.0.0-beta.15:
ValidationError: "id" with value "docs1" fails to match the required pattern: /^[a-zA-Z_-]+$/
Error: Process completed with exit code 1.
* properly fix
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-11 11:57:58 +08:00
Alexey Pyltsyn
10a5f71154
fix(theme-classic): minor BTT button fixes ( #6652 )
2022-02-10 15:35:34 +01:00
Joshua Chen
bae9827d92
refactor(utils): replace hash with contenthash for file loader ( #6650 )
2022-02-10 17:43:55 +08:00
Joshua Chen
fbbec7fef8
fix(cli): make docusaurus clear also remove .yarn/.cache folder ( #6646 )
...
* fix(cli): make clear also remove .yarn/.cache folder
* refactor
2022-02-10 12:54:32 +08:00
Joshua Chen
b16b394eb6
feat(create): allow specifying a git clone strategy ( #6610 )
...
* feat(create): allow specifying a git clone strategy
* Update index.ts
2022-02-10 11:15:06 +08:00
Felipe Santos
6996ed2f2f
feat(content-blog): infer blog post date from git history ( #6593 )
2022-02-09 17:18:32 +01:00
TheCatLady
665d164351
feat(content-docs): add custom props front matter ( #6619 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-09 17:04:07 +01:00
toto6038
59289ed4d5
refactor(theme-translation): Improve Traditional Chinese translation quality ( #6635 )
2022-02-08 16:29:59 +08:00
Joshua Chen
5db848f0e7
refactor: move module declarations for non-route components to theme-classic ( #6629 )
2022-02-07 20:17:41 +08:00
Daniel Hanke
5e2196441e
docs: fix presets documentation link ( #6627 )
2022-02-07 16:30:39 +08:00
Joshua Chen
74a645e612
fix(utils): convert Markdown links in reference-style links ( #6617 )
2022-02-05 19:37:20 +08:00
Joshua Chen
d2574b287f
fix: remove more peer dependency warnings ( #6615 )
...
* fix: remove more peer dependency warnings
* fixes
* fixes
* fix
* remove more
2022-02-05 17:46:01 +08:00
Joshua Chen
919f1600c2
refactor: remove Babel plugins that are included in preset-env ( #6614 )
2022-02-05 16:55:40 +08:00
Joshua Chen
93c5ad8742
fix(theme-classic): make Prism additional languages properly server-side rendered ( #6612 )
2022-02-05 16:03:29 +08:00
Joshua Chen
10c292cb05
refactor(migrate): change internal methods' parameter style ( #6609 )
2022-02-05 13:14:53 +08:00
Joshua Chen
ed34a92957
fix(cli): log error itself on unhandled rejection ( #6607 )
2022-02-04 23:33:34 +08:00
John Reilly
a9eb005333
feat: make Markdown images lazy loaded ( #6598 )
...
* feat: lazy loading images
* feat: use real images
2022-02-04 22:04:53 +08:00
Joshua Chen
45f6f8b869
chore: fix ESLint warnings, restrict export all syntax ( #6605 )
...
* chore: fix ESLint warnings, forbid export all syntax
* fix...
* reorder
2022-02-04 21:57:10 +08:00
Joshua Chen
3fd99ad8d4
feat(content-blog): allow customizing blog archive component through option ( #6603 )
...
* feat(content-blog): allow customizing blog archive component through option
* fix
2022-02-04 18:56:09 +08:00
Joshua Chen
0c4dc00443
feat(content-docs): allow omitting enclosing array consistently for category shorthand ( #6602 )
...
* feat(content-docs): allow omitting enclosing array consistently for category shorthand
* update snapshot
* fix doc
2022-02-04 11:16:08 +08:00