Sébastien Lorber
18b47fdfc1
refactor(docs): extract loadVersion()
without changing the behavior ( #11230 )
...
* refactor, extract loadVersion() without changing behavior
* Add minimal test case for loadVersion()
* Add minimal test case for loadVersion()
* more refactor, rename index.ts to version.ts
* fix tests
* empty
2025-06-02 18:44:07 +02:00
Sébastien Lorber
ffa7525ff9
fix(bundler): fix docusaurus start
using concatenateModules: true
( #11222 )
2025-05-30 21:07:11 +02:00
Sébastien Lorber
1c454a9430
fix(types): fix future flags public types ( #11221 )
2025-05-30 19:22:56 +02:00
Weslley Araújo
dd6396dd39
fix: include Arc to supported Chromium Browsers ( #11217 )
2025-05-30 09:52:22 +02:00
Sébastien Lorber
264774a550
perf: avoid duplicated git log
calls in loadContent()
and postBuild()
for untracked Git files ( #11211 )
...
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2025-05-28 14:03:10 +02:00
Sébastien Lorber
68aa3c876b
fix(core): fix docusaurus start
error for macOS users with no Chromium-based browser ( #11205 )
2025-05-27 17:13:32 +02:00
Sébastien Lorber
b126e643d1
chore: release Docusaurus 3.8 ( #11200 )
...
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2025-05-27 12:21:15 +02:00
Noritaka Kobayashi
8958c11c58
chore: fix typos in comment-out ( #11197 )
2025-05-27 10:38:35 +02:00
Ben McCann
ba18a8b8b9
chore: simplify construction of test paths ( #11196 )
2025-05-26 13:29:23 +02:00
Noritaka Kobayashi
5d858f5e66
refactor: remove unnecessary undefined & use optional chain ( #11192 )
2025-05-26 13:07:56 +02:00
Sébastien Lorber
abd04a2b71
feat(theme): new CSS cascade layers plugin + built-in v4.useCssCascadeLayers
future flag ( #11142 )
...
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2025-05-22 19:55:02 +02:00
Shreedhar Bhat
9f6360ba82
refactor(content-blog): replace reading-time
with Intl.Segmenter
API ( #11138 )
...
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2025-05-15 13:22:00 +02:00
Sébastien Lorber
f3e3f54e5c
fix(mdx-loader): remove opt-in for mdx dependency file ( #11179 )
2025-05-14 20:48:05 +02:00
Sébastien Lorber
e839b67034
perf(core): disable Rspack parallelCodeSplitting
temporarily ( #11178 )
...
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2025-05-14 17:01:54 +02:00
Sébastien Lorber
d6be84a1e6
perf(core): fix bad value for mergeDuplicateChunks (typo) ( #11177 )
2025-05-13 14:38:03 +02:00
Sébastien Lorber
2371ca7b74
perf(bundler): fine-tuning of Webpack/Rspack optimizations ( #11176 )
2025-05-13 13:48:11 +02:00
Sébastien Lorber
dee76f8042
perf(core): add default for DOCUSAURUS_SSG_WORKER_THREAD_RECYCLER_MAX_MEMORY ( #11170 )
2025-05-09 19:26:15 +02:00
Sébastien Lorber
4af8982278
chore: add Node 24 to CI + fix deprecation warnings ( #11168 )
2025-05-09 18:29:07 +02:00
Sébastien Lorber
8061f2267b
feat(core): expose opt-in env variable for SSG thread recycling ( #11166 )
2025-05-09 17:40:58 +02:00
Sébastien Lorber
b7cd1061fd
perf(utils): implement git command queue ( #11163 )
...
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2025-05-09 16:31:05 +02:00
Sébastien Lorber
33811e38fe
perf(core): optimize SSG collected data memory and worker thread communication ( #11162 )
2025-05-09 13:34:02 +02:00
Arien Shibani
53fa0ecb1f
fix(create-docusaurus): Improve init template README, fix headings and remove $ in bash code blocks ( #11157 )
2025-05-08 18:10:21 +02:00
Sébastien Lorber
e905b93c90
feat(core): add internal flag to skip bundling ( #11156 )
2025-05-06 16:30:35 +02:00
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
Jack Howard
fef6c4c8cb
fix(theme): improve color contrast of live code block header ( #11120 )
...
fix: Ensure accessibility of live code block contrast with background update
2025-05-02 13:52:38 -04:00
Shreedhar Bhat
fadb6d2607
test(reading-time): Unit tests for calculating reading time ( #11116 )
2025-04-30 12:47:51 +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
5b944d6b64
feat(pages): Support frontMatter.slug
like docs and blog plugins ( #11088 )
2025-04-11 14:44:19 +02:00
Sébastien Lorber
72b8621515
fix(theme): add missing rel="tag"
attribute for docs/blog tags ( #11085 )
...
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2025-04-11 11:44:12 +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
df5f465605
chore: upgrade Rspack 1.3.3 ( #11073 )
...
upgrade Rspack
2025-04-08 14:24:21 +02:00
Sébastien Lorber
67248f8e66
perf(core): remove bundler optimization.removeAvailableModules
( #11072 )
...
remove removeAvailableModules
2025-04-08 11:53:45 +02:00
Sébastien Lorber
abdd0c7995
fix(blog): fix blog Atom feed item url / XSL bug ( #11068 )
...
Fix blog Atom feed XSL
2025-04-07 19:10:01 +02:00
Sébastien Lorber
979ae084a7
feat(core): enable Rspack parallelCodeSplitting
( #11067 )
...
re-enable parallelCodeSplitting
2025-04-07 18:55:27 +02:00
Sébastien Lorber
6215983cdd
chore: upgrade mermaid, fix diagram labels bug ( #11066 )
...
* fix mermaid bug
* refactor: apply lint autofix
---------
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2025-04-07 18:30:01 +02:00
Sébastien Lorber
b7ba0b54fb
chore: upgrade image-size deps to v2 ( #11065 )
...
* upgrade image-size to v2
* fix resizeImage script
* fix tests
2025-04-07 18:29:15 +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
Sébastien Lorber
16e3002911
fix(theme): navbar mobile sidebar should allow clicking dropdown parent link ( #11053 )
...
* try to repro + initial fix
* Use HTML button
* extract useItemCollapsible()
* Split DropdownNavbarItem into Mobile/Desktop subcomponents
* Add aria labels to button
* cleanup prop types
* aria label
* add translations
* cleanup types
* Split DefaultNavbarItem into Mobile/Desktop subcomponents
* revert change
* type fix
2025-04-03 18:40:45 +02:00
Sébastien Lorber
a05629eeb5
chore: use rspack 1.3.0 ( #11039 )
...
* upgrade rspack
* disable parallelCodeSplitting temporarily
2025-04-01 15:33:09 +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
dae29a2782
refactor(core): remove clean-webpack-plugin ( #11037 )
...
* remove clean-webpack-plugin
* refactor: apply lint autofix
* remove clean-webpack-plugin
---------
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2025-03-27 18:44:48 +01:00
Sébastien Lorber
37d8844506
fix(cli): fix CLI write-translation bug ( #11027 )
...
* fix write-translation bug
* fix write-translation bug
2025-03-27 12:22:44 +01:00
Tatsunori Uchino
8881fd1a59
fix(theme-translation): add missing Japanese translation for System Mode ( #11030 )
2025-03-27 11:58:10 +01:00
Sébastien Lorber
e64e0e7c96
fix(ideal-image): fix waypoint initial scroll bug ( #11026 )
...
fiw waypoint initial scroll bug
2025-03-24 15:31:37 +01:00
Sébastien Lorber
43fdb825e8
fix(ideal-image): Internalize react-waypoint
dependency, fix React 19 compatibility ( #11014 )
...
* copy waypoint, remove logs
* remove propTypes
* remove debug
* remove scrollableAncestor prop
* remove onPositionChange
* remove horizontal prop
* remove fireOnRapidScroll
* remove useless render code
* remove ensureRefIsUsedByChild
* remove children prop
* inline constants
* remove consolidated-events
* copy getCurrentPosition
* remove computeOffsetPixels
* extract findScrollableAncestor
* extract getBounds
* remove hasWindow
* remove onNextTick()
* fixes
* make it work, replace waypoint
* slim down
* slim down
* slim down
* use TypeScript
* slim down
* slim down
* revert
2025-03-20 12:33:27 +01:00
Sébastien Lorber
fcee060f40
refactor(ideal-image-plugin): internalize legacy component code ( #11010 )
...
* almost working
* refactor: apply lint autofix
* cspell ignore
* refactor: apply lint autofix
* type fixes
---------
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2025-03-19 18:21:09 +01:00
Sébastien Lorber
502b9007be
perf(core): Optimize docusaurus start/serve
, fix openBrowser()
perf issue on macOS ( #11007 )
...
Optimize openBrowser() util
2025-03-19 13:18:32 +01:00