Commit Graph

4925 Commits

Author SHA1 Message Date
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 ae788c536f
feat(core): rework client modules lifecycles, officially make API public (#6732) 2022-04-29 15:11:20 +02:00
Joshua Chen 2429bfbd59
refactor(cli): normalize the application of default option values (#7220)
* refactor(cli): normalize default value application

* improve help text
2022-04-29 12:09:03 +02:00
Sébastien Lorber 6265f6dabb
feat: custom navbarItem types (workaround) (#7231)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-29 11:23:46 +02:00
kgolubic 0ffdfe9c22
docs: Add Memgraph site to showcase page (#7260)
* Add Memgraph to showcase page

* Add Memgraph preview image for Showcase
2022-04-29 11:13:50 +02:00
Joshua Chen 0102c2e2ae
docs: wrap code block demos in mdx-code-block (#7262) 2022-04-29 17:09:54 +08:00
JMW 7073cc3462
fix: pass pollOptions to webpack (#7180)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-29 10:48:18 +02:00
loic 47d89ae0fe
docs: add raspisuite website to showcase (#7259)
* add raspisuite website

* add preview image for raspisuite

* optimize image

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-29 12:28:11 +08:00
Joshua Chen d2562a4434
refactor: normalize Markdown linkification behavior, elaborate in documentation (#7248)
* refactor: normalize Markdown linkification behavior, elaborate in documentation

* fix broken links

* allow links to be relative to site root

* fix test

* minor doc update

* Update website/docs/guides/markdown-features/markdown-features-links.md

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-04-29 11:36:39 +08:00
Joshua Chen a30daa1530
chore: remove baseUrl from tsconfig (#7258)
* chore: remove baseUrl from tsconfig

* ?
2022-04-28 22:03:25 +08:00
svix-ken ba1d3f45e7
docs: add Svix to showcase (#7254)
* docs: add Svix to showcase

Motivation
Svix uses Docusaurus for our documentation. It could be cool to add it in the showcase page.

Have you read the Contributing Guidelines on pull requests?
Yes

Test Plan
Run yarn run start:v2 and check that the page http://localhost:3000/showcase is rendered properly.

Related PRs
No

* Add svix doc preview image

* Delete Svix.png

* re-upload preview image

needed to make file name lower case.

* optimize image

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-28 15:33:00 +08:00
John Reilly b747143982
docs: update gtag docs to reflect what a GA4 tag looks like (#7252) 2022-04-28 09:05: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 10a5ebecec
fix(content-docs): make category index text translatable (#7233) 2022-04-27 23:40:15 +08:00
Joshua Chen 996901b53b
docs: change changelog paginator label (#7251) 2022-04-27 21:54:53 +08:00
Joshua Chen 67faa686e8
refactor: semantic markup improvement, fix validation warnings (#7244)
* refactor: semantic markup improvement, fix validation warnings

* change section/article a bit
2022-04-26 20:15:45 +08:00
curatorcat.pcc.eth f9fa2127ae
docs: add PCC Archive site to showcase (#7240)
* docs: add PCC Archive site to showcase

* fixes

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-26 18:05:10 +08:00
dependabot[bot] 95eaa98ed9
chore(deps): bump actions/checkout from 3.0.1 to 3.0.2 (#7242)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](dcd71f6466...2541b1294d)

---
updated-dependencies:
- dependency-name: actions/checkout
  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-04-26 17:48:35 +08:00
Cwen Yin da6588404e
docs: add Chaos mesh site to showcase (#7239)
* docs: Add Chaos mesh site to showcase page

Signed-off-by: Cwen Yin <cwenyin0@gmail.com>

* update tags

Signed-off-by: Cwen Yin <cwenyin0@gmail.com>

* minor tweaks

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-25 16:40:33 +08:00
czhen 2204efd8ea
docs: add TiDB community books to showcase (#7235)
* docs(showcase): add TiDB community books

* minor tweaks

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-24 11:30:22 +08:00
Joshua Chen 743738d8c6
docs: add documentation about pluralization (#7236) 2022-04-24 11:23:28 +08:00
Joshua Chen 242f2e780e
chore: upgrade dependencies (#7232) 2022-04-23 11:55:01 +08:00
sykp241095 58f393d768
docs: add OSS Insight to showcase (#7230)
* Add OSS Insight

* Add ossinsight.png

* Update users.tsx

* minor tweaks

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-23 00:16:34 +08:00
Joshua Chen c4e92c89e8
fix(core): prevent 404 when accessing /page.html (#7184) 2022-04-22 17:44:11 +02:00
Alexey Pyltsyn 4e4aa6add7
feat(theme-classic): toggle code wrap button (#7036)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-04-22 14:50:27 +02:00
Sébastien Lorber c3add31ebf
fix: allow swizzling a component's parent folder (#7225) 2022-04-22 14:23:33 +02:00
Sébastien Lorber f7c995b15a
chore: GitHub Actions cancel-in-progress (#7224) 2022-04-22 11:28:25 +02:00
Sébastien Lorber 5c29809163
refactor: use generated-index in init templates (#7223) 2022-04-22 11:27:14 +02:00
Pablo Cordon ee1dea0b19
fix(website): invert Twitter handle and name (#7226)
* Fixed several pairs of 'handle' and 'name', as their values were inverted.

* Apply suggestions from code review

* oops

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-22 10:31:31 +08:00
Joshua Chen 1412441987
fix(theme-common): do not persist color mode for OS-triggered changes (#7200)
* fix(theme-common): do not persist color mode if switch is disabled

* New setColorMode(null) API

* reset to default without RPCS
2022-04-21 23:29:08 +08:00
AkiraVoid 71ba449a28
fix(content-blog): make footnote reference DOM ID unique on post listing page (#7212)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-21 16:51:24 +02:00
Joshua Chen 3b32a41f22
fix(core): handle case where package.json is not available at CWD (#7187) 2022-04-21 16:07:02 +02:00
rev e12947e818
chore(theme-translations): complete Polish translations (#7214)
* Update theme-common.json

* Update plugin-ideal-image.json

* Update theme-search-algolia.json

* Update theme-common.json

* Update packages/docusaurus-theme-translations/locales/pl/theme-search-algolia.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

* Update packages/docusaurus-theme-translations/locales/pl/theme-common.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

* Update packages/docusaurus-theme-translations/locales/pl/plugin-ideal-image.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

* Update packages/docusaurus-theme-translations/locales/pl/plugin-ideal-image.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

* Update packages/docusaurus-theme-translations/locales/pl/plugin-ideal-image.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>
2022-04-21 19:29:32 +08:00
Joshua Chen b8fc34dd95
fix(theme-translations): fix invalid pluralization in cs (#7222) 2022-04-21 18:43:59 +08:00
Alexey Pyltsyn 9af35c5b47
refactor: customize code block line highlight color via CSS var (#7176) 2022-04-21 11:19:33 +02:00
Joshua Chen 97f7b45f1a
fix(cli): always show error stack to unhandled rejection (#7218) 2022-04-21 12:54:27 +08:00
Joshua Chen 42ca13fadf
chore: remove netlify-cli from dependencies (#7216) 2022-04-20 22:14:03 +08:00
Alexey Pyltsyn 1ba5bf66b2
refactor: improve IconHome icon (#7215)
* refactor: optimize IconHome icon

* Increase icon size

* Fix lint
2022-04-20 21:34:13 +08:00
Dr-Electron 44ebe73e50
refactor: use SVG icon for home breadcrumb (#7183)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-20 14:42:57 +02:00
Joshua Chen 7f98cc6a78
chore: replace node 17 with 18 in CI matrix (#7211) 2022-04-20 11:27:39 +02:00
Joshua Chen 20f333bb50
docs: remove mention of "template" from README installation (#7208) 2022-04-19 22:22:06 +08:00
dependabot[bot] c8d6c7e386
chore(deps): bump actions/setup-node from 3.0.0 to 3.1.1 (#7204)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.0.0 to 3.1.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](9ced9a43a2...56337c4255)

---
updated-dependencies:
- dependency-name: actions/setup-node
  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-04-19 10:55:58 +08:00
dependabot[bot] 64e1045b32
chore(deps): bump jakepartusch/wait-for-netlify-action from 1.1 to 1.3 (#7203)
Bumps [jakepartusch/wait-for-netlify-action](https://github.com/jakepartusch/wait-for-netlify-action) from 1.1 to 1.3.
- [Release notes](https://github.com/jakepartusch/wait-for-netlify-action/releases)
- [Commits](7dcdeb40c6...7ccf91c9ba)

---
updated-dependencies:
- dependency-name: jakepartusch/wait-for-netlify-action
  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-04-19 10:55:36 +08:00
dependabot[bot] d33063dd0f
chore(deps): bump github/codeql-action from 1.1.5 to 2.1.8 (#7202)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1.1.5 to 2.1.8.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](8834766498...1ed1437484)

---
updated-dependencies:
- dependency-name: github/codeql-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-04-19 10:55:14 +08:00
dependabot[bot] ce936f2c76
chore(deps): bump actions/checkout from 3.0.0 to 3.0.1 (#7205)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](a12a3943b4...dcd71f6466)

---
updated-dependencies:
- dependency-name: actions/checkout
  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-04-19 07:42:23 +08:00
Jeffrey Aven c3f21cd547
docs: update showcase data for Full Stack Chronicles (#7196)
* Changed blog name

Changed the name and domain for my Docusaurus based blog to fullstackchronicles.io

* added new screenshot

* updates

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-18 16:05:17 +08:00
Joshua Chen 7f06857e46
fix: fix a lot of declaration semantic errors (#7194) 2022-04-17 23:44:20 +08:00
Joshua Chen b154318c28
chore: upgrade dependencies (#7193) 2022-04-17 17:32:41 +08:00
Joshua Chen 9df4874cff
misc: add a name to each GH action step (#7189) 2022-04-17 16:54:01 +08:00
Joshua Chen fa1ce230ea
refactor: capitalize comments (#7188)
* refactor: capitalize comments

* revert...
2022-04-17 16:39:11 +08:00