Skip to content

Generate the API reference from src/outlines#1913

Merged
RobinPicard merged 1 commit into
dottxt-ai:mainfrom
ritsth:fix/api-reference-src-layout
Jul 20, 2026
Merged

Generate the API reference from src/outlines#1913
RobinPicard merged 1 commit into
dottxt-ai:mainfrom
ritsth:fix/api-reference-src-layout

Conversation

@ritsth

@ritsth ritsth commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Fixes #1912

The src layout migration (681009f) moved the package to src/outlines but scripts/gen_ref_pages.py kept scanning root/outlines, so the generated API reference has been empty in every build since — visible by comparing the released docs (latest/api_reference/models/, 200) with any recent PR preview (pr-preview/pr-1907/api_reference/models/, 404).

One-line fix. Verified by building the docs locally: before, api_reference/ contained only the index and nav summary; after, all 12 module sections generate with rendered content. A side benefit is that the edit links on generated pages now point at the real src/outlines/... paths.

Used an AI assistant to find and verify this; I reviewed and rebuilt the docs myself before submitting.

@github-actions

Copy link
Copy Markdown

📚 Documentation preview: https://dottxt-ai.github.io/outlines/pr-preview/pr-1913/

Preview updates automatically with each commit.

@RobinPicard RobinPicard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for noticing the issue and opening a PR!

@RobinPicard
RobinPicard merged commit f1100f1 into dottxt-ai:main Jul 20, 2026
6 checks passed
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.

API reference is empty in docs built from main

2 participants