Commit graph

2259 commits

Author SHA1 Message Date
Joshua Chen
9a1b7217ba
chore: upgrade Jest to 28; add GitHub-actions reporter (#7243) 2022-04-27 23:47:59 +08:00
Joshua Chen
10a5ebecec
fix(content-docs): make category index text translatable (#7233) 2022-04-27 23:40:15 +08:00
Joshua Chen
67faa686e8
refactor: semantic markup improvement, fix validation warnings (#7244)
* refactor: semantic markup improvement, fix validation warnings

* change section/article a bit
2022-04-26 20:15:45 +08:00
Joshua Chen
242f2e780e
chore: upgrade dependencies (#7232) 2022-04-23 11:55:01 +08:00
Joshua Chen
c4e92c89e8
fix(core): prevent 404 when accessing /page.html (#7184) 2022-04-22 17:44:11 +02:00
Alexey Pyltsyn
4e4aa6add7
feat(theme-classic): toggle code wrap button (#7036)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-04-22 14:50:27 +02:00
Sébastien Lorber
c3add31ebf
fix: allow swizzling a component's parent folder (#7225) 2022-04-22 14:23:33 +02:00
Sébastien Lorber
5c29809163
refactor: use generated-index in init templates (#7223) 2022-04-22 11:27:14 +02:00
Joshua Chen
1412441987
fix(theme-common): do not persist color mode for OS-triggered changes (#7200)
* fix(theme-common): do not persist color mode if switch is disabled

* New setColorMode(null) API

* reset to default without RPCS
2022-04-21 23:29:08 +08:00
AkiraVoid
71ba449a28
fix(content-blog): make footnote reference DOM ID unique on post listing page (#7212)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-21 16:51:24 +02:00
Joshua Chen
3b32a41f22
fix(core): handle case where package.json is not available at CWD (#7187) 2022-04-21 16:07:02 +02:00
rev
e12947e818
chore(theme-translations): complete Polish translations (#7214)
* Update theme-common.json

* Update plugin-ideal-image.json

* Update theme-search-algolia.json

* Update theme-common.json

* Update packages/docusaurus-theme-translations/locales/pl/theme-search-algolia.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

* Update packages/docusaurus-theme-translations/locales/pl/theme-common.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

* Update packages/docusaurus-theme-translations/locales/pl/plugin-ideal-image.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

* Update packages/docusaurus-theme-translations/locales/pl/plugin-ideal-image.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

* Update packages/docusaurus-theme-translations/locales/pl/plugin-ideal-image.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>
2022-04-21 19:29:32 +08:00
Joshua Chen
b8fc34dd95
fix(theme-translations): fix invalid pluralization in cs (#7222) 2022-04-21 18:43:59 +08:00
Alexey Pyltsyn
9af35c5b47
refactor: customize code block line highlight color via CSS var (#7176) 2022-04-21 11:19:33 +02:00
Joshua Chen
97f7b45f1a
fix(cli): always show error stack to unhandled rejection (#7218) 2022-04-21 12:54:27 +08:00
Alexey Pyltsyn
1ba5bf66b2
refactor: improve IconHome icon (#7215)
* refactor: optimize IconHome icon

* Increase icon size

* Fix lint
2022-04-20 21:34:13 +08:00
Dr-Electron
44ebe73e50
refactor: use SVG icon for home breadcrumb (#7183)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-20 14:42:57 +02:00
Joshua Chen
7f06857e46
fix: fix a lot of declaration semantic errors (#7194) 2022-04-17 23:44:20 +08:00
Joshua Chen
b154318c28
chore: upgrade dependencies (#7193) 2022-04-17 17:32:41 +08:00
Joshua Chen
fa1ce230ea
refactor: capitalize comments (#7188)
* refactor: capitalize comments

* revert...
2022-04-17 16:39:11 +08:00
Joshua Chen
200009008b
refactor: prefer fs.readJSON over readFile.then(JSON.parse) (#7186)
* refactor: prefer fs.readJSON over readFile.then(JSON.parse)

* refactor: use promises
2022-04-17 12:50:09 +08:00
Joshua Chen
f219a2ac90
test: improve test coverage (#7181) 2022-04-16 16:35:40 +08:00
Joshua Chen
44966e19e9
fix(theme-classic): do not add microdata item prop to trailing breadcrumb (#7179) 2022-04-15 22:09:00 +08:00
Alexey Pyltsyn
84d04ed6ed
feat(theme-classic): new 'html' type navbar item (#7058)
* feat(theme-classic): allow using html in dropdown items

* Fix tests

* Introduce HTML type for navbar item

* Update packages/docusaurus-theme-classic/src/theme/NavbarItem/HtmlNavbarItem.tsx

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-15 18:58:15 +08:00
Sébastien Lorber
5273a534d3
refactor(theme-classic): split CodeBlock (#7175)
* extract CodeBlockLine

* stable refactor

* stable refactor

* stable refactor

* add CodeBlockContainer

* refactor

* refactor

* do the actual split

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-15 17:58:12 +08:00
chelproc
f6a14db8de
fix(theme-classic): admonition title: disable text-transform on inline code blocks (#7173) 2022-04-14 18:20:13 +02:00
Alexey Pyltsyn
ad1526aade
refactor: control base styling of code blocks via CSS vars (#7172)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-04-14 18:16:39 +02:00
Alexey Pyltsyn
fe064a87a6
fix: adjust spacing for custom search properly (#7164) 2022-04-14 11:53:47 +02:00
Joshua Chen
03516dc3a7
fix(sitemap): exclude pages with robots noindex from sitemap (#7143) 2022-04-14 11:31:09 +02:00
Jody Heavener
5fb0a2e274
feat(content-docs): draft docs excluded from build & sidebars (#6457)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-13 18:02:05 +02:00
Alexey Pyltsyn
ee4c984bc7
feat(theme-classic): code block showLineNumbers (#7007) 2022-04-13 14:42:35 +02:00
Joshua Chen
4d9a0edf21
fix(theme-translations): always try all possible locale resolutions (#7166) 2022-04-13 16:32:46 +08:00
Joshua Chen
f4ab7c65ac
feat(preset-classic, content-docs/client): JSDoc (#7148)
* refactor: add JSDoc for preset-classic, content-docs/client

* fix
2022-04-11 09:36:30 +08:00
Joshua Chen
7a61eed3dd
refactor: unify how MDX content types are represented (#7145)
* refactor: unify how MDX content types are represented

* fix

* fix again
2022-04-10 19:19:44 +08:00
Joshua Chen
b50def3ac0
refactor(core): lower timeout before rendering progress bar to 200ms (#7142) 2022-04-09 20:19:17 +08:00
Joshua Chen
0dc7f0ff14
refactor(core): minor PendingNavigation refactor (#7141)
* refactor(core): minor PendingNavigation refactor

* lol
2022-04-09 19:30:21 +08:00
Joshua Chen
96fbcb3f51
refactor(content-docs): split version handling into several files (#7140)
* refactor(content-docs): split version handling into several files

* fix test

* increase timeout
2022-04-09 17:08:57 +08:00
Alexey Pyltsyn
7d44961d8b
fix: proper spacing between generated card items on mobiles (#7139) 2022-04-09 09:43:46 +03:00
Joshua Chen
2a7820582c
chore: upgrade dependencies (#7138)
* chore: upgrade dependencies

* reorg

* update comment
2022-04-09 12:36:10 +08:00
Joshua Chen
e5bf59fd9b
refactor: mark a few client-side packages as side-effect-free (#7085)
* refactor: mark a few client-side packages as side-effect-free

* fix

* fix again

* fix...

* revert sideeffect

* revert

* fix again...

* properly fix

* fix

* properly fix
2022-04-09 09:08:18 +08:00
Alexey Pyltsyn
d5cfa5b7cf
refactor(theme-classic): fix a few margin inconsistencies (#7129)
* refactor(theme-classic): minor fixes and improvements

* Fixes after review

* Reset spacing for all children inside browser window
2022-04-09 08:27:22 +08:00
Joshua Chen
7941a46be3
feat: allow setting calendar for i18n date formatting (#6430)
* feat: allow setting calendar for i18n date formatting

* fix TS

* add test
2022-04-08 22:34:34 +08:00
Sébastien Lorber
3e110054d7
fix(theme-classic): fix docs sidebar layout shifts when expanding categories (#7134) 2022-04-08 12:41:00 +02:00
Joshua Chen
171927342f
feat(core): fail-safe global data fetching (#7083) 2022-04-08 11:08:22 +02:00
Joshua Chen
9145ae88cc
chore: disable string escaping in snapshots (#7131) 2022-04-08 11:23:19 +08:00
Joshua Chen
4134ebb3fb
feat(content-docs): make docs:version command work on localized docs (#7106)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-04-07 19:43:24 +02:00
Joshua Chen
0a3aad618e
feat(core): allow plugins to declare custom route context (#7082) 2022-04-07 18:38:33 +02:00
Joshua Chen
1156be3f20
refactor(content-{blog,docs}): unify handling of tags (#7117) 2022-04-07 15:58:21 +02:00
Joshua Chen
ca718ccac0
refactor(theme-classic): blog mobile secondary menu use consistent styles (#7068) 2022-04-07 15:56:50 +02:00
Joshua Chen
f9c0a5a6d5
feat(core): allow plugin/preset config to contain false/null (#7124) 2022-04-07 15:27:20 +02:00