Joshua Chen
b89d93fab5
refactor: recommend using data-theme without html element selector ( #6668 )
...
* refactor: recommend using data-theme without html element selector
* simplify site CSS
* refactor
2022-02-14 10:23:42 +08:00
Joshua Chen
0c7e592d34
chore: upgrade dependencies ( #6660 )
...
* chore: upgrade dependencies
* fix types
2022-02-12 15:29:40 +08:00
Joshua Chen
b16b394eb6
feat(create): allow specifying a git clone strategy ( #6610 )
...
* feat(create): allow specifying a git clone strategy
* Update index.ts
2022-02-10 11:15:06 +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
661bc32402
chore(deps): bump all dependencies; regenerate lockfile ( #6580 )
2022-02-02 13:00:31 +08:00
Joshua Chen
aa446b7a9c
chore: clean up ESLint config, enable a few rules ( #6514 )
...
* chore: clean up ESLint config, enable a few rules
* enable max-len for comments
* fix build
2022-01-31 10:31:24 +08:00
Joshua Chen
58e07a6796
test: add test for readOutputHTMLFile ( #6506 )
2022-01-29 18:10:46 +08:00
Joshua Chen
4c22316438
refactor(init): promote good practices; use site alias ( #6481 )
2022-01-27 12:08:52 +01:00
Sébastien Lorber
d6cff8c754
chore(v2): prepare v2.0.0-beta.15 release ( #6473 )
2022-01-26 19:28:16 +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
Gabriel Csapo
d73b4f8674
fix(init): cd to correct path when installing ( #6468 )
...
* [bug] ensure we use the correct cd path
* Update index.ts
* refactor
* add ignore
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-26 10:01:11 +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
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
Nick Schonning
9f9a96dc80
chore: upgrade lint-staged and globs ( #6369 )
2022-01-15 16:33:09 +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
4fad1ce0cd
misc: convert all internal scripts to ESM ( #6286 )
...
* misc: convert all internal scripts to ESM
* fixes
* fix
* fixes
* fix!
* complete eslint
* more move
* fix!
* This looks better?
* Final ones
2022-01-08 12:59:28 +08:00
Joshua Chen
cb1aa30286
refactor: enforce type import specifiers ( #6230 )
...
* refactor: enforce type import specifiers
* fix
* Upgrade esbuild
* Fix (haha)
2021-12-31 21:17:09 +08:00
Joshua Chen
24d65d9bdd
refactor(utils): reorganize functions; move authors file resolution to utils ( #6229 )
...
* refactor(utils): reorganize functions; move authors file resolution to utils
* More refactor
2021-12-31 11:55:42 +08:00
Joshua Chen
73ee356949
docs: audit grammar issues ( #6203 )
...
* docs: audit grammar mistakes
* fix code block language
* revert change
* let's get another
2021-12-27 19:34:04 +08:00
Nayan Patel
7fcadd0c36
docs: make installation guide more beginner-friendly ( #6187 )
...
* Add support for beginners
* Add files via upload
* Update intro.md
* Update intro.md
* Update intro.md
* Update intro.md
* Update intro.md
* Edits
* Edits
* Last nits
* Edit
* Update installation.md
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2021-12-26 19:29:47 +08:00
Joshua Chen
1460f867d0
refactor: print trailing new line when outputting JSON ( #6186 )
...
* refactor(core): print trailing new line when writing translation
* Print these as well
2021-12-24 22:11:35 +08:00
Sébastien Lorber
01b407011a
chore(v2): prepare v2.0.0-beta.14 release ( #6147 )
2021-12-21 17:15:04 +01:00
Joshua Chen
770418f8d2
refactor: unify log format with new logger utility ( #5994 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2021-12-20 17:24:59 +01:00
Joshua Chen
77c93cbda6
misc: ignore some files during npm publish ( #6092 )
2021-12-17 11:38:26 +01:00
Joshua Chen
0c2765fb74
fix(create-docusaurus): make initial editUrl functional ( #6119 )
2021-12-17 10:47:58 +08:00
Joshua Chen
649f18d304
fix(create-docusaurus): give a clearer message when installation failed ( #6095 )
2021-12-15 18:03:38 +01:00
Sébastien Lorber
ae9a12ff50
chore(v2): prepare v2.0.0-beta.13 release ( #6084 )
2021-12-10 16:56:00 +01:00
Sébastien Lorber
991c1b2832
chore(v2): prepare v2.0.0-beta.11 release ( #6081 )
2021-12-10 14:13:25 +01:00
Sébastien Lorber
43ac7d5da9
chore(v2): prepare v2.0.0-beta.10 release ( #6076 )
2021-12-09 13:32:23 +01:00
Joshua Chen
fd966b5395
refactor: add blank lines below all copyright headers ( #6071 )
2021-12-09 11:53:46 +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
fb6393fdce
chore: clean up dev dependency declarations ( #6055 )
...
* chore: clean up dev dependency declarations
* Fix prettier version
2021-12-05 23:07:34 +08:00
Fernando Maia
b366ba5603
feat: shorthands for themes/plugins/presets configuration ( #5930 )
...
Co-authored-by: Josh-Cena <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2021-12-03 18:23:12 +01: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 (https://github.com/gregberge/svgr/commit/1a8cc98 )
and React (https://github.com/gregberge/svgr/commit/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
0374426ce3
chore: upgrade TypeScript & other ESLint related deps ( #5963 )
...
* chore: upgrade ESLint related deps
* Upgrade TS
* Fix lock
* Bump Babel
* Update config
2021-11-18 21:15:37 +08:00
Afshin Mehrabani
54d0755493
feat(create-docusaurus): allow using local folder as template ( #3458 )
...
* feat(docusaurus-init): search the local ./templates folder during doc init
* Add docs
Co-authored-by: Josh-Cena <sidachen2003@gmail.com>
2021-11-15 12:37:22 +08:00
William Poetra Yoga
f5732e7589
feat: allow GIT_USER env var to be unset if SSH is used ( #5840 )
...
* feat: allow GIT_USER env var to be unset if SSH is used
* fix: packages/docusaurus/src/commands/deploy.ts
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
* feat: allow user to specify deploymentBranch property in docusaurus.config.js (#5841 )
* feat: allow user to specify deploymentBranch property in docusaurus.config.js
* docs: remove extra backtick
* docs: fix broken code block
* docs: fix i18n routes to feature requests (#5843 )
* docs: fix i18n routes to feature requests
* Add redirect rules
* feat: allow GIT_USER env var to be unset if SSH is used
* fix: packages/docusaurus/src/commands/deploy.ts
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
* fix: avoid escaping hyphen in regex
* Refactor
* Update deployment.mdx
* Make SSH higher priority
* Only infer but not override
* Add tests
* Fix tests
* Fix
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2021-11-10 18:51:12 +08:00
Swalah Amani
c541e2d83c
misc: replace all "Metadatas" with "Metadata" ( #5871 )
...
Co-authored-by: Josh-Cena <sidachen2003@gmail.com>
2021-11-09 19:46:10 +01:00
Alexey Pyltsyn
91ec2509b7
chore: prepare v2.0.0-beta.9 release ( #5859 )
...
* chore: prepare v2.0.0-beta.9 release
* v2.0.0-beta.9
2021-11-02 20:40:01 +03:00
Sébastien Lorber
1ce6253cc1
chore: require Node 14 ( #5812 )
2021-10-28 17:11:25 +02:00
Ying Wang
075234851c
docs: fix typo ( #5792 )
...
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2021-10-27 11:42:01 +02:00
Sébastien Lorber
68a116611f
chore: prepare v2.0.0-beta.8 release ( #5762 )
2021-10-21 18:52:17 +02:00
Alexey Pyltsyn
877373e108
chore: prepare v2.0.0-beta.7 release ( #5713 )
...
* chore: prepare v2.0.0-beta.7 release
* v2.0.0-beta.7
2021-10-15 16:31:01 +03:00
Joshua Chen
8d92e9bcf5
refactor(content-docs): refactor sidebars, Joi validation, generator rework, expose config types ( #5678 )
2021-10-14 14:38:26 +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