Commit Graph

624 Commits

Author SHA1 Message Date
Sébastien Lorber 5d162a4654 fix(test): fix bad test import (#12200) 2026-06-25 14:16:49 +02:00
Sébastien Lorber 7434ba5057 feat(faster): upgrade @rspack/core to v2 (#12187)
Co-authored-by: smeng9 <shaoyu@life-foundry.com>
2026-06-19 15:22:28 +02:00
Sébastien Lorber 545cff6d84 refactor: replace escape-string-regexp with native RegExp.escape (#12150)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 16:39:44 +02:00
Sébastien Lorber 96b32dd2e5 refactor(monorepo): migrate to pnpm 11 (#12109) 2026-06-04 19:29:20 +02:00
Sébastien Lorber e0926d345c fix(test): fix docs versioning CLI emitting in fixtures (#12057) 2026-05-22 13:52:49 +02:00
Sébastien Lorber 35c81a1979 feat(core): upgrade Jiti to v2 (#12045) 2026-05-21 13:41:40 +02:00
Sébastien Lorber 9759b8ee7e refactor(test): use Explicit Resource Management for mocks/spys (#12020) 2026-05-15 20:22:55 +02:00
Sébastien Lorber 7518645e58 chore(monorepo): upgrade monorepo to ESLint 9 (#12024)
* ESLint 10

* remove backup

* Fix header

* downgrade to ESLint 9 - fix some errors

* fix more errors

* fix more errors

* fix more errors

* fix more errors

* fix more errors

* fix more errors

* fix more errors

* all eslint errors fixed!

* refactor: apply lint autofix

* snapshot

* fix ESLint tests

* snapshot

* lockfile

* fix eslint plugin docs types

* syncpack ignore

* restore eslint-plugin-eslint-plugin, upgrade it + fix new plugin lint errors

---------

Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2026-05-15 20:08:46 +02:00
Sébastien Lorber 057ab88fe0 refactor(test): use explicit Vitest imports, disable globals (#12019) 2026-05-15 10:01:02 +02:00
Sébastien Lorber be553e029e chore: migration from Jest to Vitest (#12010) 2026-05-14 17:34:35 +02:00
Yangshun Tay 190ef6fa5d chore: migrate from Prettier to oxfmt for code formatting (#11824)
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2026-05-07 13:50:57 +02:00
Sébastien Lorber 3f10bdc930 chore: bump package.json versions, mostly for canary release versioning (#11980)
* v4.0.0

* bump package.json versions, mostly for canary release versioning

* use triple installs for supply chain workflow

* Revert "v4.0.0"

This reverts commit 8303548033.

* v3.10.1

* revert versioning docs
2026-04-30 17:09:55 +02:00
Sébastien Lorber 49e10d2cae chore: update various dependencies (#11975) 2026-04-30 10:12:47 +02:00
Sébastien Lorber 8a13a84408 chore: add syncpack to monorepo, align dependency semver ranges, add to CI/lints (#11926) 2026-04-10 17:07:08 +02:00
Sébastien Lorber ae53482b19 break: upgrade webpack/bundler related dependencies (#11924) 2026-04-09 16:01:18 +02:00
Sébastien Lorber 6d192730e9 break: upgrade to React 19.2+ (#11916) 2026-04-07 19:44:26 +02:00
Sébastien Lorber 3bfefa2117 break: update all packages to Node 24.14 update node engine in packages (#11914) 2026-04-07 18:39:36 +02:00
Sébastien Lorber 4a0273fab2 fix(create-docusaurus): fix support for TypeScript 6.0 + fix our CI (#11843) 2026-03-26 15:34:39 +01:00
Sébastien Lorber 1451780784 chore(ci): fixes for the npm trusted publishing workflow (#11823) 2026-03-20 12:27:43 +01:00
Sébastien Lorber 5dff744ac6 chore(ci): add Trusted Publishing release workflow through dispatch action (#11819)
* add base publish workflow

* add publish workflow

* remove useless workflow job

* minor fixes

* add -yes + useful todo

* fix cmd

* chore: upgrade lerna

* v3.9.2-alpha.0

* Revert "chore: upgrade lerna"

This reverts commit d198b49194.

* do not commit the lerna upgrade

* v3.9.2-alpha.1

---------

Co-authored-by: Docusaurus <github@docusaurus.io>
2026-03-20 11:13:49 +01:00
Sébastien Lorber 29c3b5ce11 feat(core): Docusaurus Faster is stable + v4 future flag turns it on by default (#11802)
* 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>
2026-03-13 17:17:28 +01:00
Denny Morán 9af9f9c82d fix(content-docs): translate generated-index category titles in pagination links (#11794)
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2026-03-11 19:11:48 +01:00
Artem Lytkin a8881add48 fix(content-docs): use category key for generated-index translation lookup (#11743)
* fix(content-docs): use category key for generated-index translation lookup

When a sidebar category has a custom `key` attribute, the translation
system generates keys using `category.key ?? category.label`. However,
the read phase (`transformSidebarCategoryLink`) was using
`category.label` directly for generated-index title and description
lookups, causing a key mismatch and silent translation failure.

This aligns the generated-index lookup with the existing pattern
already used for category labels, link labels, and doc labels.

Fixes #11738

* chore: trigger CLA bot

* simplify test

* simplify test

* increase test timeout on windows

---------

Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2026-02-19 15:11:02 +01:00
Sébastien Lorber bbc7269922 chore(monorepo): upgrade React packages to v19 (#11698)
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2026-01-30 17:57:08 +01:00
Sébastien Lorber 81248ee550 chore(monorepo): upgrade to Jest 30 (#11702)
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2026-01-30 15:09:37 +01:00
Cesar Garcia 7f5d6122d2 fix(docs): breadcrumb APIs only return category/docs items, ignoring links (#11616)
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2025-12-22 17:04:14 +01:00
Sébastien Lorber acc66c14b0 feat(core): New siteConfig future.experimental_vcs API + future.experimental_faster.gitEagerVcs flag (#11512)
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2025-11-14 18:15:45 +01:00
Sébastien Lorber bca9ce746f chore: release v3.9.2 (#11491) 2025-10-17 17:15:09 +02:00
Sébastien Lorber c8fc3311f1 fix(docs): add support for missing sidebar_key front matter attribute (#11490) 2025-10-17 12:34:08 +02:00
Sébastien Lorber c3e5db1dc3 chore: release v3.9.1 (#11436) 2025-09-26 15:31:09 +02:00
Sébastien Lorber c24d7dc86a chore: release v3.9 (#11419)
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2025-09-25 17:56:37 +02:00
Sébastien Lorber 1c484e1d59 chore: drop support for Node 18, that reached End-of-Life (#11408) 2025-09-12 18:48:12 +02:00
Sébastien Lorber 1808945c1f feat(core): add i18n.localeConfigs.translate + skip translation process if i18n/<locale> dir doesn't exist (#11304) 2025-07-07 14:55:46 +02:00
Sébastien Lorber fad80c4421 test(docs): fix docs tests issues (#11307) 2025-07-04 15:14:17 +02:00
Sébastien Lorber da08536816 feat(docs): sidebar item key attribute - fix docs translations key conflicts (#11228) 2025-07-03 13:40:00 +02:00
Sébastien Lorber 96c38d5fdd feat(core): Add siteConfig.markdown.hooks, deprecate siteConfig.onBrokenMarkdownLinks (#11283) 2025-06-24 15:51:33 +02:00
Sébastien Lorber 1cbc0118b0 fix(docs): Fix empty sidebar item category className lost when post-processed to a doc (#11281) 2025-06-19 19:04:28 +02:00
Sébastien Lorber b54103be5d fix(docs): prevent docs ids conflicts within a version (#11251) 2025-06-06 20:12:44 +02:00
Sébastien Lorber f811e2dbf4 chore: release 3.8.1 (#11249) 2025-06-06 17:45:58 +02:00
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 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 5d858f5e66 refactor: remove unnecessary undefined & use optional chain (#11192) 2025-05-26 13:07:56 +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 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
ozaki 7f4a37949e refactor: replace unmaintained shelljs dependency by execa (#10358)
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2025-02-28 14:31:01 +01:00
Sébastien Lorber e641568e7f feat(core): Docusaurus Faster - Rspack Persistent Cache (#10931) 2025-02-21 11:39:48 +01:00
Sébastien Lorber af272bdefa fix(docs): fix mdx loader cache invalidation bug on versions changes (#10934) 2025-02-14 17:46:41 +01:00
Sébastien Lorber a72a06ecb1 fix(plugins): add missing validateOptions types (#10929)
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2025-02-13 15:29:51 +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
jkboxomine 3b72bb43db fix(docs): versioning CLI should copy localized translation file current.json to version-<v>.json (#10875)
Co-authored-by: Sungchang Ha <bryan98@naver.com>
2025-01-31 12:50:13 +01:00