Commit graph

2246 commits

Author SHA1 Message Date
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
Alexey Pyltsyn
0963bff5e7
feat(preset-classic): exclude debug plugin routes from sitemap (#7122) 2022-04-07 12:59:47 +02:00
Alexey Pyltsyn
bfbc78e52a
feat: allow using pure HTML as label in navbar links (#7079)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-04-07 12:33:52 +02:00
Pierre-Gilles Leymarie
90ee1447ba
fix(theme-classic): shrink title size on mobile (#7004) 2022-04-07 11:53:24 +02:00
ApsarasX
103ea04661
feat(sitemap): add ignorePatterns option (#6979)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-06 15:44:07 +02:00
Joshua Chen
bd70cfc1d7
refactor(create): mention that the edit links can be removed (#7118) 2022-04-06 17:20:41 +08:00
Joshua Chen
e610a4ac00
test: improve test coverage (#7113) 2022-04-05 14:09:19 +08:00
Joshua Chen
85f47fd8f7
fix(core): preserve Interpolate children semantics (#7103)
* fix(core): preserve Interpolate children semantics

* fix

* fix again
2022-04-03 15:16:30 +08:00
Joshua Chen
c7c0ee4e7c
chore: upgrade dependencies (#7101) 2022-04-02 08:32:26 +08:00
Joshua Chen
898611d4ad
refactor(core): code cleanup (#7084) 2022-04-01 13:41:39 +08:00
Joshua Chen
ff96606865
docs: fix some casing inconsistencies (#7081) 2022-03-31 20:23:44 +08:00
Joshua Chen
24c205a835
refactor: replace non-prop interface with type; allow plugin lifecycles to have sync type (#7080)
* refactor: replace non-prop interface with type; allow plugin lifecycles to have sync type

* fix
2022-03-31 19:16:07 +08:00
Joshua Chen
ce2b631455
fix(create): install types for JS template as well (#7078) 2022-03-31 15:49:07 +08:00
Lenz Weber-Tronic
949a72e6a5
perf(mdx-loader): cache mdx/remark compiler instances (#4997)
* (mdx-loader) only create mdx compiler once per webpack config

* type fixes

* fix path

* remove assertion

* docs: add missing Tab/TabItem imports

* fixup

Co-authored-by: slorber <lorber.sebastien@gmail.com>
Co-authored-by: Josh-Cena <sidachen2003@gmail.com>
2022-03-31 15:42:57 +08:00