[Docs] Make docs build faster - #9982
Merged
weronikaolejniczak merged 4 commits intoSep 2, 2026
Merged
Conversation
weronikaolejniczak
force-pushed
the
chore/make-docs-build-faster
branch
from
September 1, 2026 09:33
04530c8 to
5897fdb
Compare
weronikaolejniczak
marked this pull request as ready for review
September 1, 2026 09:44
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
It changes core docs build tooling/CI execution characteristics (experimental Faster/Rspack/SWC + larger agents) and should be validated by a human reviewer in CI and preview deployments.
Pull request overview
Speeds up the EUI docs deploy pipeline by enabling Docusaurus “Faster” (Rspack/SWC-based build path), increasing CI agent resources, and reducing overhead in the docgen generation step.
Changes:
- Enable
future.experimental_fasterin Docusaurus and configure SWC to use Emotion’s JSX runtime (importSource: '@emotion/react'). - Add
@docusaurus/fasterdependency (and corresponding lockfile updates). - Reuse a single
react-docgen-typescriptparser instance across files and increase Buildkite deploy-docs agent size.
File summaries
| File | Description |
|---|---|
| yarn.lock | Adds lock entries for @docusaurus/faster and its transitive deps (Rspack/SWC/etc.). |
| packages/website/package.json | Adds @docusaurus/faster@3.7.0 to website dependencies. |
| packages/website/docusaurus.config.ts | Enables Docusaurus Faster and customizes SWC loader options for Emotion’s automatic runtime. |
| packages/eui-docgen/src/main.ts | Reuses a docgen parser across files and adjusts per-file state handling. |
| .buildkite/pipelines/deploy_docs.yml | Upgrades deploy-docs agent machine type to n2d-standard-8 for faster builds. |
Review details
- Files reviewed: 4/5 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
weronikaolejniczak
force-pushed
the
chore/make-docs-build-faster
branch
from
September 1, 2026 14:13
89a40d6 to
0d21aa9
Compare
mgadewoll
approved these changes
Sep 2, 2026
mgadewoll
left a comment
Contributor
There was a problem hiding this comment.
🟢 Changes are LGTM, left one comment. Great update to speed up the build! 🎉
💚 Build Succeeded
History
|
weronikaolejniczak
enabled auto-merge (squash)
September 2, 2026 13:14
💚 Build Succeeded
History
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes https://github.com/elastic/eui-private/issues/762
What:
babel.config.js, so we have to configure it to compile JSX with Emotion’s runtime (importSource: '@emotion/react') instead of the default React runtime.react-docgen-typescriptparser across files instead of creating one per file (~1394x). Previously it was in a loop.Local timings (Docusaurus build only, workspaces already built):
Benchmark
@elastic/euicompile + other workspacesQA instructions for reviewer