Convert the docs Docusaurus config files to TypeScript to match the
modern Docusaurus scaffold and give editors correct per-file types:
- docusaurus.config.js -> .ts (typed Config / Preset options, ESM)
- sidebars.js -> .ts (typed SidebarsConfig)
- remark-design-system-links.js -> .ts (typed Transformer<Root>)
- babel.config.js: ESM export, @docusaurus/babel preset (3.x split)
- add docs/tsconfig.json extending @docusaurus/tsconfig (editor-only,
not used by docusaurus build)
- add @docusaurus/babel, @docusaurus/tsconfig, @types/mdast deps
Also adds "docs" to the root jsconfig.json excludes, since docs is a
standalone Docusaurus project that now owns its own config.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
* chore(deps): upgrade typedoc to 0.28.19 and related plugins
Bumps typedoc 0.25.10 -> 0.28.19 in both docs and packages/core/types,
along with compatible plugin versions (typedoc-plugin-markdown 4.11.0,
typedoc-github-wiki-theme 2.1.0, docusaurus-plugin-typedoc 1.4.2) and
@cmfcmf/docusaurus-search-local 2.0.1.
Config updates required by breaking changes:
- packages/core/types/typedoc.json: drop "theme": "github-wiki" (v2 of
the theme no longer registers a named theme; it is loaded via plugin
hook only).
- docs/docusaurus.config.js: remove entryDocument: null (renamed to
entryFileName in plugin-markdown v4 and no longer accepts null); add
readme: 'none' to avoid injecting the package README (which contains
non-MDX-compatible <br> tags) into the generated entry page; change
out from 'exports' to 'docs/exports' as docusaurus-plugin-typedoc v1
no longer prefixes the path with docsPath.