Repository navigation
chore: align the docs repo after the move - #85
Conversation
Remove the Pages deployment workflow and the redirects plugin (no redirects for the old URLs), fall back to docs.elixir-on.cloud as site URL, and point the repository links to elixir-cloud-aai/docs. Fix the outdated links in the references. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Test scripts/check_names.py with pytest at 100% coverage and run the tests in the new Test job of the CI gate. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add Dependabot and CODEOWNERS, rewrite the README, remove the outdated block in main.html, and align .gitignore. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideAligns the repository with its Read the Docs hosting and new docs identity by removing GitHub Pages and legacy redirects, updating metadata, links, and hygiene files, and replacing the former Makefile workflow with documented commands plus fully covered unit tests enforced through CI. Flow diagram for the required CI gateflowchart LR
title[CI workflow]
title --> docs[Docs job]
title --> test[Test job]
title --> prtitle[PR title job]
docs --> passed[CI passed]
test --> passed
prtitle --> passed
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Documentation build overview
29 files changed ·
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Hey - I've found 3 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="68-88" />
<code_context>
- name: Build documentation
run: mkdocs build --strict
+ # Unit tests of `scripts/check_names.py` with 100% coverage
+ test:
+ name: Test
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+ steps:
+ - name: Check out repository
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ - name: Set up Python
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
+ with:
+ python-version: "3.13"
+ cache: pip
+ cache-dependency-path: pyproject.toml
+ - name: Install dependencies
+ run: pip install -e ".[tests]"
+ - name: Run tests
+ run: pytest
+
# Fails if any other job failed or was cancelled, or was skipped where that
# is not intended: `title` on pushes (and for Dependabot). Add every new
</code_context>
<issue_to_address>
**Run pre-commit hooks in CI**
The issue asks for suitable pre-commit hooks and for them to run under the CI gate. The added CI job runs pytest, but no pre-commit configuration or hook-running step is included.
</issue_to_address>
### Comment 2
<location path=".github/workflows/ci.yml" line_range="68-88" />
<code_context>
- name: Build documentation
run: mkdocs build --strict
+ # Unit tests of `scripts/check_names.py` with 100% coverage
+ test:
+ name: Test
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+ steps:
+ - name: Check out repository
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ - name: Set up Python
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
+ with:
+ python-version: "3.13"
+ cache: pip
+ cache-dependency-path: pyproject.toml
+ - name: Install dependencies
+ run: pip install -e ".[tests]"
+ - name: Run tests
+ run: pytest
+
# Fails if any other job failed or was cancelled, or was skipped where that
# is not intended: `title` on pushes (and for Dependabot). Add every new
</code_context>
<issue_to_address>
**Add a link-check job**
The issue asks for an internal and external link-check job if it fits the naming rules. The CI change adds a test job but no link check.
</issue_to_address>
### Comment 3
<location path="tests/unit/test_check_names.py" line_range="90-91" />
<code_context>
+ """Returns 0 for files and directories without problems."""
+ write(tmp_path, "ELIXIR On-Cloud\n")
+ write(tmp_path, "Elixir\n", name="ignored.txt")
+ assert check_names.main([str(tmp_path)]) == 0
+ assert capsys.readouterr().out == ""
+
+
</code_context>
<issue_to_address>
**Skipped scans still pass tests**
When `main` is changed to return 0 without scanning a directory or the default paths, `test_main_ok` at line 90 and `test_main_defaults` at line 121 assert success for valid-only fixtures, so both pass even when the corresponding inputs are never scanned; misspellings in directories or default paths can go unchecked.
Add misspelled content to directory and default-path fixtures and assert that `main` reports it.
Also at `tests/unit/test_check_names.py:121`.
</issue_to_address>Linked issues
#67 ci: serve the hub at docs.elixir-on.cloud · 0 of 3 met · 1 to check by hand
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Serve the site at docs.elixir-on.cloud | 👀 Check by hand (external system) | A person must confirm the Read the Docs custom domain and DNS are configured and the URL serves the site. |
| 2 | Redirect old URLs to matching new pages | ❌ Not addressed | The change removes the redirects configuration and stops publishing the old site, so existing URLs will not be redirected by this change. |
| 3 | Update old-site links in the org's repositories and profiles | ❌ Not addressed | The PR updates links in this repository only; its description defers org-wide link updates to docs#84. |
#68 chore: rename the repository to docs · 1 of 4 met · 2 to check by hand
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Rename the repository to docs | 👀 Check by hand (external system) | A person must confirm that the repository itself has been renamed on GitHub. |
| 2 | Update the repository URL in mkdocs.yml | ✅ Met | The repository name and URL are updated in mkdocs.yml. |
| 3 | Update the Read the Docs project URL | 👀 Check by hand (external system) | A person must confirm that the Read the Docs project points to the renamed repository. |
| 4 | Update repository links in other repositories | ❌ Not addressed | This PR changes links in this repository only; updates in other repositories are not included. |
#83 chore: align the repository with the org's · 5 of 8 met · 1 to check by hand
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Add grouped monthly Dependabot updates for GitHub Actions and Python dependencies, targeting main | ✅ Met | The configuration is in .github/dependabot.yaml. |
| 2 | Add suitable pre-commit hooks and run them in CI under CI passed | ❌ Not addressed | The change adds no pre-commit configuration or hook-running CI step. |
| 3 | Add a link-check job if it fits the org's naming rules | ❌ Not addressed | No internal or external link-check job is added. |
| 4 | Use the org's README structure with CI, docs and license badges, an intro and a contributing pointer | ✅ Met | |
| 5 | Align .gitignore | ✅ Met | The ignore entries cover the MkDocs output, Python/test artifacts and local editor files. |
| 6 | Add CODEOWNERS with owners named by the maintainer | ✅ Met | The file names @uniqueg, @svedziok and @vschnei. |
| 7 | Align repository settings, including homepage, topics, branch rules and Dependabot security settings | 👀 Check by hand (external system) | A person must check the repository's GitHub description, homepage, topics, branch rules, and Dependabot alert and security-update settings. |
| 8 | Do not add CITATION.cff or a release workflow | ✅ Met |
Sourcery assessment
Approval pending. 3 findings to address first.
Blocking findings: .github/workflows/ci.yml:88, .github/workflows/ci.yml:88, tests/unit/test_check_names.py:91
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Linked issues
#67 ci: serve the hub at docs.elixir-on.cloud · 1 of 4 met · 1 to check by hand
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Serve the site at docs.elixir-on.cloud. | 👀 Check by hand (external system) | Verify the Read the Docs custom domain and DNS CNAME are configured and that https://docs.elixir-on.cloud/ serves the site. |
| 2 | Redirect old URLs to their matching new pages. | ❌ Not addressed | The PR removes the redirect plugin and its redirect maps, so old page URLs are not redirected. |
| 3 | Stop publishing the old site. | ✅ Met | The GitHub Pages deployment workflow is deleted. |
| 4 | Update links to the old site in the org's repositories and profiles. | 🟡 Partly met | This repository's links are updated, but the PR says updates in other repositories are being handled by docs#84 and does not cover profiles. |
#68 chore: rename the repository to docs · 1 of 4 met · 2 to check by hand
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Rename the repository to docs. | 👀 Check by hand (external system) | Verify that the GitHub repository itself has been renamed to docs and that the old repository URL redirects. |
| 2 | Update the repository URL in mkdocs.yml. | ✅ Met | mkdocs.yml now names elixir-cloud-aai/docs. |
| 3 | Update the Read the Docs project URL. | 👀 Check by hand (external system) | Verify the Read the Docs project is configured with the renamed repository URL. |
| 4 | Update repository links in other repositories. | ❌ Not addressed | The PR says org-wide link updates are being handled by docs#84, so links in other repositories are not updated here. |
#83 chore: align the repository with the org's · 5 of 8 met · 1 to check by hand
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Add grouped monthly Dependabot updates for GitHub Actions and Python dependencies targeting main. | ✅ Met | The Dependabot configuration covers pip and GitHub Actions, with monthly schedules, groups, and target-branch main. |
| 2 | Add fitting pre-commit hooks and run them in CI under CI passed. | ❌ Not addressed | The PR adds no pre-commit configuration or pre-commit CI job. |
| 3 | Add a link-check job if it fits the org's naming rules. | ❌ Not addressed | No link-check job is added to CI. |
| 4 | Use the org's README structure with CI, docs, and license badges, a short introduction, and a contributing pointer. | ✅ Met | The README includes those badges, an introduction, and a contributing guide link. |
| 5 | Align .gitignore and remove leftover files from the old Pages setup. | ✅ Met | The ignore rules cover the docs and test setup, and the Pages workflow and other obsolete files are removed. |
| 6 | Add CODEOWNERS with owners named by the maintainer. | ✅ Met | CODEOWNERS names three owners. |
| 7 | Set the repository description, homepage, topics, branch ruleset, and Dependabot security settings. | 👀 Check by hand (external system) | Verify the GitHub repository settings for its description, homepage, topics, main branch rules, Dependabot alerts, and security updates. |
| 8 | Do not add CITATION.cff or a release workflow. | ✅ Met | Neither is introduced by this change. |
Summary
Aligns the repository after the move to Read the Docs and the rename to
docs.deploy.ymland its mentions, falls back tohttps://docs.elixir-on.cloud/forsite_url(theREADTHEDOCS_CANONICAL_URLenv stays), removes themkdocs-redirectsplugin, itsredirect_mapsand the dependency (no redirects for the old URLs, per the maintainer's decision), fixes the links inincludes/references.md(elixir-cloud,elixir-on-cloud,funnel).elixir-cloud-aai/docsinmkdocs.yml, README, the about page and the references..github/dependabot.yaml(GitHub Actions and pip, grouped, monthly, targetmain),.github/CODEOWNERS, README in the structure of the aligned repos, removal ofMakefile, the unused iconsforum-black.svgandgithub-black.svg(verified unused) and theoutdatedblock inoverrides/main.html(announce banner kept),pyproject.tomlnamedocsand licenseCC0-1.0,.gitignorealigned.tests/unit/test_check_names.pyforscripts/check_names.py(behaviour untouched),testsextra, pytest with--cov-fail-under=100, newTestjob inci.ymland in the gate'sneeds.Org-wide link updates in other repositories are docs#84 and not part of this PR.
Closes #67
Closes #68
Closes #83
Verification
In a fresh venv (
pip install -e ".[docs,tests]"):python scripts/check_names.py: passesmkdocs build --strict: passespytest: 24 passed, 100% coverage (line and branch)CI results: all checks passed (Test, Docs, PR title, CodeQL, Read the Docs build, CI passed).
Lane
Light lane: docs, CI and configuration only (no secrets, permissions or release workflow); the only code is a new test file for an existing script. I reviewed the diff myself.
Notes
includes/references.mdstill has[elixir-on-cloud-contributors]and[elixir-on-cloud-news]onelixir-cloud.dcc.sib.swiss: not in the scope of the issues.Testjob is part of theCI passedgate, so no ruleset change is needed.Declined review findings
None yet.
Open questions
None.
🤖 Generated with Claude Code
Summary by Sourcery
Align the documentation repository with its Read the Docs publication target, renamed GitHub repository, and organization-wide maintenance standards.
Enhancements:
docsrepository.Build:
CI:
Deployment:
Documentation:
Tests:
Chores: