Skip to content

Commit c296914

Browse files
danbarrclaude
andauthored
Enable Docusaurus Faster on Docusaurus 3.10 (#699)
* Enable Docusaurus Faster and v4 features Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com> * Fix HTML minifier diagnostic on enterprise page Replace raw <p> tag with <div> to avoid MDX double-wrapping the content in nested <p> elements, which is invalid HTML flagged by the new Docusaurus 3.10 HTML minifier. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com> Co-authored-by: Dan Barr <6922515+danbarr@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a3642be commit c296914

4 files changed

Lines changed: 1011 additions & 5 deletions

File tree

docs/toolhive/enterprise.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ vendor lock-in.
3131

3232
---
3333

34-
<p className='text--center'>
35-
Running in production at major financial services, technology, and software
36-
companies, <br />
37-
including Fortune 500 and Global 2000 enterprises
38-
</p>
34+
<div className='text--center'>
35+
36+
Running in production at major financial services, technology, and software
37+
companies, including Fortune 500 and Global 2000 enterprises
38+
39+
</div>
3940

4041
---
4142

docusaurus.config.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,23 @@ const config: Config = {
140140
},
141141
},
142142

143+
future: {
144+
v4: {
145+
removeLegacyPostBuildHeadAttribute: true,
146+
useCssCascadeLayers: true,
147+
},
148+
faster: {
149+
swcJsLoader: false, // Disabled due to https://github.com/rohit-gohri/redocusaurus/issues/388
150+
swcJsMinimizer: true,
151+
swcHtmlMinimizer: true,
152+
lightningCssMinimizer: true,
153+
rspackBundler: true,
154+
rspackPersistentCache: true,
155+
ssgWorkerThreads: true,
156+
mdxCrossCompilerCache: true,
157+
},
158+
},
159+
143160
themes: ['@docusaurus/theme-mermaid', 'docusaurus-json-schema-plugin'],
144161

145162
presets: [

0 commit comments

Comments
 (0)