* feat(core): promote `future.experimental_faster` to `future.faster` + add `future.v4.fasterByDefault` flag
Stabilize the Docusaurus Faster config by removing the `experimental_` prefix.
Add a `fasterByDefault` v4 future flag that enables all faster features by default
when `v4: true` is used, allowing granular overrides. Init templates now include
`@docusaurus/faster` as a dependency since they use `v4: true`.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: apply lint autofix
* fix(docs): remove broken #faster anchor link in fasterByDefault docs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(ci): add Yarn PnP packageExtension for @docusaurus/bundler → @docusaurus/faster
Yarn PnP strict mode doesn't resolve optional dependencies automatically.
Add a packageExtension so @docusaurus/bundler can resolve @docusaurus/faster
in the e2e Yarn Berry tests.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(core): declare @docusaurus/faster as optional peer dep instead of CI packageExtension
Revert the packageExtensions workaround in the e2e CI workflow and instead
declare @docusaurus/faster as an optional peer dependency of @docusaurus/core,
matching the existing pattern in @docusaurus/bundler.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: retrigger CI
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* empty
* add randomness to e2e test script version, to avoid using cached versions when trying to run this locally
* Rspack + PnP doesn't work, so add a warning in this case + fallback to Webpack
This should fix the e2e pnp workflows
* refactor: apply lint autofix
* typo
* typo
* revert wrong change
* also use slower minimizers
* comment
* restore snapshots
* ensure faster key resolution is always exhaustive, no hardcoding of keys
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
* feat(theme-live-codeblock): add reset button to live code playground
Adds a reset button to live code playgrounds that restores edited code
to its original state. The button appears in the playground header
alongside the Live Editor label.
Closes#10711
* chore: update theme translations for reset button
* add mising LiveCodeBlockThemeConfig type import to website
* some fixes
* change type order
* remove useless dogfood page
* rename i18n key
* extract context to a client api export
* fix prop types import
* restore former comment
* refactor a bit, extract playground position prop
* expose position prop + dogfood
* wire position prop
* fix type issues
* subcomponents
* restore some former CSS
* fix React playground examples
* restore comment
---------
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
* docs(i18n): fix cp commands causing duplicate files in some shells
The i18n tutorial and git workflow docs used `cp -r dir/**` which
causes duplicate files in shells like Fish where the glob expands
before the -r flag processes recursively.
Fix by:
- Using `cp -r dir/.` for recursive directory copies
- Removing -r and using single `*` for file pattern copies
Fixes#11158
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* docs(i18n): use recursive cp for pages to include subfolders
Use `cp -r src/pages/. dest` instead of separate glob commands,
matching the pattern already used for docs and blog copies.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* docs(i18n): copy only md/mdx files for pages i18n
Use find to recursively copy only .md and .mdx files from src/pages,
preserving directory structure, instead of copying all files.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Update website/docs/i18n/i18n-git.mdx
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>