Sébastien Lorber
59e9eb20fa
fix(theme): restore former code block theme-common internal APIs ( #11153 )
...
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2025-05-06 11:34:19 +02:00
Sébastien Lorber
730ce485ba
feat(theme): make it possible to provide your own page title formatter ( #11090 )
2025-04-11 19:16:17 +02:00
Sébastien Lorber
29d19a6884
refactor(live-codeblock): refactor live code block theme components ( #11077 )
2025-04-10 15:55:02 +02:00
Sébastien Lorber
31b279fea6
refactor(theme): introduce CodeBlockContextProvider + split into smaller components ( #11062 )
...
* introduce CodeBlockContextProvider
* refactor: apply lint autofix
* add comment
* move wordWrap to context
* Refactor button components
* remove console logs
* Extract more code block components
* Extract CodeBlockLineToken subcomponent
* add TODOs
---------
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2025-04-04 20:11:40 +02:00
Sébastien Lorber
d28210d35b
refactor(theme): CodeBlock, centralize metadata parsing + refactor theme component ( #11059 )
...
* fix import duplicated
* centralize parsing of code block metadata
* split logic into many subcomponents
* extract getCodeBlockClassName
* fix duplicate useCodeWordWrap() call
* simplify JSX
* move ensureLanguageClassName logic to theme-common
* fix line highlighting bug
* rename tokens to lines
* Extract Pre/Code subcomponents
* Add tests for metadata language
* Add tests for metadata className
* Add tests for metadata title
* Add tests for metadata line highlighting
* Add tests for metadata lineNumbersStart
2025-04-04 18:15:34 +02:00
Sébastien Lorber
f6bdc3123b
refactor(theme): refactor CodeBlock parseLines logic + use inline snapshots to ease review ( #11058 )
...
* refactor codeblock parseLines logic + use inline snapshots
* refactor: apply lint autofix
* eslint
---------
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2025-04-04 13:22:51 +02:00
程序员小墨
3176a2ccba
fix(theme): Fix code block magic comments with CRLF line breaks bug ( #11046 )
...
* fix: with CRLF line breaks, an extra empty line was rendered with // highlight-end at end of code blocks
See: #11036
* Add unit tests
---------
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2025-04-01 15:14:02 +02:00
Daniel Kuschny
c0f3755d51
test(theme-common): Add tests for getLineNumbersStart ( #11017 )
2025-03-28 17:20:50 +01:00
Sébastien Lorber
cb69b40c86
fix(theme): mobile drawer history blocker should be rendered conditionally (workaround) ( #10989 )
...
Add history blocker workaround
2025-03-14 18:22:00 +01:00
Sébastien Lorber
7cf94c03a4
feat(theme): Allow resetting colorMode to System/OS value ( #10987 )
...
* make it work
* fix
* Try to fix accessibility issues
* add translations
* rename 'auto' to 'system'
* refactor: apply lint autofix
* rename 'auto' to 'system'
* remove title prop
* typo
* use shorter title
* refactor: apply lint autofix
* document useColorMode tradeoffs + data-attribute variables
---------
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
Co-authored-by: nasso
Co-authored-by: OzakIOne
2025-03-14 13:45:25 +01:00
Sébastien Lorber
15b0ef6d13
chore: add eslint-plugin-react-compiler
( #10969 )
...
* install ESLint plugin
* fix eslint CodeBlockLine error
* eslint
* eslint
* eslint
* refactor: apply lint autofix
* empty
---------
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2025-03-07 18:04:40 +01:00
Sébastien Lorber
396deedba4
fix(theme): fix useColorMode().colorMode
leading to React hydration mismatches ( #10954 )
2025-02-27 16:32:28 +01:00
Sébastien Lorber
ca035d8562
feat(theme): add theme layout stable CSS classes ( #10945 )
2025-02-21 19:03:49 +01:00
John Reilly
45065e8d2b
fix(seo): docs breadcrumb structured data should use JSON-LD and filter unliked categories ( #10888 )
...
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2025-02-07 19:03:10 +01:00
Sébastien Lorber
5331de2962
fix(theme): collapse doc sidebar category on label click if active ( #10886 )
2025-02-07 16:18:36 +01:00
Sébastien Lorber
e59355be76
feat(theme): code block showLineNumbers=start metastring ( #10846 )
2025-01-16 17:28:04 +01:00
Sébastien Lorber
71d682c53b
chore: release Docusaurus 3.7.0 ( #10812 )
2025-01-03 18:11:21 +01:00
Sébastien Lorber
37184e581d
fix(theme): Footer Column/Link should merge provided className ( #10796 )
2024-12-26 12:46:43 +01:00
Sébastien Lorber
0f29a37b3a
feat: Add React 19 support to Docusaurus v3 ( #10763 )
2024-12-24 14:43:03 +01:00
Sébastien Lorber
f196a1eb29
fix(core): fix React hydration errors, change html minifier settings ( #10786 )
2024-12-23 18:45:31 +01:00
William Black
2565601af3
fix(theme-common): code block magic comments should support SQL block comments ( #10782 )
2024-12-20 17:16:59 +01:00
Sébastien Lorber
f9825af43e
refactor: prepare types for React 19 ( #10746 )
2024-12-06 18:03:04 +01:00
Sébastien Lorber
750edc78ff
refactor(theme-common): change storageUtils useSyncExternalCode getSnapshot workaround ( #10728 )
2024-11-29 16:50:10 +01:00
Sébastien Lorber
fd43036ab8
chore: release Docusaurus 3.6.3 ( #10713 )
2024-11-22 17:13:56 +01:00
Sébastien Lorber
90e85e83a5
chore: release Docusaurus 3.6.2 ( #10698 )
2024-11-19 19:07:06 +01:00
Sébastien Lorber
f1272788a4
chore: release Docusaurus 3.6.1 ( #10659 )
2024-11-08 18:47:43 +01:00
Sébastien Lorber
ed2cdf391f
chore: release Docusaurus v3.6 ( #10633 )
2024-11-04 12:03:54 +01:00
Sébastien Lorber
95e2d469e3
chore: Rename Twitter links/labels to X ( #10509 )
2024-09-19 11:30:57 +02:00
ozaki
aa65f39d8c
fix(blog): authors count incorrectly rendered ( #10431 )
...
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-08-23 14:07:49 +02:00
Sébastien Lorber
655ce94c0f
chore: release 3.5.2 ( #10400 )
2024-08-13 14:47:19 +02:00
Christian Stangerup
a1edf51003
fix(translations): change casing of some en labels ( #10394 )
...
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-08-13 13:59:05 +02:00
Sébastien Lorber
221ced7242
fix(theme-common): restore useContextualSearchFilters public API for retrocompatibility ( #10397 )
2024-08-13 13:30:45 +02:00
Sébastien Lorber
bde4414614
chore: release v3.5.1 ( #10385 )
2024-08-09 23:42:06 +02:00
Sébastien Lorber
daa6b87f24
chore: release Docusaurus v3.5 ( #10379 )
2024-08-09 17:14:21 +02:00
ozaki
95ab9f8ee4
feat(theme): show unlisted/draft banners in dev mode ( #10376 )
...
Co-authored-by: OzakIOne <OzakIOne@users.noreply.github.com>
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-08-08 20:48:42 +02:00
ozaki
f356e29938
feat(blog): authors page ( #10216 )
...
Co-authored-by: OzakIOne <OzakIOne@users.noreply.github.com>
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
Co-authored-by: slorber <slorber@users.noreply.github.com>
2024-08-01 17:30:49 +02:00
Sébastien Lorber
026a317fc4
refactor(docs): theme-common shouldn't depend on docs content ( #10316 )
2024-07-23 10:50:07 +02:00
Sébastien Lorber
61d6858864
refactor(blog): theme-common shouldn't depend on blog content plugins ( #10313 )
2024-07-19 15:55:35 +02:00
Sébastien Lorber
6dd9a5076e
chore: simplify TypeScript configs, use TS 5.5 configDir placeholder ( #10256 )
2024-07-01 17:34:40 +02:00
Alice Zhao
aab1f4868b
feat(blog): group sidebar items by year (themeConfig.blog.sidebar.groupByYear
) ( #10252 )
...
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-06-28 16:59:35 +02:00
Sébastien Lorber
dbdd4dfb2e
chore: release Docusaurus v3.4 ( #10186 )
2024-05-31 19:09:06 +02:00
Sébastien Lorber
ef627f813b
fix(theme): fix announcement bar layout shift due to missing storage key namespace ( #10144 )
2024-05-16 18:14:34 +02:00
Sébastien Lorber
620e46350a
feat(core): site storage config options (experimental) ( #10121 )
2024-05-10 14:41:51 +02:00
Sébastien Lorber
c125f7a272
chore: release Docusaurus 3.3.0 + 3.3.1 + 3.3.2 ( #10101 )
2024-05-03 17:14:41 +02:00
Sébastien Lorber
f88da6c66d
refactor: extract base TS client config + upgrade TS + refactor TS setup ( #10065 )
2024-04-19 21:03:32 +02:00
ozaki
d1590e37ac
feat(pages): add LastUpdateAuthor & LastUpdateTime & editUrl ( #10032 )
...
Co-authored-by: OzakIOne <OzakIOne@users.noreply.github.com>
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-04-16 11:23:00 +02:00
Sébastien Lorber
964a4e458e
refactor(website): refactor showcase components ( #10023 )
2024-04-10 10:42:27 +02:00
Sébastien Lorber
e012e03158
chore: release Docusaurus 3.2.1 ( #10016 )
2024-04-04 20:17:34 +02:00
Sébastien Lorber
debfc87d34
chore: release Docusaurus v3.2.0 ( #10000 )
2024-03-29 17:51:27 +01:00
Sébastien Lorber
465cf4d82c
refactor(docs,blog): last update timestamp should be in milliseconds instead of seconds ( #9963 )
2024-03-19 09:51:27 +01:00