Skip to content

Conversation

@anakin87
Copy link
Member

@anakin87 anakin87 commented Feb 11, 2026

Related Issues

Proposed Changes:

I started from the idea that the simplest way to check whether generated Markdown API references are compatible with Docusaurus is to check out the Docs Website and try building it. Then I found better tools, and this idea evolved into something simpler.

  • Created a new "Core / Check API reference changes" workflow
    • detect integrations with API reference changes (if pydoc config or docstring checksum have changed)
    • for each one of the changed integrations:
      • generates Markdown API reference
      • moves it to a fresh website folder for testing
    • runs docusaurus-mdx-checker, as suggested in Docusaurus docs: this does not build the website but just checks generated Markdown files.
      • if it fails, the informative build error is available on CI logs

How did you test it?

Temporarily added some changes:

Notes for the reviewer

  1. By running the checker but not building the website, we only get MD/MDX errors: for example, we don't get errors for duplicate page ids or broken links. In general, it seems OK since our previous errors were caused by invalid MD/MDX. Plus, the check is much faster than building the website.

  2. With this change, we no longer need to run hatch run docs in each integration workflow:

    - name: Generate docs
    if: matrix.python-version == '3.10' && runner.os == 'Linux'
    run: hatch run docs

    I prefer to remove this step in another PR to keep this focused and minimal.

Checklist

@anakin87 anakin87 marked this pull request as ready for review February 11, 2026 15:34
@anakin87 anakin87 requested a review from a team as a code owner February 11, 2026 15:34
@anakin87 anakin87 requested review from julian-risch and removed request for a team February 11, 2026 15:34
@anakin87
Copy link
Member Author

I found some simplification opportunities. Putting this in draft.

@anakin87 anakin87 marked this pull request as draft February 12, 2026 07:11
@anakin87 anakin87 marked this pull request as ready for review February 12, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API reference sync sometimes break Docusaurus builds

1 participant