Sébastien Lorber
c3ff131110
refactor(theme): split BlogPostItem into smaller theme subcomponents ( #7716 )
2022-07-08 13:28:53 +02:00
Sébastien Lorber
bc0538f6fa
refactor(theme-common): move useDocsPreferredVersion() to public api ( #7729 )
2022-07-06 17:58:18 +02:00
Sébastien Lorber
afc08eef4f
refactor(theme): move LayoutProviders to Layout/Provider; composeProviders util ( #7676 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-06-24 18:36:27 +02:00
Sébastien Lorber
2c7012f706
refactor(theme-common): rename useDynamicCallback to useEvent ( #7671 )
2022-06-24 12:10:03 +02:00
Sébastien Lorber
9473508c33
refactor(theme-common): split package into public/internal API entrypoints ( #7660 )
...
* add theme-common/internal export
* Split @docusaurus/theme-common into public/internal apis
* fixes
* public <-> private
* public <-> private
* public <-> private
* fix
* add "removeThemeInternalReexport" CI script
* :s windows CI check not working: not that useful
* remove bad import
* refactors
* reorder
* make useBackToTopButton internal
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-06-24 11:21:27 +02:00
Sébastien Lorber
42ab07f62f
feat(theme-classic): themeConfig navbar/footer logos accept className/style + update Meta Open-Source Logo ( #7643 )
2022-06-23 11:22:27 +02:00
Sébastien Lorber
fd87afd249
refactor(docs,theme): split DocItem comp, useDoc hook ( #7644 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-06-22 14:27:23 +02:00
Joshua Chen
51d7899b0d
fix(theme-common): add a missing generic constraint ( #7648 )
2022-06-22 13:29:31 +02:00
Le Thi Van
5444a230cf
feat: allow specifying custom target for FooterLogo ( #7557 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-06-03 17:28:27 +02:00
Sébastien Lorber
9d0bf2e090
feat: add admonition type title translations ( #7556 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-06-03 16:40:02 +02:00
Sébastien Lorber
17fe43ecc8
fix(theme-classic): code block wrap mode should allow wrapping in the middle of a word ( #7551 )
2022-06-02 17:40:42 +02:00
dpang314
b215ad0e1b
fix(theme-classic): inconsistent code block wrapping ( #7485 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-06-02 15:56:54 +02:00
Joshua Chen
9023b7740c
refactor: remove sub-eslintrc, fix more lint errors ( #7530 )
2022-05-30 14:49:51 +08:00
Joshua Chen
cd21a31005
test: strengthen internal types ( #7488 )
2022-05-25 15:38:44 +08:00
Joshua Chen
d50fe3b670
test: fix ALL type errors in tests ( #7487 )
2022-05-25 14:01:10 +08:00
Joshua Chen
e2e40b8f5f
test: fix some type errors in test files ( #7486 )
2022-05-25 11:46:10 +08:00
Joshua Chen
624735bd92
refactor: fix more type-aware linting errors ( #7479 )
2022-05-24 19:19:24 +08:00
Joshua Chen
bf1513a3e3
refactor: fix a lot of errors in type-aware linting ( #7477 )
2022-05-24 15:40:26 +08:00
Joshua Chen
3666a2ede5
refactor: remove a lot of implicit anys ( #7468 )
2022-05-23 15:40:53 +08:00
Joshua Chen
89b0fff128
refactor: reduce number of leaked anys ( #7465 )
2022-05-23 00:30:32 +08:00
Joshua Chen
0838884f67
chore: enable import/order rule ( #7418 )
2022-05-14 23:39:50 +08:00
Joshua Chen
51815c12c9
feat(theme-classic): extensible code block magic comment system ( #7178 )
2022-05-04 12:31:13 +02:00
Joshua Chen
785fed723f
refactor(theme-classic): move all sidebar-related config under themeConfig.docs.sidebar ( #7277 )
2022-05-04 12:08:19 +02:00
Joshua Chen
b49ae67521
refactor(types): move non-core, non-public types out of the types package ( #7293 )
2022-05-03 17:15:48 +08:00
Joshua Chen
afc72480ab
refactor(eslint-plugin): migrate to TS-ESLint infrastructure ( #7276 )
...
* refactor(eslint-plugin): migrate to TS-ESLint infrastructure
* fix lock
2022-04-30 17:57:57 +08:00
Joshua Chen
710f898703
refactor(theme-classic): multiple re-arrangements ( #7273 )
...
* refactor(theme-classic): enforce collocated JSX and module CSS
* refactor
2022-04-30 12:29:54 +08:00
Sébastien Lorber
2a0f105434
refactor(theme-classic): DocPage theme refactors polish ( #7268 )
2022-04-29 19:34:40 +02:00
Joshua Chen
41f53718c1
fix(theme-common): allow details to not provide a summary ( #7267 )
2022-04-29 19:33:28 +02:00
Sébastien Lorber
3bef88232f
refactor: extract useSkipToContent() ( #7269 )
2022-04-29 19:16:02 +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
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
Joshua Chen
fa1ce230ea
refactor: capitalize comments ( #7188 )
...
* refactor: capitalize comments
* revert...
2022-04-17 16:39:11 +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
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
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
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
9145ae88cc
chore: disable string escaping in snapshots ( #7131 )
2022-04-08 11:23:19 +08:00
Joshua Chen
1156be3f20
refactor(content-{blog,docs}): unify handling of tags ( #7117 )
2022-04-07 15:58:21 +02:00
Joshua Chen
e610a4ac00
test: improve test coverage ( #7113 )
2022-04-05 14:09:19 +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
13e7de853e
refactor(theme-classic): extract doc-related navbar items' logic to theme-common ( #7067 )
2022-03-30 14:50:04 +08:00
Joshua Chen
2e79597f83
feat(theme-classic): show blog sidebar on mobile ( #7012 )
...
* feat(theme-classic): show blog sidebar on mobile
* fix
* oops
* docs
* add a little margin
* Update display.tsx
* Update content.tsx
* reformat
2022-03-30 09:15:54 +08:00
Joshua Chen
4e45e14fdd
fix(theme-common): use native scrolling when smooth behavior set in CSS ( #7057 )
...
* fix(theme-common): use native scrolling when smooth behavior set in CSS
* fix
* fix again
* fix again
2022-03-29 18:02:09 +08:00
Joshua Chen
77662260f8
refactor(core): refactor routes generation logic ( #7054 )
...
* refactor(core): refactor routes generation logic
* fixes
2022-03-29 16:37:29 +08:00
duanwilliam
b5fc9a6b6d
fix(theme): add bash style to Markdown comment styles ( #7049 )
...
* docs: fix code block line highlighting in md syntax highlighting
* properly fix
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-29 09:23:03 +08:00
Joshua Chen
755b03861c
fix(theme): only parse HTML- and JSX-style comments in MD code ( #7033 )
2022-03-28 09:57:04 +08:00
Joshua Chen
cb03764ce5
refactor(theme): extract plumbing code of BTT button into theme-common ( #7021 )
...
* refactor(theme): extract plumbing code of BTT button into theme-common
* oops
2022-03-26 21:05:48 +08:00