Commit graph

5182 commits

Author SHA1 Message Date
Joshua Chen
d43066f6f1
test: sort migration test FS mock calls (#6756)
* test: sort migration test FS mock calls

* this works?
2022-02-25 20:43:18 +08:00
Joshua Chen
f903422617
refactor: unify error handling behavior (#6755)
* refactor: unify error handling behavior

* revert

* normalize paths

* test...

* change

* does this work...

* fix...

* maybe fix

* maybe fix

* fix

* fix...
2022-02-25 15:07:13 +08:00
Joshua Chen
dcbf9f644e
chore: upgrade docsearch-react to v3 stable, bump dependencies (#6752)
* chore: upgrade dependencies

* revert

* validation

* fix blog

* reformat
2022-02-24 19:39:32 +08:00
Joshua Chen
a70514205d
feat(create): new --package-manager option; interactive package manager selection (#6750) 2022-02-24 11:50:37 +01:00
Sébastien Lorber
89560226f0
fix(theme-classic): temporarily disable toc heading autoscrolling (#6748) 2022-02-24 11:28:17 +01:00
Sébastien Lorber
ece7399d2e
fix(theme-classic): fix breadcrumb home link bug with new useHomePageRoute() hook (#6749) 2022-02-24 11:27:16 +01:00
Joshua Chen
0d14470d54
refactor: unify export directive style (#6751) 2022-02-24 17:25:17 +08:00
Alexey Pyltsyn
0c807b3501
feat: sync color mode between browser tabs (#6723)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-02-23 16:55:57 +01:00
Alexey Pyltsyn
26d223dbeb
feat(create): better detection of package manager preference (#6679)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-02-23 16:22:40 +01:00
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
Matheus Ricardo Brunelli
8f658f1e23
docs: add Blog Matheus Brunelli site to showcase (#6727)
* add Blog Matheus Brunelli to users.tsx

* add blogmatheusbrunelli.png to showcase

* minor tweaks

* add tag

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-22 18:37:00 +08:00
dependabot[bot]
26b7d9afc3
chore(deps): bump treosh/lighthouse-ci-action from 8.2.0 to 9.3.0 (#6736)
Bumps [treosh/lighthouse-ci-action](https://github.com/treosh/lighthouse-ci-action) from 8.2.0 to 9.3.0.
- [Release notes](https://github.com/treosh/lighthouse-ci-action/releases)
- [Commits](https://github.com/treosh/lighthouse-ci-action/compare/8.2.0...9.3.0)

---
updated-dependencies:
- dependency-name: treosh/lighthouse-ci-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-22 07:11:15 +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
5555290edc
misc: improve bug report template (#6726) 2022-02-20 22:53:55 +08:00
CodeDoctor
1bd1160ddc
docs: add Butterfly Documentation to showcase (#6721)
* Add Butterfly Documentation

* optimize image

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-20 10:30:25 +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
Naseel Niyas
397915fc71
docs(website): Add techharvesting to showcase (#6710) 2022-02-17 15:58:23 +01: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
Sébastien Lorber
12aae9a086
docs: add doc for generated-index keyword/image metadata (#6708) 2022-02-17 14:24:13 +01:00
Alexey Pyltsyn
0f1f35b678
docs(website): fix video responsiveness (#6709) 2022-02-17 14:22:36 +01:00
Dmitry Vinnik
1551407a9b
docs: add deep dive video for Docusaurus (#6687) 2022-02-17 12:03:26 +01:00
Sébastien Lorber
49361e2ae9
docs(website): search doc typo searchParameters (#6704) 2022-02-17 11:57:30 +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
94532dfd26
docs: fix bad anchor link syntax (#6683) 2022-02-15 11:24:50 +08:00
Ruben Arushanyan
344e199ee8
docs: add redux-cool site to showcase (#6682)
* redux-cool site adding

* redux-cool site showcase adding

* optimize image

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-15 11:01:44 +08:00
Daniel Kalevski
5cd2c085f6
docs: add Rivalis to showcase (#6677)
* added Rivalis entry and screenshot to showcase dir

* optimize image

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-15 11:01:31 +08:00
CookieJarApps
7a7d5d047c
docs: add SmartCookieWeb site to showcase (#6676)
* Added SmartCookieWeb to showcase

* optimize image

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-15 11:01:19 +08:00
dependabot[bot]
224ec08931
chore(deps): bump actions/github-script from 5 to 6 (#6678)
Bumps [actions/github-script](https://github.com/actions/github-script) from 5 to 6.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-15 10:20:05 +08:00
Joshua Chen
d460d48dfc
docs: mention that all official themes are TypeScript-covered (#6675)
* docs: mention that all official themes are TypeScript-covered

* revert...

* kick
2022-02-14 23:33:37 +08:00
Joshua Chen
c27695ab5c
docs: mention about blog date in front matter (#6673)
* docs: mention about blog date in front matter

* fix
2022-02-14 15:42:37 +08:00
Joshua Chen
56b81d1a55
refactor(website): extract homepage data from UI; feature text updates (#6672)
* refactor(website): extract homepage data from UI; feature text updates

* minor edit
2022-02-14 14:13:23 +08:00