Joshua Chen
196c8ea434
docs: clean up CONTRIBUTING ( #6513 )
...
* docs: clean up CONTRIBUTING
* Update PR template
2022-01-30 20:29:47 +08: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
Nick Schonning
521eb119a7
chore: add cSpell for spell checking ( #6456 )
...
* chore: Add cSpell for spell checking
* chore: exclude map files and remove dups
* chore: exclude more binary files
* chore: remove MD headings
* Update .cspell.json
* fix a few spellings
* fix more
* fix
Signed-off-by: Joshua Chen <sidachen2003@gmail.com>
* fix a few
* oops
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-25 09:40:02 +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
Nick Schonning
9f9a96dc80
chore: upgrade lint-staged and globs ( #6369 )
2022-01-15 16:33:09 +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
dependabot[bot]
21b7691836
chore(deps): bump treosh/lighthouse-ci-action from 3 to 8.2.0 ( #6345 )
...
Bumps [treosh/lighthouse-ci-action](https://github.com/treosh/lighthouse-ci-action ) from 3 to 8.2.0.
- [Release notes](https://github.com/treosh/lighthouse-ci-action/releases )
- [Commits](https://github.com/treosh/lighthouse-ci-action/compare/v3...8.2.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-01-15 09:59:40 +08:00
Joshua Chen
eaab20cd1a
chore: remove Intl polyfills for Jest ( #6364 )
...
* chore: remove Intl polyfills for Jest
* Add node versions
2022-01-15 09:56:10 +08:00
dependabot[bot]
83e0413290
chore(deps): bump marocchino/sticky-pull-request-comment from 2.0.0 to 2.2.0 ( #6346 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-14 18:25:40 +01:00
Nick Schonning
b19bafd70a
chore: add Dependabot for dependency updates ( #6325 )
...
Co-authored-by: Nick Schonning <nschonni@gmail.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-14 15:57:55 +01:00
Nick Schonning
98a03067e9
chore(ci): upgrade actions/github-script to v5 ( #6328 )
2022-01-13 15:31:20 +08:00
Nick Schonning
27a3bd5a33
misc(ci): remove redundant "CI: true" env ( #6326 )
2022-01-13 15:14:35 +08:00
Armano
4578b8b4c4
fix(website): resize showcase images, tighten CI check ( #6043 )
...
* fix(website): resize images to width 640
* revert changes first...
* resize images
* final changes
* Add to CI
* refactor tests
* Fix script
* fix script
* Final fixes
* Oops
* relax
* fix
* crop
* Optimize
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-07 14:03:43 +08:00
Kristoffer K
b48c6defae
fix: declare missing dependencies ( #6097 )
...
* fix(utils-validation): add missing peer dependencies `react` and `react-dom`
* fix(theme-classic): add missing peer dependency `@docusaurus/core`
* ci: disable PnP fallbacks
* ci: link to the docs
* Update package.json
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2021-12-13 09:47:07 +08:00
Joshua Chen
4809a1aab1
chore: add NPM and PNPM to E2E tests ( #6080 )
...
* chore: add NPM and PNPM to E2E tests
* Align node versions
* Install PNPM
* Fix options
Maybe fix
Fix
2021-12-10 22:04:05 +08:00
Joshua Chen
e07ebadf6c
fix: make Docusaurus PnP strict mode compatible ( #6047 )
...
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
2021-12-08 14:26:24 +01:00
Joshua Chen
d5d10f5656
chore: add prefix to needs triage label; separate Windows test workflow ( #6068 )
...
* chore: add status prefix to needs triage label
* Separate Windows workflow
2021-12-08 09:23:47 +08:00
Joshua Chen
40e4ce0e68
chore: upgrade prettier; rename prettier scripts as format ( #6010 )
2021-12-01 12:33:22 +01:00
Ludovico Fischer
5678911555
chore: update @svgr/webpack to version 6 ( #5958 )
...
* chore: update @svgr/webpack to version 6
* svgr changelog https://github.com/gregberge/svgr/releases
* SVGO 2 changelog https://github.com/svg/svgo/releases/tag/v2.0.0
* depend on maintained svgo version
* although svgr 6 is in alpha, it fixes a few issues
with webpack 5 (1a8cc98
)
and React (3700aba
)
* see also https://github.com/facebook/docusaurus/pull/5703
* Fix config
* fix e2e test
* Fix again
* Update to stable
Co-authored-by: Josh-Cena <sidachen2003@gmail.com>
2021-11-29 15:12:18 +08:00
Joshua Chen
057e3f34da
chore(ci): add GitHub action for showcase testing ( #6002 )
2021-11-24 18:25:49 +08:00
Joshua Chen
87a486a02f
chore: generate dogfooding test for long pathname during CI ( #5977 )
...
* chore: generate dogfooding test for long pathname during CI
* Fix test
* Fix again
2021-11-20 14:18:50 +08:00
Joshua Chen
2f63d383e5
misc(codeowners): add @Josh-Cena to CODEOWNERS ( #5950 )
...
* misc(codeowners): add @Josh-Cena to CODEOWNERS
* Simplify
2021-11-15 14:24:13 +08:00
Joshua Chen
7a07963c42
misc(workflow): E2E tests should not be run with website changes ( #5919 )
2021-11-10 17:36:39 +08:00
Joshua Chen
8fba542d26
chore(workflow): merge jobs into one workflow & give each job a name ( #5907 )
2021-11-08 22:04:39 +08:00
Alexey Pyltsyn
6ccda86e0f
chore: switch to GitHub issue forms ( #5836 )
2021-10-30 22:08:14 +08:00
Joshua Chen
d576b28e70
chore(issue templ): add "self service" section in templates ( #5834 )
2021-10-30 16:56:51 +08:00
Joshua Chen
66771bd80d
chore(workflow): remove v2 prefix from titles ( #5833 )
2021-10-30 15:48:38 +08:00
Oscar Dominguez
41346e0abf
chore(workflow): add cache to workflows using actions/setup-node ( #5697 )
...
* ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows
* Use cache: yarn
* Reformat
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2021-10-30 15:27:06 +08:00
Sébastien Lorber
3b66c68e92
feat: Support Node 17 ( #5814 )
2021-10-29 17:21:01 +02:00
Sébastien Lorber
1ce6253cc1
chore: require Node 14 ( #5812 )
2021-10-28 17:11:25 +02:00
John Reilly
43866b4eb3
chore: fix typos / casing in issue template ( #5730 )
2021-10-19 20:12:15 +02:00
Sébastien Lorber
f6ec757aa0
feat: npm init docusaurus, yarn create docusaurus ( #5635 )
...
* initial create-docusaurus impl
* cleanup
* @docusaurus/init renamed to create-docusaurus
* 0.0.6
* update lockfile
* fix lint
* remove npm2yarn for "npm init" because npm2yarn doesn't convert it and yarn result fails to execute
* prettier
* add correct version
* prettier
* prettier
* prettier
* prettier
* fix annoying --config .prettierrc issue
2021-10-07 16:06:42 +02:00
Paul O’Shannessy
ac2b0f7db2
chore: set up CodeQL ( #5499 )
...
Let's try this.
2021-09-08 13:58:33 +03:00
Joshua Chen
df3752cc71
fix: fix a few TS errors ( #5437 )
...
* fix errors
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Fix website
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Revert adding lib
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Fix tsconfig
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Restore previous ordering
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* exclude sw.js from typechecking
* Tests: include typechecking of website
* cleanup @site/ alias in TS config
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-08-30 13:06:00 +02:00
Sébastien Lorber
631c4685fb
chore: rename docusaurus-2-website package + refactor scripts ( #5397 )
2021-08-20 18:11:13 +02:00
Sébastien Lorber
f40ce05102
refactor: clean Canny integration + rename 'Feedback' to 'Feature Requests' + improve TS doc page ( #5389 )
...
* Better Canny integration
* Add missing netlify redirects
* polish
* TS doc: mention it's possible to use JSDoc in config
* issue templates: use /feature-requests new url
2021-08-20 11:42:13 +02:00
Paul O’Shannessy
8341527fc9
refactor: rename Git master branch to main ( #5345 )
...
* Prepare to renaming master branch to main
* Update CONTRIBUTING.md
* Update packages/docusaurus-migrate/src/__tests__/__fixtures__/missing_version_website/website/package.json
* Update packages/docusaurus-migrate/src/__tests__/__fixtures__/complex_website/website/package.json
* Update packages/docusaurus-migrate/src/__tests__/__fixtures__/simple_website/website/package.json
* missing master -> main replaces
* useless char
* For GH Pages org deploy, DEPLOYMENT_BRANCH env is now required
* fix versioning page
* fix vercel links
* update deployment.mdx
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-08-17 18:41:53 +02:00
Sébastien Lorber
ac4a253cdf
chore: fix e2e yarn berry tests ( #5342 )
...
* disable pnp
* test-release support --skip-install + revert to pnp mode
* fix yarn canary?
* add YARN_ENABLE_IMMUTABLE_INSTALLS env
* add nodeLinker matrix
* Update .github/workflows/v2-tests-e2e.yml
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
* polish e2e test workflows
* polish e2e test workflows
* set npm_config_registry
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
2021-08-12 13:18:07 +02:00
Sébastien Lorber
b5ecf270d9
fix: fix canary release version name ( #5295 )
2021-08-05 14:19:58 +02:00
Sébastien Lorber
4d06f26c1f
fix(v2): Fix MDX docs being considered as partials when siteDir match the _ prefix convention ( #5199 )
...
* Add _ to dogfood docs folder to cover against edge case
* Fix edge case with MDX partials when site / content dir contains a _ prefix
* add globUtils tests
* proper dogfooding folder re-organization, all content plugins being used
* refactor dogfooding folder + expose /tests page index
* fix page plugin ignoring options.routeBasePath
2021-07-21 14:13:51 +02:00
Alexey Pyltsyn
9536ef900d
feat(v2): redesign mobile UX: inline TOC + doc sidebar in main menu ( #4273 )
...
* feat(v2): mobile TOC
* Bug fixes and various improvements
* Redesign
* extract TOCCollapsible component
* TS improvements
* Assign sidebar name directly to the doc route => no need for either permalinkToSidebar or GlobalData
* revert changes to useWindowSize, fix FOUC issues
* extract DocSidebarDesktop component
* remove now useless menu infima classes
* TOCHeadings => rename + remove unused onClick prop
* Extract DocSidebarItem
* minor renaming
* replace GlobalData usage by a React teleport system to render in the navbar mobile sidebar menu directly from the DocPage component
* useWindowSize => simulate SSR size in dev to make FOUC issues more obvious
* fix remaining sidebar layout shift
* update docs snapshots
* remove unused code translations
* remove unused code translations
* fix minor update-code-translations bug
* Add more build-size paths to watch
* Restyle back button
* Add missing`menu` class
* extract useShallowMemoizedObject
* fix routes tests + better routes formatting
* use Translate api for labels
* use Translate api for labels
* Update translations
* Improve dark mode support for back button
* Merge branch 'master' into lex111/inline-color-code
# Conflicts:
# packages/core/dist/css/default-dark/default-dark-rtl.min.css
# packages/core/dist/css/default-dark/default-dark.min.css
# packages/core/dist/css/default/default-rtl.min.css
# packages/core/dist/css/default/default.min.css
* replace useCollapse by new useCollapsible
* Cleanup and use clean-btn for TOCCollapsible button
* Make TOC links clickable over full width
* Cleanup
* fix uncollapsible sidebar that can be collapsed + create <Collapsible> component
* dependency array typo
* rollback sidebars community commit typo
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-07-09 16:50:38 +02:00
Sébastien Lorber
f03479f69e
test(v2): dogfooding: add huge sidebar for testing purposes ( #5130 )
...
* dogfoog: add huge sidebar for testing purposes
* Add standalone doc + build-size tracking
2021-07-08 20:26:55 +02:00
Sébastien Lorber
ed9d2a26f5
misc: monitor site global data with build size bot ( #5111 )
2021-07-01 18:44:19 +02:00
Sébastien Lorber
4d93c894f2
chore: unstable yarn.lock ( #5067 )
...
* fix unstable yarn.lock
* remove useless typescript dep
2021-06-25 16:19:12 +02:00
Sébastien Lorber
fb172dc4e6
misc: more issue template improvements ( #4994 )
2021-06-17 12:04:31 +02:00
Lucas Correia
34411e12e5
fix(v2): truncate docuhash return value in order to avoid ERRNAMETOOLONG error ( #4899 )
...
* fix: truncate docuhash return value in order to avoid ERRNAMETOOLONG error
* chore: add deep file path test page to website
* refactor: reorganize docuHash/pathUtils code and tests
* chore: git support longpaths on v2 windows tests workflow
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-06-15 18:39:06 +02:00
Sébastien Lorber
b835aecaec
chore: removal of Docusaurus v1 code from master (it is now available on docusaurus-v1 branch) ( #4902 )
2021-06-10 10:54:07 +02:00
Sébastien Lorber
6fe7c0cd6f
fix(v2): use yarn install --frozen-lockfile on CI
2021-06-09 15:18:07 +02:00
Sébastien Lorber
f0d4d8dfc7
chore: fail CI if yarn.lock is modified on install ( #4897 )
2021-06-03 14:56:22 +02:00
Sébastien Lorber
f35dc6938b
misc: issue template config typo ( #4889 )
2021-06-02 15:39:53 +02:00