Commit graph

4513 commits

Author SHA1 Message Date
Joshua Chen
456ffbd330
chore: remove some unused dependencies from package.json (#6440) 2022-01-22 19:47:35 +08:00
Davide Bianchi
a4a386a45b
docs: add kube-green to showcase (#6433) 2022-01-22 16:23:53 +08:00
Joshua Chen
c2e2938d1b
refactor(theme-classic): render BlogPostItem as one JSX element (#6436) 2022-01-22 14:56:43 +08:00
Joshua Chen
64909e7f14
fix(content-docs): make getActivePlugin match plugin paths more exactly (#6435)
* fix(content-docs): make getActivePlugin match plugin IDs more exactly

* refactor...
2022-01-22 13:36:56 +08:00
Joshua Chen
cbcbdaa9d3
docs: elaborate on i18n tutorial (#6428) 2022-01-21 21:25:03 +08:00
Joshua Chen
807b4c2ced
feat(theme-classic): add aria-current to sidebar category link (#6427) 2022-01-21 11:40:27 +08:00
Sébastien Lorber
8a092f508d
fix(core): fix css url("image.png"), use css-loader v6 with esModules: false (#6424) 2022-01-20 18:30:54 +01:00
Joseph
8ce3cee400
feat(theme-classic): auto-collapse sibling categories in doc sidebar (#3811)
Co-authored-by: Josh-Cena <sidachen2003@gmail.com>
2022-01-20 16:38:16 +01:00
Chen
c9a6c7b6fb
docs: add 404Lab wiki to showcase (#6422)
* docs: add "404Lab.Wiki" website  to showcase

* docs: add "404Lab.Wiki" website screen to showcase

* updates

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-20 23:19:35 +08:00
Sébastien Lorber
aaf748c1ee
chore: fix yarn build:website:fast (#6421) 2022-01-20 15:51:59 +01:00
Joshua Chen
4e69c052d6
feat(content-blog): allow authors list to contain images only (#6416)
* feat(content-blog): allow authors list to contain images only

* adjust styles

* fix

* fix

* mention in docs

* fix wording
2022-01-20 22:08:18 +08:00
Joshua Chen
d506bca12d
feat(content-blog): allow disabling generating archive (#6415) 2022-01-20 14:52:19 +01:00
Joshua Chen
2a5407f6bd
fix(website): restore some site CSS in light mode (#6420) 2022-01-20 21:50:49 +08:00
Joshua Chen
65c2fc200a
feat(core): warn users about hand-modifying generated files (#6419)
* feat(core): warn users about hand-modifying generated files

* Better folder name
2022-01-20 21:41:59 +08:00
Joshua Chen
d133910cb2
feat(content-blog): parse date from middle of file path (#6245) 2022-01-20 16:43:00 +08:00
Sanjay Soundarajan
29ecf22409
docs: add SODA for SPARC to showcase (#6410)
* Added docs site for SODA for SPARC

* Added SODA for SPARC snapshot

* Update spelling error for path

* optimize image

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-20 16:38:32 +08:00
Joshua Chen
332453eaa1
docs: fix accessibility of search modal (#6417) 2022-01-20 16:36:19 +08:00
Joshua Chen
abdcad7316
feat: update website & init template palette to pass WCAG test; include contrast check in ColorGenerator (#5822)
* docs: update website palette to pass WCAG test

* Darker palette in light mode

* Fix CodeBlock

* Fix front page

* Fix announcement color

* Unify primary color

* Add contrast check in website

* Fix color input not updating

* Use website for preview; allow changing background

* Persist in localStorage

* Fixes

* Fix SSR

* Edit dark mode separately

* Fix light mode palette

* Fix storage reset

* Fix CSS

* Fix

* fix toggling when not on styling-layout

* require 100% lighthouse accessibility score

* use sessionStorage

* refactor

* tweak light color

* update comments

Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-01-20 14:51:18 +08:00
Joshua Chen
19fb337618
fix(content-pages): declare hide_table_of_contents as boolean (#6413) 2022-01-20 10:58:36 +08:00
Yaroslav Serhieiev
d296f44031
docs(i18n): amend PR #6371 (#6406) 2022-01-19 18:19:41 +01:00
Joshua Chen
71b6ae2fbf
feat(core): check imported API name when extracting translations (#6405) 2022-01-19 17:04:33 +01:00
Joshua Chen
2cace21083
docs: update Algolia docs for new DocSearch infra (#6393) 2022-01-19 16:42:08 +01:00
Joshua Chen
45f1b819b5
feat(content-docs): displayed_sidebar front matter (#5782) 2022-01-19 16:00:42 +01:00
Joshua Chen
fdf59f30f0
feat(content-pages): front matter validation, include front matter in metadata (#6400) 2022-01-19 13:44:58 +01:00
Joshua Chen
e5801e49f6
feat(mdx-loader): read image dimensions when processing Markdown (#6339) 2022-01-19 12:45:14 +01:00
Yaroslav Serhieiev
6f892e20b0
feat(core, theme-classic): allow overriding htmlLang (#6371) 2022-01-19 12:38:42 +01:00
Nick Schonning
732ecd18e8
chore(website): set cache-control for static assets (#6381) 2022-01-19 12:10:18 +01:00
Joshua Chen
6c0da3ee4b
refactor: clean up TODO comments (#6399) 2022-01-19 12:10:50 +08:00
Joshua Chen
1d7827d572
refactor(theme-classic): add comments to Prism setup; minor refactor (#6391) 2022-01-18 19:46:22 +08:00
Joshua Chen
7bab9ba46d
feat(content-blog): include tags in feed (#6388)
* feat(content-blog): include tags in feed

* fix
2022-01-18 17:20:37 +08:00
Joshua Chen
62223ee556
test: improve test coverage (#6387)
* test: improve test coverage

* fix

* use posixPath
2022-01-18 16:29:40 +08:00
Joshua Chen
a9810db1cc
fix(logger): properly stringify objects for logging (#6384)
* fix(logger): properly stringify objects for logging

* Add tests
2022-01-17 20:46:38 +08:00
Joshua Chen
cb747025e8
docs: elaborate on different CSS class names (#6383) 2022-01-17 16:37:59 +08:00
Nick Schonning
16141fcd80
chore: enable a few fixable ESLint rules (#6380)
* chore: enable react/jsx-one-expression-per-line

* chore: enable import/first

* chore: enable lines-between-class-members

* revert class spacing

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-17 14:25:50 +08:00
Joshua Chen
3cb0972b79
refactor: use findAsyncSequential in a few places (#6377)
* refactor: use findAsyncSequential in a few places

* fixes

* fix
2022-01-17 08:57:06 +08:00
Joshua Chen
ad16f4fdd9
fix(core): do not coerce webpack warning to string (#6378) 2022-01-16 19:47:22 +08:00
Joshua Chen
52db7320a6
chore: enable eslint-plugin-jest (#6375) 2022-01-16 15:53:23 +08:00
Tapan Chudasama
3e5944ef1f
fix: highlight appropriate navItem based on active sidebar item (#6310)
* fix: highlight appropriate navItem based on active sidebar item

* fix: try using location.pathname

* fix: remote console.log

* fix: include category generated indices in globalData

* Add test

* fix snap

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-16 13:41:40 +08:00
Nick Schonning
6e75d035bb
chore: enable react/jsx-closing-bracket-location (#6373)
This no longer appears to conflict with prettier
2022-01-16 12:41:17 +08:00
Joshua Chen
14bec7cf11
feat(stylelint-copyright): autofix, stricter config (#6374)
* feat(stylelint-copyright): autofix, stricter config

* revert TS

* oops
2022-01-16 11:34:10 +08:00
Nick Schonning
284c6166e7
chore: add baseline stylelint rules (#6372)
* chore: add baseline stylelint rules

Use the Prettier config so not to conflict with rules.
Add the Stylelint baseline recommended rules to catch additional lissues

* enable those two rules

* ooops

* refactor scripts

* revert script changes

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-16 09:42:58 +08:00
Kaustubh Kulkarni
2a1cdc3b8a
docs: add KaustubhK24's site to showcase (#6348)
* Update users.tsx

* add image

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-15 23:05:19 +08:00
Nick Schonning
9f9a96dc80
chore: upgrade lint-staged and globs (#6369) 2022-01-15 16:33:09 +08:00
dependabot[bot]
051463fec9
chore(deps): bump querystring from 0.2.0 to 0.2.1 (#6355)
Bumps [querystring](https://github.com/Gozala/querystring) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/Gozala/querystring/releases)
- [Changelog](https://github.com/Gozala/querystring/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Gozala/querystring/compare/v0.2.0...v0.2.1)

---
updated-dependencies:
- dependency-name: querystring
  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-01-15 13:48:56 +08:00
dependabot[bot]
efd767be64
chore(deps): bump workbox-strategies from 5.1.4 to 6.4.2 (#6362)
Bumps [workbox-strategies](https://github.com/googlechrome/workbox) from 5.1.4 to 6.4.2.
- [Release notes](https://github.com/googlechrome/workbox/releases)
- [Commits](https://github.com/googlechrome/workbox/compare/v5.1.4...v6.4.2)

---
updated-dependencies:
- dependency-name: workbox-strategies
  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-01-15 13:48:42 +08:00
dependabot[bot]
09a6ae2c40
chore(deps-dev): bump @types/node from 14.18.5 to 17.0.8 (#6354)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.18.5 to 17.0.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  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-01-15 13:47:58 +08:00
dependabot[bot]
7512e4c0b3
chore(deps): bump copy-webpack-plugin from 9.1.0 to 10.2.0 (#6350)
* chore(deps): bump copy-webpack-plugin from 9.1.0 to 10.2.0

Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin) from 9.1.0 to 10.2.0.
- [Release notes](https://github.com/webpack-contrib/copy-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v9.1.0...v10.2.0)

---
updated-dependencies:
- dependency-name: copy-webpack-plugin
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

* fix

* fix

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-15 13:47:39 +08:00
Filipe Guerra
dd63a72a71
fix(create-docusaurus): add useBaseUrl for image URLs (#6368)
This is already provided by the classic template and in TypeScript
template wasn't updated.
2022-01-15 12:57:59 +08:00
Joshua Chen
9c4187a5b9
feat(website): search in showcase (#6333)
* feat(website): search in showcase

* fix SSR
2022-01-15 11:38:57 +08:00
dependabot[bot]
95955ecfb0
chore(deps): bump css-loader from 5.2.7 to 6.5.1 (#6353)
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 5.2.7 to 6.5.1.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v5.2.7...v6.5.1)

---
updated-dependencies:
- dependency-name: css-loader
  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-01-15 10:30:47 +08:00