Sébastien Lorber
8265e165b7
fix(theme-translations): publish theme-translation lib, including typedef ( #6088 )
2021-12-10 19:09:56 +01:00
Sébastien Lorber
fd2934d10d
getMainDocId should return doc with both versioned or unversioned id ( #6085 )
2021-12-10 09:35:57 -08: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
Pranab Das
fbf04ed556
fix: move docusaurus core back to hard dependencies ( #6078 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2021-12-10 11:05:21 +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
Robin Métral
9433dcbe60
fix(theme-classic): make nav dropdowns focusable ( #6003 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2021-12-08 18:50:39 +01:00
Sébastien Lorber
f5a404b877
fix(theme-common): useLocationChange fire un-necessarily twice ( #6070 )
2021-12-08 16:38:34 +01: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
Alexey Pyltsyn
68b75bf855
refactor: capitalize locales when creating i18n config ( #6048 )
...
* refactor: capitalize locales when creating i18n config
* Switch to toLocaleUpperCase method
* Update packages/docusaurus/src/server/i18n.ts
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2021-12-08 21:04:28 +08:00
Joshua Chen
59f81e6490
fix(core): fix error boundary import disrupting CSS order ( #6052 )
2021-12-08 11:13:43 +01:00
Yongmin Hong
813300b9fe
feat(theme-translations): add extra Korean translation, fix typo ( #5976 )
...
* Add extra Korean translation, fix typo
Signed-off-by: Yongmin Hong <revi@pobox.com>
* Add missing translations, per John-Cena's guidance
Resolves most comments, more fix.
Signed-off-by: Yongmin Hong <revi@pobox.com>
* Cleanup rebase and add one more translation
add the missing bit.
Signed-off-by: Yongmin Hong <revi@pobox.com>
2021-12-08 09:38:09 +08:00
Joshua Chen
8644097ab7
fix(content-blog): make post ID unique ( #6061 )
...
* fix(content-blog): make post ID unique
* Fixes
2021-12-08 09:28:17 +08:00
Joshua Chen
b4ec7ec011
refactor(core): fix types for client code ( #6064 )
2021-12-07 19:58:36 +01:00
Alexey Pyltsyn
f96a051fbe
refactor: remove deprecated docs homePageId option ( #6065 )
2021-12-07 19:48:30 +01:00
Joshua Chen
7c43569468
chore(theme-translations): complete Chinese translations ( #6060 )
2021-12-07 19:15:16 +08:00
Alexey Pyltsyn
283166c211
refactor: remove unused metadata field for homepage ( #6056 )
2021-12-06 12:28:35 +08: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
Alexey Pyltsyn
58720c93e8
refactor: simplify Toggle component ( #6049 )
2021-12-05 09:31:57 +08:00
Joshua Chen
fcaa94695d
fix(core): do not apply theme-init alias to user component ( #5983 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2021-12-03 18:59:45 +01: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
bfd7fd9d8a
refactor: minor ESLint improvements ( #5981 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2021-12-03 17:38:29 +01:00
Sébastien Lorber
cfae5d0933
feat(content-docs): sidebar category linking to document or auto-generated index page ( #5830 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Armano <armano2@users.noreply.github.com>
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2021-12-03 14:44:59 +01:00
Sébastien Lorber
95f911efef
fix(v2): Browser storage (localStorage) is unreliable: api should fail-safe ( #6040 )
2021-12-02 19:33:03 +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 (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
Alexey Pyltsyn
b31044dc8a
chore: upgrade webpack-dev-server to v4.5.0 ( #5998 )
...
* chore: upgrade webpack-dev-server to v4.5.0
* Fixes after review
* remove type assertion
Co-authored-by: Josh-Cena <sidachen2003@gmail.com>
2021-11-24 17:41:34 +08:00
Jarar
48fff3e66c
fix: make hash link in heading not selectable ( #6000 )
2021-11-24 17:17:29 +08:00
Joshua Chen
36b2220f87
chore(plugin-pwa): change core-js version in package.json to v3 ( #5995 )
2021-11-23 20:20:27 +08:00
Armano
411b9aa977
chore: cleanup dependency declaration in package.json ( #5985 )
...
* deps: add/move dependencies and treat types as dev
* chore: fix merge conflict
* Update package.json
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2021-11-23 13:59:28 +08:00
Alexey Pyltsyn
63bd6b9025
refactor: define own translations in other themes ( #5849 )
...
Co-authored-by: Armano <armano2@users.noreply.github.com>
2021-11-20 16:35:27 +01:00
Joshua Chen
623a5cc022
fix(core): apply staticDirectories to base webpack config ( #5965 )
2021-11-18 23:11:29 +08:00
Oliver Ullman
1366c31201
feat(core): allow sourcing from multiple static directories ( #4095 )
...
* [WIP] Implementaion of multiple directory static sourcing
* Move default to validation
* Update test
* Refactor
* Port to MDX loader
* Fix
* Move dogfooding assets
* Doc writeup
* Restore assets
* Support absolute paths
* Dogfood absolute path
* Fix
* More tests
* Fix snapshots
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2021-11-18 22:26:26 +08:00
chima ilo
3f18c928bb
feat(website): redesign of showcase page ( #5742 )
...
* feat: redesign of showcase page
* redesign of showcase card
* improved card design
* create Tooltip component, Svg component
* Add popper.js to dependency
* fixed netlify deploy issues
* fixed netlify deploy issues
* fixed netlify deploy issues
* Make things work
* Relock
* Refactor
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Fix linter errors
* Make animation shorter
* Refactors
* Do not make entire link clickable
* fixed linting and netlify deploy issues
* enhanced styles and fix deploy issues
* Polishing
* improved contrast for selected tags
* Refactors
* Make each component standalone
* Fix operator on first render
* Color coding!
* fix SSR
* More elegant impl
* Do not show source if there is not one
* Fix
* custom on-focus styling for focusable elements with default outlinline && highlight filter toggle on focus.
* fix lint issues
* restore highlight coloring
* Use state instead of ref
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Visual seperator
* Refactors
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Minor fix with dev server
* Paletter improvement
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
Co-authored-by: Josh-Cena <sidachen2003@gmail.com>
2021-11-18 22:22:26 +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
Armano
2f7d6fea1e
refactor(content-docs): move isCategoriesShorthand to utils ( #5962 )
2021-11-18 08:25:07 +08:00
Armano
ac1df888ae
refactor(plugin-ideal-image): migrate package to TS ( #5940 )
2021-11-17 14:10:23 +01:00
Armano
3bf59a65a9
refactor(types): correct HtmlTags types ( #5959 )
2021-11-17 07:10:44 +08:00
Armano
85fcd9eb0f
refactor(plugin-pwa): migrate package to TS ( #5941 )
2021-11-16 20:38:14 +01:00
Armano
425144afc7
refactor(theme-search-algolia): migrate package to TS ( #5935 )
2021-11-16 20:35:09 +01:00
FISH UP
7e955e2fa6
fix(module-type-aliases): add svg declaration ( #5945 )
...
* fix(module-type-aliases): add svg, scss, module.scss, module.sass
* fix(module-type-aliases): css should be declared after module.css
* fix(module-type-aliases): remove scss related declarations
* fix(module-type-aliases): correct svg declaration
Co-authored-by: FISH UP <MisterFISHUP@users.noreply.github.com>
2021-11-15 13:10:45 +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
Joshua Chen
c5feac6ba2
refactor: move deps declarations into src ( #5946 )
2021-11-14 13:35:15 +08:00
Stan Kocken
81ab250326
fix: translate all remaining english sentence in French ( #5944 )
...
* Update fr.json
2021-11-14 09:04:56 +08:00
Joshua Chen
d1308a8736
refactor: improve setup of type declaration files ( #5914 )
2021-11-12 17:47:27 +01:00
Joshua Chen
334470b5d4
refactor(theme-classic): move some logic of CodeBlock to theme-common ( #5922 )
2021-11-12 16:43:40 +01:00
duanwilliam
1e725a158e
refactor(remark-plugin-npm2yarn): migrate package to TS ( #5931 )
...
* refactor(remark-plugin-npm2yarn): migrate package to TS
* fix(remark-plugin-npm2yarn): type as unified Plugin
* refactor(remark-plugin-npm2yarn): standardize code style with remark plugins in mdx-loader
* Use unist-util-visit
* Use export =
* Remove unneeded includes option
* Fix tests
* Migrate test to TS
* Make output look better
Co-authored-by: Josh-Cena <sidachen2003@gmail.com>
2021-11-12 21:21:16 +08:00
Varun Sivapalan
6c0a193fc8
refactor: optimize clone and checkout in deploy command ( #5829 )
...
* refactor: optimize clone and checkout in deploy command
* refactor: remove obsolete check for default branch and simplify flow
* refactor: skip cloning repository if deployment branch doesn't exist
* Refactors
* More tip about failure
Co-authored-by: Josh-Cena <sidachen2003@gmail.com>
2021-11-11 09:33:38 +08:00
Joshua Chen
ac88d979f1
refactor(ganalytics, gtag): move options out of themeConfig ( #5832 )
...
* refactor(ganalytics, gtag): move options out of themeConfig
* Forbid themeConfig options
* Add PR link
* Add key names to error message
* Fix?
* Doc updates
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2021-11-10 19:04:43 +08:00