Repository navigation
ci: build the docs like the product docs - #69
Merged
Merged
Conversation
Align the MkDocs setup with cloud-registry and proTES: Read the Docs config with a strict build, docs extra in pyproject.toml (instead of Poetry), Material palette, features and Markdown extensions, the ELIXIR On-Cloud logo and site name, and a CI workflow with a PR title check, a strict docs build and the CI passed gate. The GitHub Pages deployment (deploy.yml) stays; the redundant gh-pages deployment of the old ci.yml is dropped. Closes #62 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
Reviewer's GuideThe PR standardizes documentation builds on MkDocs Material with PEP 621 metadata, a bounded Sequence diagram for the CI documentation gatesequenceDiagram
participant GitHub
participant CI as GitHub Actions CI
participant Docs as Docs job
participant Gate as CI passed
GitHub->>CI: pull_request or push to main
CI->>Docs: checkout repository
Docs->>Docs: pip install -e ".[docs]"
Docs->>Docs: mkdocs build --strict
Docs-->>CI: Docs result
CI->>Gate: needs: [title, docs]
Gate->>Gate: gate(needs)
Gate-->>GitHub: required check result
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
uniqueg
marked this pull request as ready for review
November 1, 2026 16:47
Contributor
There was a problem hiding this comment.
Hey - I've found 3 issues
Fixed security issues:
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path=".github/workflows/ci.yml" line_range="11" />
<code_context>
- branches:
- - main
+ branches: [main]
+ pull_request:
+ branches: [main]
+
</code_context>
<issue_to_address>
**Stale PR title check**
When a pull request title changes after the workflow has run, the workflow does not rerun because `pull_request` omits the `edited` activity type, so `PR title` retains its old result: a corrected title stays failed, while a newly invalid title can still pass into the squash commit.
Add the `edited` activity type to the `pull_request` trigger.
</issue_to_address>
### Comment 2
<location path="pyproject.toml" line_range="23-26" />
<code_context>
+# are listed too, to bound their major versions (new warnings of minor
+# releases still fail it)
+docs = [
+ "mkdocs>=1.6.1,<2",
+ "mkdocs-material>=9.7.7,<10",
+ "pymdown-extensions>=12.3,<13",
+]
-[build-system]
</code_context>
<issue_to_address>
**Pages deploy ignores dependency bounds**
When an incompatible MkDocs or Material major version is published and selected by the Pages workflow, the Pages workflow installs MkDocs and Material directly rather than installing the `docs` extra, so it ignores these version bounds; when an incompatible major release is selected, the production build fails even though CI and Read the Docs use the bounded dependencies.
Have the Pages workflow install the bounded `.[docs]` extra instead of resolving MkDocs and Material independently.
</issue_to_address>
### Comment 3
<location path="README.md" line_range="3" />
<code_context>
+# ELIXIR On-Cloud docs
-Documentation for the ELIXIR-on-Cloud project.
+Documentation of the ELIXIR On-Cloud federated deployment, hosted by Read the Docs.
## Development
</code_context>
<issue_to_address>
**Readers are sent to an unavailable host**
When the Read the Docs project has not yet been created, the README says the documentation is hosted by Read the Docs, but that project has not been imported; readers are directed to a host that does not serve the documentation while GitHub Pages remains live.
Update the README to identify the currently available GitHub Pages host instead of Read the Docs.
</issue_to_address>Linked issues
#62 ci: build and host like the product docs · 4 of 6 met · 2 to check by hand
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Add the Read the Docs configuration and project with PR previews. | 👀 Check by hand (external system) | Confirm that a maintainer has created the Read the Docs project, connected this repository, and enabled pull-request previews; the PR description says this setup remains to be done. |
| 2 | Build with mkdocs build --strict in CI under the CI passed gate. |
✅ Met | The Docs job runs the strict build, and CI passed requires its result. |
| 3 | Align MkDocs theme features, palette, logo, plugins, and Markdown extensions with the product docs. | ✅ Met | The configuration adds the light/dark palette, Material features and Markdown extensions, retains the search plugin, and uses the new ELIXIR On-Cloud logo on the home page. |
| 4 | Pin the documentation dependencies in pyproject.toml. |
✅ Met | The docs extra bounds the versions of MkDocs, MkDocs Material, and pymdown-extensions. |
| 5 | Fix the warnings reported by the strict build, including broken links and missing pages. | ✅ Met | The PR marks the linked pull-request template as not_in_nav, configures warning validation, and reports that the strict build passes without warnings. |
| 6 | Make the site look like the product docs. | 👀 Check by hand (visual) | Compare the rendered site with the product docs to confirm the theme, branding, and navigation look as intended. |
Sourcery assessment
Approval pending. 3 findings to address first.
Blocking findings: .github/workflows/ci.yml:11, pyproject.toml:26, README.md:3
Rerun the PR title check when the title is edited, install the bounded docs extra in the Pages deployment, and name the current host in the README. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Builds the hub like the product docs (cloud-registry, proTES): MkDocs Material, Read the Docs config, strict build in CI under the
CI passedgate..readthedocs.yamlas in the product docs (Python 3.13,fail_on_warning: true,docsextra).pyproject.toml: PEP 621 metadata and adocsextra with boundedmkdocs,mkdocs-materialandpymdown-extensions; Poetry andpoetry.lockare gone (unusedmkdocs-i18n, Pillow and CairoSVG dropped, as no plugin needs them).Makefileand README follow.mkdocs.yml: palette (deep purple, light/dark toggle), features, Markdown extensions andvalidationas in the product docs; site name "ELIXIR On-Cloud docs"; "ELIXIR On-Cloud" in the copyright and social links (website link now https://elixir-on.cloud/);site_urlfromREADTHEDOCS_CANONICAL_URL, falling back to the GitHub Pages URL for now. The hub-specific navigation tabs and the cookie consent stay.ci.yml(CI): jobsPR title,Docs(mkdocs build --strict) and the gateCI passed, with the org's shared actions pinned to 743e82d (v1.0.0), on pull requests and pushes tomain. The oldci.ymlonly ranmkdocs gh-deployon pushes; it is dropped because GitHub Pages is built fromdeploy.yml(Pages source: workflow), which stays unchanged, so the current deployment keeps working until ci: serve the hub at docs.elixir-on.cloud #67.not_in_nav, it stays linked); the removedcustom_theme/was a stale unused build output.Closes #62
Part of #61.
Verification
mkdocs build --strictlocally in a fresh venv (pip install -e ".[docs]", Python 3.12): passes with no warnings.PR title,DocsandCI passedpass on this PR.Lane
Light lane: only docs configuration and CI (a new workflow without secrets, with read-only permissions and
permissions: {}on the jobs); no release workflow, no logic. Reviewed the diff myself; no reviewer subagents.Declined review findings
None.
Open questions / for the maintainer
The merge doesn't depend on these. The Read the Docs project must be created by a maintainer:
elixir-cloud-aai/elixir-cloud-aai.github.io(connect the GitHub account of the org's Read the Docs organization if needed). Name itelixir-on-cloud-docs(or similar); default branchmain. The build reads.readthedocs.yaml, so no further build settings are needed.CI passedalready covers the strict build).latest(branchmain) and that "Privacy level" and "Build pull requests" match the product docs' projects.docs.elixir-on.cloud, create the CNAME DNS record RTD shows, wait for the certificate, then make it canonical. Until then GitHub Pages stays as is.🤖 Generated with Claude Code
Summary by Sourcery
Align the documentation build, branding, and CI checks with the ELIXIR On-Cloud product documentation setup.
New Features:
Bug Fixes:
Enhancements:
CI:
Deployment:
Documentation:
Chores: