Skip to content

docs: switch to pre-processor pattern for interface docs - #637

Open
james-garner-canonical wants to merge 1 commit into
canonical:mainfrom
james-garner-canonical:26-08+docs+skip-interface-reference-on-intermediate-passes
Open

docs: switch to pre-processor pattern for interface docs#637
james-garner-canonical wants to merge 1 commit into
canonical:mainfrom
james-garner-canonical:26-08+docs+skip-interface-reference-on-intermediate-passes

Conversation

@james-garner-canonical

@james-garner-canonical james-garner-canonical commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

This PR switches the docs build process to build the interface docs as a pre-processor pass rather than as a Sphinx extension. The reason it wasn't a pre-processor originally is purely historical -- we started with the package dos extension, added interface docs as an extension, and then added the pre-processor approach for the library diataxis docs.

We retain a thin extension so that building the docs without the pre-processor works (it writes a placeholder file so the TOC glob doesn't fail).

The positive delta in this PR is adding tests for the pre-processor and the thin extension (the previous fat extension didn't have dedicated tests).

Context: I'm trying to speed up the docs build. This doesn't really help, but it does simplify it, so it's a good first step. I have a couple more things to try that will follow up from here.

@james-garner-canonical
james-garner-canonical marked this pull request as ready for review August 20, 2026 01:45
@james-garner-canonical
james-garner-canonical requested a review from a team as a code owner August 20, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant