Skip to content

docs: rework package file formats and doc generation#171

Open
threexc wants to merge 6 commits into
mainfrom
tgamblin/package-docs-rework
Open

docs: rework package file formats and doc generation#171
threexc wants to merge 6 commits into
mainfrom
tgamblin/package-docs-rework

Conversation

@threexc

@threexc threexc commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

This is a quick rework (with the assistance of Claude) to align our documentation with how we used to do it, i.e. using YAML files to track our version support and generating a docs page for each package from that. Along the way I caught a few issues with some outdated path logic in the check_versions.py and generate_packages_doc.py scripts. With this change we don't need the Markdown files committed to the repository anymore, so those have been yanked in the same commit which added the YAML equivalents.

On the repository infrastructure side, there's also a new docs.yml workflow which handles generation and deployment. After this merges, a new gh-pages branch will be created and we'll correspondingly need change the Branch drop-down in Settings -> Pages -> Build and Deployment from main to gh-pages for this all to work. It should have the added benefit of letting us more easily review docs changes in PRs before they're merged.

threexc added 4 commits July 16, 2026 09:35
This makes python-wheels more consistent with the original package docs'
pattern in wheel_builder.

AI-Generated: Uses Claude Sonnet 5

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
We were still using the old docs/source/packages path, rather than
the docs/packages path in python-wheels.

AI-Generated: Uses Claude Sonnet 5

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Use simpler logic and the new proxy URL for the package registry when
generating docs.

AI-Generated: Uses Claude Sonnet 5

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
These are generated for documentation deployment, but they shouldn't be
committed to the repository anymore, only deployed by a workflow.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
@threexc threexc force-pushed the tgamblin/package-docs-rework branch from 4cd4b75 to e73148b Compare July 16, 2026 13:55
@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://riseproject-dev.github.io/python-wheels/pr-preview/pr-171/

Built to branch gh-pages at 2026-07-16 15:10 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@threexc threexc marked this pull request as ready for review July 16, 2026 14:00
@threexc threexc force-pushed the tgamblin/package-docs-rework branch 5 times, most recently from 5912f4c to 18fde6e Compare July 16, 2026 14:54
Create a custom workflow for deploying our documentation to GitHub
Pages. This allows us to retain the original YAML-to-documentation
generation process we've used in the past, and stops us from relying
solely on files already being on the main branch for documentation build
and review.

We have to incorporate two new community actions for this:

1. `peaceiris/actions-gh-pages`, for deploying the actual docs using a
   `gh-pages` branch
2. `rossjrew/pr-preview-action`, for creating docs previews so we're
   able to review the changes before merge. Comments will be posted on
   the PR providing preview links.

The `gh-pages` branch also requires a `.nojekyll` file at the project
root to avoid a manual rebuild, which can take a lot of time. Finally,
the `Deploy from a branch` option in the Pages setting needs to point at
`root/`, not `docs/` or it won't find the `.nojekyll` file.

AI-Generated: Uses Claude Sonnet 5

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
@threexc threexc force-pushed the tgamblin/package-docs-rework branch from 18fde6e to 9418191 Compare July 16, 2026 14:59
…rkflow

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
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