Commit Graph

493 Commits

Author SHA1 Message Date
Joshua Chen 60960b471d
chore: upgrade dependencies, fix lint-staged not outputting formatted log (#7388)
* chore: upgrade dependencies, fix lint-staged not outputting formatted log

* fix

* fix lock...
2022-05-10 22:42:45 +08:00
Joshua Chen 5bc50ff71f
chore: upgrade dependencies (#7366) 2022-05-07 19:46:21 +08:00
Alexey Pyltsyn be0dc6b0c9
chore: upgrade Infima to alpha.39 (#7306) 2022-05-04 16:06:54 +02:00
Joshua Chen afc72480ab
refactor(eslint-plugin): migrate to TS-ESLint infrastructure (#7276)
* refactor(eslint-plugin): migrate to TS-ESLint infrastructure

* fix lock
2022-04-30 17:57:57 +08:00
Joshua Chen f063e9add5
chore: upgrade dependencies (#7274)
* chore: upgrade dependencies

* remove nodemon
2022-04-30 14:32:37 +08:00
Elias Papavasileiou 3b1170eb44
feat: Docusaurus ESLint plugin to enforce best Docusaurus practices (#7206)
* feat: add eslint plugin

* refactor

* add tests

* fixups!

* fix(no-dynamic-i18n-messages): make translate() recognize template literals

* refactor: rename rule no-dynamic-i18n-messages --> string-literal-i18n-messages

* feat: add ignoreStrings option and refactor

* docs: migrate docs to /docs/api/plugins

* docs: fix anchor links in README.md

* fix: add some ignored strings

* docs: update eslint-plugin docs

* fix: update README link

* docs: various updates

- Reorder sidebar entries
- Fix title size
- Use Markdown file paths
- Simplify relative links

* address reviews

* wording polish

* add npmignore

* fix all internal warnings

* doc improvements

* fix test

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-30 00:04:25 +08:00
Joshua Chen 9a1b7217ba
chore: upgrade Jest to 28; add GitHub-actions reporter (#7243) 2022-04-27 23:47:59 +08:00
Joshua Chen 242f2e780e
chore: upgrade dependencies (#7232) 2022-04-23 11:55:01 +08:00
Joshua Chen 42ca13fadf
chore: remove netlify-cli from dependencies (#7216) 2022-04-20 22:14:03 +08:00
Joshua Chen b154318c28
chore: upgrade dependencies (#7193) 2022-04-17 17:32:41 +08:00
Joshua Chen 25ba91fd4d
fix(website): remove skipLibCheck (#7147) 2022-04-11 07:43:30 +08:00
Joshua Chen 2a7820582c
chore: upgrade dependencies (#7138)
* chore: upgrade dependencies

* reorg

* update comment
2022-04-09 12:36:10 +08:00
Joshua Chen c7c0ee4e7c
chore: upgrade dependencies (#7101) 2022-04-02 08:32:26 +08:00
Joshua Chen 3f33e90704
chore: upgrade dependencies (#7065)
* chore: upgrade dependencies

* fix project words
2022-03-30 11:05:50 +08:00
Joshua Chen fa50d09d3b
chore: upgrade dependencies (#6991)
* chore: upgrade dependencies

* fix
2022-03-25 10:47:08 +08:00
Joshua Chen d3065b8ad2
refactor(lqip-loader): remove unused palette option (#6992) 2022-03-25 10:23:42 +08:00
Sébastien Lorber c3e7ecca17
chore: update static-site-generator-webpack-plugin (#6975) 2022-03-24 16:09:28 +01:00
Sébastien Lorber 22c031c071
fix(search): bump Infima, fix Docusaurus search issue due to broken CSS selector (#6983) 2022-03-24 15:33:21 +01:00
Joshua Chen 44107fb879
chore(types): remove querystring from dependencies (#6957)
* chore(types): remove querystring from dependencies

* fix lock
2022-03-22 16:00:05 +08:00
Joshua Chen 948271a0ff
test: improve test coverage; reorder theme-common files (#6956)
* test: improve test coverage; reorder theme-common files

* no need for this
2022-03-22 15:33:55 +08:00
Joshua Chen e8a2f66a0f
chore: upgrade dependencies (#6946)
* chore: upgrade dependencies

* reformat
2022-03-21 07:45:29 +08:00
Joshua Chen 19942f990a
chore: migrate Jest and website to SWC (#6944)
* chore: migrate Jest and website to SWC

* ignore template
2022-03-19 20:56:30 +08:00
Joshua Chen ff1b7168ba
chore: upgrade dependencies (#6916) 2022-03-15 13:16:21 +08:00
Joshua Chen 3a4b9b4c30
refactor: install eslint-plugin-regexp (#6906)
* refactor: install eslint-plugin-regexp

* simplify

* simplify

* fix
2022-03-13 18:32:17 +08:00
Joshua Chen 99b1fb90d5
chore: upgrade dependencies (#6879) 2022-03-09 07:34:35 +08:00
dependabot[bot] ea8590f80b
chore(deps): bump cssnano from 5.0.17 to 5.1.0 (#6793)
Bumps [cssnano](https://github.com/cssnano/cssnano) from 5.0.17 to 5.1.0.
- [Release notes](https://github.com/cssnano/cssnano/releases)
- [Commits](https://github.com/cssnano/cssnano/compare/cssnano@5.0.17...cssnano@5.1.0)

---
updated-dependencies:
- dependency-name: cssnano
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-02 10:10:25 +08:00
dependabot[bot] 863097561d
chore(deps-dev): bump netlify-cli from 9.8.4 to 9.10.0 (#6795)
Bumps [netlify-cli](https://github.com/netlify/cli) from 9.8.4 to 9.10.0.
- [Release notes](https://github.com/netlify/cli/releases)
- [Changelog](https://github.com/netlify/cli/blob/main/CHANGELOG.md)
- [Commits](https://github.com/netlify/cli/compare/v9.8.4...v9.10.0)

---
updated-dependencies:
- dependency-name: netlify-cli
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-02 09:04:57 +08:00
dependabot[bot] e5ede151a2
chore(deps): bump cssnano-preset-advanced from 5.1.12 to 5.2.0 (#6806)
Bumps [cssnano-preset-advanced](https://github.com/cssnano/cssnano) from 5.1.12 to 5.2.0.
- [Release notes](https://github.com/cssnano/cssnano/releases)
- [Commits](https://github.com/cssnano/cssnano/compare/cssnano-preset-advanced@5.1.12...cssnano-preset-advanced@5.2.0)

---
updated-dependencies:
- dependency-name: cssnano-preset-advanced
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-02 09:02:05 +08:00
Joshua Chen a4dc03edee
chore: upgrade dependencies (#6789)
* chore: upgrade dependencies

* upgrade setup-node
2022-03-01 10:40:34 +08:00
Joshua Chen e101acd132
chore: various internal fixes (#6761) 2022-02-25 23:18:08 +08:00
Joshua Chen 39b66d82ef
feat(core): rework swizzle CLI (#6243)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-02-25 14:13:15 +01: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 47c9a37c5f
chore: upgrade dependencies (#6715)
* chore: upgrade dependencies

* upgrade Node
2022-02-19 11:47:44 +08: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 0c7e592d34
chore: upgrade dependencies (#6660)
* chore: upgrade dependencies

* fix types
2022-02-12 15:29:40 +08:00
Joshua Chen da9075105a
refactor(module-aliases): remove react-helmet dependency (#6658) 2022-02-11 13:08:08 +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
seyoon20087 a615ab3999
feat(core): use react-helmet-async (#6306)
* Use React Strict Mode

Even though Strict Mode is not required a WARNING icon now displays
on all components that do not use React.StrictMode on React DevTools extension.

Signed-off-by: Shinwon Elizabeth Yoon <24852454+seyoon20087@users.noreply.github.com>

* Utilize react-helmet-async instead of react-helmet

react-helmet is NOT thread safe, as explained in https://open.nytimes.com/the-future-of-meta-tag-management-for-modern-react-development-ec26a7dc9183#fdc2

Therefore, it's better if react-helmet-async is utilized instead of react-helmet.

Even though react-helmet-async is being utilized, most users will not require any code changes to @docusaurus/Head since it uses the same API as react-helmet.

Signed-off-by: Shinwon Elizabeth Yoon <24852454+seyoon20087@users.noreply.github.com>

* Include HelmetProvider inside client entry

I forgot to do this before.

Signed-off-by: Shinwon Elizabeth Yoon <24852454+seyoon20087@users.noreply.github.com>

* format

* fix TS

* address reviews

* Remove forked react-loadable package in favor of @react-loadable/revised

Both unforked react-loadable and @docusaurus/react-loadable uses legacy React APIs.

However, @react-loadable/revised (https://github.com/react-loadable/revised) is actively maintained and widely used in production, thus replaced with this package.

Signed-off-by: Shinwon Elizabeth Yoon <24852454+seyoon20087@users.noreply.github.com>

* remove unused comma

* Address reviews from https://github.com/facebook/docusaurus/pull/6306#pullrequestreview-864745191

Signed-off-by: Shinwon Elizabeth Yoon <24852454+seyoon20087@users.noreply.github.com>

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-02 14:52:44 +08:00
Joshua Chen 661bc32402
chore(deps): bump all dependencies; regenerate lockfile (#6580) 2022-02-02 13:00:31 +08:00
dependabot[bot] d8eac86775
chore(deps-dev): bump lint-staged from 12.1.7 to 12.3.3 (#6535)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.1.7 to 12.3.3.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v12.1.7...v12.3.3)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-02 11:53:10 +08:00
dependabot[bot] 83a4724e15
chore(deps): bump sitemap from 7.1.0 to 7.1.1 (#6534)
Bumps [sitemap](https://github.com/ekalinin/sitemap.js) from 7.1.0 to 7.1.1.
- [Release notes](https://github.com/ekalinin/sitemap.js/releases)
- [Changelog](https://github.com/ekalinin/sitemap.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ekalinin/sitemap.js/compare/7.1.0...7.1.1)

---
updated-dependencies:
- dependency-name: sitemap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-02 11:52:10 +08:00
dependabot[bot] 1c8005d99f
chore(deps): bump terser-webpack-plugin from 5.3.0 to 5.3.1 (#6577)
Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin) from 5.3.0 to 5.3.1.
- [Release notes](https://github.com/webpack-contrib/terser-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.0...v5.3.1)

---
updated-dependencies:
- dependency-name: terser-webpack-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-02 11:48:56 +08:00
Joshua Chen 2553f1fb5a
refactor: improve internal typing (#6507)
* refactor: improve internal typing

* fix

* fix test
2022-01-29 22:58:40 +08:00
Joshua Chen 58e07a6796
test: add test for readOutputHTMLFile (#6506) 2022-01-29 18:10:46 +08:00
dependabot[bot] 9af7aae9e2
chore(deps): bump simple-get from 4.0.0 to 4.0.1 (#6497)
Bumps [simple-get](https://github.com/feross/simple-get) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/feross/simple-get/releases)
- [Commits](https://github.com/feross/simple-get/compare/v4.0.0...v4.0.1)

---
updated-dependencies:
- dependency-name: simple-get
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-29 11:35:10 +08:00
Nick Schonning bcb15336bf
chore: fix Stylelint globs for editor support (#6476)
* chore: expand Stylelint globs

* uninstall plugins

* revert stylelint bump

* fix lock

* better ignore

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-28 12:02:16 +08:00
Joshua Chen f6ff6474bc
feat(website): new plugin to load CHANGELOG and render as blog (#6414)
* feat(website): new plugin to load CHANGELOG and render as blog

* use CJS

* move footer links

* better design

* fixes

* correctly order posts

* add authors

* Add axios

* Update styles

* oops

* oops

* add expand button

* back to index page link

* fix styles

* add feed options

* fix

* fix

* Add fallback

* fix

* fixes
2022-01-27 23:17:31 +08:00
Joshua Chen 76a8d5f38a
fix(content-blog): generate feed by reading build output (#6454) 2022-01-26 16:54:15 +01:00
Joshua Chen ebd5340205
chore: various improvements to repo setup (#6471)
* chore: various improvements to repo setup

* fix again

* fix
2022-01-26 14:24:15 +08:00