Repository navigation
docs: switch to a MkDocs Material site - #228
Merged
Merged
Conversation
Title "proTES" with the ELIXIR On-Cloud logo, the badges of cloud-registry (license, build status, docs, coverage, release tag and image), a synopsis that presents proTES as a TES gateway for any network, brought to you by ELIXIR On-Cloud, a "Known deployments" section (none listed yet), a quick start and contributing; README sections are marked for inclusion in the docs site. The architecture, license and contact move to docs/index.md, the Compose details and the MTU troubleshooting to docs/getting-started.md; the overview diagram moves to docs/images/, and the old ELIXIR, GA4GH and ELIXIR Cloud & AAI logos are removed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
In the Helm chart's description and notes and the contact of the middleware management API spec. Identifiers (GitHub organization, Docker Hub) stay. Co-Authored-By: Claude Opus 5.5 <[email protected]>
mkdocs.yml, .readthedocs.yaml and docs/hooks.py (with tests) as in cloud-registry; pages for getting started, configuration, API, middlewares (from docs/middleware.md), access control, deployment (the chart README, with absolute links), operations, upgrading, the API reference and the changelog; README sections are included. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # README.md # docs/getting-started.md # docs/index.md
Add the docs extra and the CI job "Build documentation" (mkdocs build --strict on the image's Python 3.12, as on Read the Docs), which the image publishing now waits for. Describe the Gunicorn settings, the Compose volumes and Flower profile, and the image changes of #204; add the development page and a contributing page (completed by #211); add the final newline of the overview diagram. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideThis PR replaces the repository’s ad hoc documentation with a strict MkDocs Material site published on Read the Docs, consolidates and expands operational/API guidance, embeds the Helm README through a tested link-rewriting hook, and enforces documentation builds in CI before image publication. Flow diagram for strict documentation validation in CIflowchart LR
Checkout[Check out repository] --> Python[Set up Python 3.12]
Python --> Install["Install .[docs]"]
Install --> Build[Run mkdocs build --strict]
Build --> DocsOK{Documentation build passes}
DocsOK -->|yes| Publish[Build and publish app image]
DocsOK -->|no| Stop[Stop workflow]
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
No issuer-specific (LS Login) or network-specific wording in the access control and configuration pages. The test of the chart README compares host names instead of substrings (CodeQL). Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # deployment/README.md
uniqueg
marked this pull request as ready for review
October 22, 2026 19:32
There was a problem hiding this comment.
Hey - I've found 2 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="docs/access-control.md" line_range="20" />
<code_context>
+requests to the TES instance that the task is forwarded to: to create, track
+and cancel it. Credentials in the URLs of inputs and outputs
+(`https://user:password@host/...`) are removed before the task is forwarded,
+unless the TES instance is a [Funnel](https://ohsu-comp-bio.github.io/funnel/)
+instance.
</code_context>
<issue_to_address>
**Funnel fallback loses credentials**
When a non-Funnel endpoint rejects the task before a Funnel endpoint is tried, `create_task()` strips URL credentials from the shared `payload_marshalled` for a non-Funnel endpoint; if that endpoint rejects the task, a later Funnel endpoint receives the already-stripped URLs, so the forwarded task cannot access those inputs or outputs.
Strip credentials from a copy of the task for each non-Funnel attempt, leaving the original payload unchanged for later endpoints.
</issue_to_address>
### Comment 2
<location path="docs/hooks.py" line_range="105" />
<code_context>
+ return markdown
+ readme = Path(config.config_file_path).parent / README
+ # Set by Read the Docs to the commit of the build
+ ref = os.environ.get("READTHEDOCS_GIT_COMMIT_HASH") or "dev"
+ content = adapt_links(readme.read_text(encoding="utf-8"), config.repo_url, ref)
+ return "\n".join(
</code_context>
<issue_to_address>
**Versioned chart links point to dev**
When read the Docs builds a tagged version, read the Docs does not provide `READTHEDOCS_GIT_COMMIT_HASH`; it provides `READTHEDOCS_GIT_IDENTIFIER`. The hook therefore falls back to `dev` on tagged builds, so links from the deployment page to repository files do not match the version of the docs.
Read `READTHEDOCS_GIT_IDENTIFIER` for the build reference and test the hook using that variable.
</issue_to_address>Sourcery assessment
Approval pending. 2 findings to address first.
Blocking findings: docs/access-control.md:20, docs/hooks.py:105
This was referenced Oct 22, 2026
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.
Closes #209.
Summary
proTES gets a MkDocs Material site on Read the Docs, as cloud-registry has (elixir-cloud-aai/cloud-registry#139):
mkdocs.yml,.readthedocs.yaml(fail_on_warning: true,docsextra, Python 3.12 as in the image) anddocs/hooks.py(withtests/test_docs_hooks.py), copied from cloud-registry and adapted to proTES.docs/middleware.md, which is removed).deployment/README.mdis rewritten with absolute links only, without its broken table of contents, and with the current clone URL, so that the packaged chart's links work (ci: release from signed version tags #44).pyproject.toml: adocsextra (bounded versions, as in cloud-registry) and theDocumentationURL.mkdocs build --strict, pinned actions). The image publishing job also waits for it.docs/images/overview.svg).Review
py/incomplete-url-substring-sanitization) on the chart README test: it now compares host names instead of checking for a substring (a test-only false positive, fixed anyway).dev(style: reformat with ruff #227, ruff reformat);docs/hooks.pyand its test passruff format --check.Declined review findings
docs/access-control.md): a real bug increate_task()(B1 of the plan), not in this docs PR. fix: task listing, timestamps and relay bugs #208 fixes it, and the page describes the intended behaviour.docs/hooks.py): Read the Docs setsREADTHEDOCS_GIT_COMMIT_HASHfor all builds, tags included, so links point to the commit that is built (same hook as in cloud-registry).Repository setup (admin)
protes(the README badge and links point tohttps://protes.readthedocs.io/en/latest/), buildinglatestand tags, with an automation rule that activates the versions ofv*tags, as for cloud-registry.Light lane
Light lane: documentation, a docs build job without secrets or permissions, and the small docs hook copied unchanged from cloud-registry (with its tests).
Verification
mkdocs build --strict(Python 3.13 venv with thedocsextra's packages): no warnings.pytest tests/test_docs_hooks.py: 18 passed.🤖 Generated with Claude Code