Skip to content

chore: align the docs repo after the move - #85

Merged
uniqueg merged 5 commits into
mainfrom
chore/align-docs-repo
Nov 1, 2026
Merged

uniqueg merged 5 commits into
mainfrom
chore/align-docs-repo

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Aligns the repository after the move to Read the Docs and the rename to docs.

  • Site: removes the GitHub Pages workflow deploy.yml and its mentions, falls back to https://docs.elixir-on.cloud/ for site_url (the READTHEDOCS_CANONICAL_URL env stays), removes the mkdocs-redirects plugin, its redirect_maps and the dependency (no redirects for the old URLs, per the maintainer's decision), fixes the links in includes/references.md (elixir-cloud, elixir-on-cloud, funnel).
  • Repository URL: elixir-cloud-aai/docs in mkdocs.yml, README, the about page and the references.
  • Repository hygiene (chore: align the repository with the org's #83): .github/dependabot.yaml (GitHub Actions and pip, grouped, monthly, target main), .github/CODEOWNERS, README in the structure of the aligned repos, removal of Makefile, the unused icons forum-black.svg and github-black.svg (verified unused) and the outdated block in overrides/main.html (announce banner kept), pyproject.toml name docs and license CC0-1.0, .gitignore aligned.
  • Tests: tests/unit/test_check_names.py for scripts/check_names.py (behaviour untouched), tests extra, pytest with --cov-fail-under=100, new Test job in ci.yml and in the gate's needs.

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: passes
  • mkdocs build --strict: passes
  • pytest: 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.md still has [elixir-on-cloud-contributors] and [elixir-on-cloud-news] on elixir-cloud.dcc.sib.swiss: not in the scope of the issues.
  • Before merging, the required check names change: a new Test job is part of the CI passed gate, 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:

  • Align the documentation repository configuration, metadata, links, and project hygiene with its move to Read the Docs and the docs repository.
  • Remove legacy GitHub Pages deployment and obsolete URL redirects in favor of the current documentation site.
  • Add comprehensive tests for the name-checking script with enforced full coverage.

Build:

  • Update project metadata and dependencies, add a dedicated test extra, and remove the obsolete Makefile and redirects dependency.

CI:

  • Add a 100%-coverage test job to the CI gate and configure grouped monthly Dependabot updates for Python and GitHub Actions dependencies.

Deployment:

  • Switch site publishing ownership from GitHub Pages to Read the Docs.

Documentation:

  • Refresh the README and documentation links, repository references, branding, and licensing information for the renamed repository.

Tests:

  • Add unit coverage for valid and invalid name checks, directory scanning, error handling, and script execution.

Chores:

  • Add repository ownership and align ignore and contributor configuration with the organization’s standard repositories.

uniqueg and others added 3 commits November 2, 2026 00:15
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]>
@sourcery-ai

sourcery-ai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Aligns 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 gate

flowchart 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
Loading

File-Level Changes

Change Details Files
Migrates site configuration and links from GitHub Pages to Read the Docs and the renamed repository.
  • Removes the GitHub Pages deployment workflow and redirect plugin/configuration.
  • Uses the Read the Docs canonical URL with a docs.elixir-on.cloud fallback.
  • Updates repository metadata and project references to elixir-cloud-aai/docs.
  • Corrects external references and removes the obsolete version warning while retaining the announcement banner.
.github/workflows/ci.yml
.github/workflows/deploy.yml
README.md
docs/about.md
includes/references.md
mkdocs.yml
overrides/main.html
pyproject.toml
Aligns repository maintenance, metadata, and local development configuration with the standardized docs-repository layout.
  • Adds grouped monthly Dependabot updates for pip and GitHub Actions targeting main.
  • Adds CODEOWNERS and aligns ignore rules and README structure.
  • Removes the Makefile and unused theme icons.
  • Renames the project to docs and changes its license metadata to CC0-1.0.
.github/CODEOWNERS
.github/dependabot.yaml
.gitignore
Makefile
overrides/.icons/custom/forum-black.svg
overrides/.icons/custom/github-black.svg
pyproject.toml
README.md
Adds unit-test coverage for the existing name-checking script and makes testing a required CI gate.
  • Adds tests for accepted and rejected spellings, line reporting, path handling, defaults, and script execution.
  • Adds pytest and coverage dependencies with 100% line and branch coverage enforcement.
  • Adds a dedicated Test CI job and includes it in the CI passed gate.
tests/unit/test_check_names.py
pyproject.toml
.github/workflows/ci.yml

Possibly linked issues

  • chore: rename the repository to docs #68: The PR directly addresses the issue’s repository-alignment proposal with Dependabot, CODEOWNERS, README, and hygiene updates; omitted checks do not change the core match.
  • #unknown: The PR updates mkdocs.yml, README, and documentation references to the docs repository and canonical URL, directly addressing the rename issue.

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@read-the-docs-community

read-the-docs-community Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uniqueg
uniqueg marked this pull request as ready for review November 1, 2026 23:19

@sourcery-ai sourcery-ai Bot 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.

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


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread .github/workflows/ci.yml Resolved
Comment thread .github/workflows/ci.yml Resolved
Comment thread tests/unit/test_check_names.py Resolved

@sourcery-ai sourcery-ai Bot 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.

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.

Comment thread mkdocs.yml Resolved
@uniqueg
uniqueg merged commit e28a223 into main Nov 1, 2026
10 of 13 checks passed
@uniqueg
uniqueg deleted the chore/align-docs-repo branch November 1, 2026 23:27
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.

chore: align the repository with the org's chore: rename the repository to docs ci: serve the hub at docs.elixir-on.cloud

1 participant