Commit graph

908 commits

Author SHA1 Message Date
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
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
Joshua Chen
d1308a8736
refactor: improve setup of type declaration files (#5914) 2021-11-12 17:47:27 +01: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
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
Joshua Chen
eab8c7c010
feat(core): give more hints when plugins have duplicate IDs (#5899) 2021-11-09 19:32:55 +01:00
Sergio Moreno
cbcaa52f88
fix(cli): update notifier should be shown if current is less than latest (#5798) 2021-11-04 17:12:20 +01:00
Paden Clayton
fa6d15b35f
feat(core): Add React ErrorBoundary component + theme default boundaries (#3104)
Co-authored-by: Paden Clayton <paden.clayton@monkedia.com>
Co-authored-by: Josh-Cena <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2021-11-04 16:07:32 +01:00
Alexey Pyltsyn
aeeacc3b52
fix: respect base URL when serving content by webpack dev server (#5864) 2021-11-03 19:12:22 +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
William Poetra Yoga
ca9bd244aa
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
2021-10-31 12:29:22 +08:00
Varun Sivapalan
8c12983a2a
fix: include all branch tips for shallow clone in deploy command (#5828) 2021-10-29 18:12:20 +02:00
Sébastien Lorber
3b66c68e92
feat: Support Node 17 (#5814) 2021-10-29 17:21:01 +02:00
Sergio Moreno
8eaf02fe15
fix: baseUrl passed to sortConfig (#5824) 2021-10-29 16:07:12 +02:00
Alexey Pyltsyn
d1fa1b5d35
refactor: some improvements for webpack-dev-server (#5815) 2021-10-29 14:46:50 +02:00
Sébastien Lorber
0b2d3483a1
fix: use @docusaurus/react-loadable as package alias + include types (#5819) 2021-10-29 11:04:07 +02:00
Sébastien Lorber
768600e5d9
fix: handle SIGTERM in build command (#5813) 2021-10-28 19:20:07 +02:00
Avi Vahl
96da25e422
feat(core): upgrade to webpack-dev-server@4 (#5420)
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-10-28 18:06:20 +02:00
Sébastien Lorber
1ce6253cc1
chore: require Node 14 (#5812) 2021-10-28 17:11:25 +02:00
Joshua Chen
7a6607cfa1
refactor: remove a few Lodash usages & ESLint enforcement (#5807)
* refactor: remove some lodash usage

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Enforce ESLint

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* More forbids

* Fixup

* Fix

* Fix website
2021-10-28 12:48:58 +08:00
Joshua Chen
4b2152a964
refactor: clear a few ESLint warnings (#5808)
* refactor: clear a few ESLint warnings

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Fix
2021-10-28 12:47:40 +08:00
Joshua Chen
72990726e5
refactor: fix a few type inconsistencies (#5788) 2021-10-27 11:53:08 +02:00
Sébastien Lorber
68a116611f
chore: prepare v2.0.0-beta.8 release (#5762) 2021-10-21 18:52:17 +02:00
Sébastien Lorber
ef246dafcd
chore: upgrade html-webpack-plugin, remove terser 4 (#5761) 2021-10-21 17:54:35 +02:00
Joshua Chen
2398943c17
feat(core): write-heading-ids options maintainCasing, overwrite (#5740) 2021-10-21 12:33:52 +02:00
Sébastien Lorber
098f210890
chore: Enable ESLint rules of hooks + fix new lint errors (#5714) 2021-10-20 16:09:52 +02:00
Joshua Chen
90098ca838
refactor(module-type-aliases): remove fallback aliases (#5726) 2021-10-20 15:27:16 +02:00
Nathaniel Furniss
6763496dc1
refactor: perform shallow clone during deploy (#5748)
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-10-20 15:21:11 +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
Alexey Pyltsyn
92104c7c3b
feat: make Translate children optional (#5683)
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-10-14 18:39:41 +02:00
Alexey Pyltsyn
543011c9d2
fix: use realpath for site dir to resolve symlink (#5684) 2021-10-14 12:08:48 +02:00
Alexey Pyltsyn
e6e2db7f24
fix: place root route at the end (#5645)
* fix: place root route at the end

* Use sorting independent of subroutes

* Add better test to cover edge-case and ensure "/" routes with child are at the end

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-10-06 14:00:49 +02:00
Joshua Chen
7f7b858cd4
refactor: make all Props defined as interface + readonly (#5636)
* Initial work

* Fix
2021-10-05 19:04:24 +02:00
Sébastien Lorber
9d129631b6
fix: text/link hydration bug (#5629) 2021-09-30 19:54:40 +02:00
Joshua Chen
3f1f8255a2
chore: upgrade Prettier + regenerate lock file (#5611)
* Bump deps

* Run prettier

* Format docs

* Minor refactor

* Collapse objects

* Fix type

* Update lock file
2021-09-30 12:54:17 +02:00
Alexey Pyltsyn
3ea96b8e00
chore: upgrade Terser-related dependencies (#5609) 2021-09-29 11:57:11 +02:00
Alexey Pyltsyn
b62a12bfc6
chore: upgrade dependencies (#5608)
* chore: upgrade dependencies

* Revert github-slugger

* Fixes

* Update snapshots

* Update Babel deps
2021-09-24 16:36:41 +02:00
Joshua Chen
452f85b5a3
refactor(core): enforce noImplicitAny (#5605)
* Initial work

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Fix errors

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Remove .d.ts files

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Fix

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
2021-09-23 15:25:16 +02:00
Stefan Norberg
dc5ec324dc
feat: make Webpack url-loader limit configurable (env variable) (#5498)
* Make urlLoaderLimit in the webpack config user-overridable via environment variable 'URL_LOADER_LIMIT'.

* Apply suggestions from code review

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>

* Changes as per @slorber's suggestions:
* moving it to packages/docusaurus/src/constants.ts
* name it WEBPACK_ URL_LOADER_LIMIT
* add comment to say it's temporary, link to this PR/issue

Co-authored-by: stnor <stefan@selessia.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2021-09-22 11:55:42 +02:00
Joshua Chen
a839966cd2
polish: remove unused eslint-disable (#5560)
* fix eslint

* Add report unused disable to CI

* Fix two anys
2021-09-21 18:07:54 +02:00
Joshua Chen
e0aa87fe7f
refactor(core): type improvements for PendingNavigation (#5580)
* Fix type

* Completely fix

* Fix type
2021-09-21 10:05:42 +03:00
Alexey Pyltsyn
453d9c099d
fix: remove deprecated createRequireFromPath (#5496) 2021-09-11 12:39:33 +03:00
Sébastien Lorber
2611bbb501
chore(v2): prepare v2.0.0-beta.6 release (#5473)
* add beta.6

* v2.0.0-beta.6
2021-09-02 18:31:42 +02:00
Sébastien Lorber
f600d5a6d7
chore: prepare v2.0.0-beta.5 release (#5427)
* beta.5

* v2.0.0-beta.5
2021-08-26 17:33:31 +02:00
Sébastien Lorber
20fc4f6c7e
fix: Make update-notifier fail-safe if no permission to read configStore (#5426) 2021-08-26 16:42:26 +02:00
Sébastien Lorber
0480afc75f
fix: fix write-translations warning for theme-common translations (#5398) 2021-08-20 18:47:43 +02:00
Sébastien Lorber
bcb883055e
fix: fix Locale Dropdown RTL icon + Webpack aliases ordering (#5383)
* fix Locale dropdown IconLanguage RTL margin

* add more alias test fixtures for nested elements

* change webpack alias ordering logic to handle nested items better

* another aliases order fix
2021-08-19 16:22:16 +02:00