Skip to content

Docusaurus 3.10 upgrade broke the docs build #76

@mnencia

Description

@mnencia

The Continuous Delivery workflow has been failing on every push to main since #71 bumped Docusaurus to 3.10.0 (see run https://github.com/cloudnative-pg/docs/actions/runs/24657495260).

Two things broke at once.

First, 3.10 now requires @docusaurus/faster as an explicit dependency whenever future.v4: true is set, instead of pulling it in transitively. The build stops with To enable Docusaurus Faster options, your site must add the @docusaurus/faster package as a dependency.

Second, future.v4: true also flips mdx1CompatDisabledByDefault to true, so HTML comments in .md files are no longer parsed. The markdown block we already have in website/docusaurus.config.ts was supposed to keep them enabled, but it is misplaced (nested inside themeConfig) and uses invalid keys (allowComments, allowHtml instead of comments, admonitions, headingIds), so it has been a silent no-op. It only worked on 3.9 because the defaults happened to be right.

Fix: add @docusaurus/faster 3.10.0 to website/package.json, and move the markdown block to the top level of Config with the correct mdx1Compat keys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions