Repository navigation
docs: restructure the hub by audience - #72
Conversation
One navigation section per audience with a start page, a shared scope statement, Sandbox dissolved, Contribute and About merged into pointers, redirects for old URLs, and a CI check of the names. Closes #63 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Reviewer's GuideThe PR restructures the documentation hub around three audiences, consolidates obsolete contribution and About content, preserves existing URLs with redirects, and adds CI enforcement for consistent project naming. Sequence diagram for documentation CI validationsequenceDiagram
participant CI
participant Names as check_names.py
participant MkDocs as mkdocs build --strict
CI->>Names: main(args)
Names-->>CI: exit status
CI->>MkDocs: build documentation
MkDocs-->>CI: build result
Flow diagram for legacy documentation URL redirectsflowchart LR
Legacy[Legacy documentation URLs]
Redirects[mkdocs redirects plugin]
Audience[Audience sections]
About[About and contributing]
Legacy --> Redirects
Redirects --> Audience
Redirects --> About
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Documentation build overview
49 files changed ·
|
There was a problem hiding this comment.
Hey - I've found 4 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="scripts/check_names.py" line_range="33" />
<code_context>
+ | https?://[^\s<>"')\]]+ # URLs
+ | \]\([^)\n]*\) # link targets
+ | \]\[[^\]\n]*\] # reference link labels
+ | ^\s*\[[^\]\n]+\]:.*$ # reference definitions
+ | \b(?:href|src|icon|image)=?\s*["':][^"'\n]* # attributes and keys
+ """,
</code_context>
<issue_to_address>
**Misspellings after definitions pass**
When a Markdown reference definition appears before a misspelled name in the same file, `IGNORED` applies `.*$` under `re.DOTALL`, blanking the reference-definition line and everything after it; `NAME.finditer` never checks later prose, so CI passes with invalid names.
Constrain the reference-definition pattern to stop at the end of that line, even with `re.DOTALL` enabled.
</issue_to_address>
### Comment 2
<location path="scripts/check_names.py" line_range="41" />
<code_context>
+
+# A name is a word that is not part of an identifier, path or domain
+NAME = re.compile(
+ r"(?<![\w./@-])elixir(?:[ \t-]*(?:on)?[ \t-]*cloud|[ \t]+europe)?(?![\w./@-])",
+ re.IGNORECASE,
+)
</code_context>
<issue_to_address>
**Wrapped names pass validation**
When a project name is split across Markdown source lines, `NAME` accepts only spaces, tabs, or hyphens between name parts, so `check_file` sees `ELIXIR` as a valid standalone name and ignores the following `Cloud`; CI passes with the incorrect spelling.
Make the name check recognize a Markdown line break between the name parts.
</issue_to_address>
### Comment 3
<location path="scripts/check_names.py" line_range="95" />
<code_context>
+ if path.is_dir():
+ files += sorted(p for p in path.rglob("*") if p.suffix in SUFFIXES)
+ elif path.is_file():
+ files.append(path)
+ problems = [p for file in files for p in check_file(file)]
+ for problem in problems:
</code_context>
<issue_to_address>
**Missing paths report success**
When a caller supplies a misspelled or nonexistent path, `main` skips paths that are neither files nor directories, collects no problems, and returns status 0; the caller is told validation succeeded without the requested files being checked.
Make `main` report an error when a supplied path is neither a file nor a directory.
</issue_to_address>
### Comment 4
<location path="scripts/check_names.py" line_range="28" />
<code_context>
+# Parts that are not prose, replaced by spaces to keep the column positions
+IGNORED = re.compile(
+ r"""
+ ```.*?``` # fenced code blocks
+ | `[^`\n]*` # inline code
+ | https?://[^\s<>"')\]]+ # URLs
</code_context>
<issue_to_address>
**Tilde-fenced examples fail CI**
When a Markdown file contains a noncanonical project name inside a tilde-fenced code block, `check_file` leaves tilde-fenced content unfiltered, so a valid code example containing a noncanonical project name is reported as an error and fails the CI check.
Extend `IGNORED` to filter tilde-fenced code blocks as well.
</issue_to_address>Linked issues
#63 docs: restructure the hub by audience · 6 of 7 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Audit each old section and record the page decisions in the PR description. | ✅ Met | The PR description records decisions for Home, General, Sandbox, Services, Tutorials, Contribute, and About. |
| 2 | Organize navigation by Node operators, Partners and developers, and Researchers, each with a start page. | ✅ Met | The navigation has all three audience sections, each beginning with its audience-specific start page. |
| 3 | Show the shared scope statement on the home page and each audience start page. | ✅ Met | The same includes/scope.md snippet is included on the home page and all three start pages. |
| 4 | Dissolve Sandbox and move its useful content into the relevant audience sections. | ✅ Met | The Sandbox page is removed; relevant pointers, including Poiesis and the Cloud Registry, appear in the audience sections. |
| 5 | Merge Contribute and About into a short page of pointers, including the platform, funding, contact, license, code of conduct, and contributing. | 🟡 Partly met | The new About page links to the platform, contact, license, code of conduct, and contributing resources, but has no funding pointer. |
| 6 | Use the specified project-name spellings and add a CI check for incorrect spellings. | ✅ Met | The check_names.py script checks the documentation and related files, and CI runs it. |
| 7 | Move pages into the new structure without rewriting them as part of this work, and mark missing content with short stubs. | ✅ Met | The pages are moved into the audience sections, and each audience start page identifies its missing guidance. |
Sourcery assessment
Approval pending. 4 findings to address first.
Blocking findings: scripts/check_names.py:33, scripts/check_names.py:41, scripts/check_names.py:95, scripts/check_names.py:28
Stop reference definitions from hiding later text, catch names that are wrapped over two lines, skip tilde-fenced code, and fail on paths that do not exist. Fixes a wrapped name found by the new check. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
There was a problem hiding this comment.
Linked issues
#63 docs: restructure the hub by audience · 6 of 7 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Audit every page and record the decision per page in the PR body. | ✅ Met | The PR body includes a decision table covering the listed page groups. |
| 2 | Organize navigation by audience, with a start page for Node operators, Partners and developers, and Researchers. | ✅ Met | The navigation and home page link to all three audience sections, each with a start page. |
| 3 | Show the shared scope statement on the home page and each audience start page. | ✅ Met | All four pages include the shared scope snippet. |
| 4 | Dissolve Sandbox and move useful material into the relevant audience sections. | ✅ Met | The Sandbox section is removed; its relevant pointers appear on the audience start pages. |
| 5 | Merge Contribute and About into one short page of pointers, including funding. | 🟡 Partly met | The new About and contributing page includes the other requested pointers, but omits funding; the PR notes that no funding information is available to link to yet. |
| 6 | Use the specified ELIXIR names consistently and add a CI check for wrong spellings. | ✅ Met | The check is added to CI and checks the repository's documentation inputs for invalid spellings. |
| 7 | Move pages without rewriting them and mark gaps with short stubs explaining what is missing. | ✅ Met | The existing pages are moved, and each audience start page identifies the missing follow-up material. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
There was a problem hiding this comment.
Linked issues
#63 docs: restructure the hub by audience · 7 of 11 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Audit every page and record the decision per page in the PR body. | ✅ Met | The PR body includes a decision table covering the old sections and pages. |
| 2 | Create one navigation section per audience, each with a start-here page. | ✅ Met | The navigation and home page provide sections and entry pages for Node operators, Partners and developers, and Researchers. |
| 3 | Node operators: cover joining the federation, running services at a Node, and deployment settings and policies. | 🟡 Partly met | The start page links to onboarding, the Cloud Registry, and service guides, but says the guide to joining the federation and deployment policies is missing. |
| 4 | Partners and developers: cover integrating with the deployment's APIs, its GA4GH standards and packages, and how to contribute. | 🟡 Partly met | The start page links to standards and other resources and points to contributing information, but says the integration guide for APIs and packages is missing. |
| 5 | Researchers: provide a way to try the federated analytics blueprint. | 🟡 Partly met | The start page links to two tutorials, but says a walk-through of the blueprint is missing. |
| 6 | Show the shared scope statement on the home page and each audience start page. | ✅ Met | Those four pages include the shared includes/scope.md snippet. |
| 7 | Dissolve Sandbox and move what is still useful into the audience sections. | ✅ Met | Sandbox is removed; its remaining useful pointers and tutorial material are routed to the new audience sections. |
| 8 | Merge Contribute and About into short pointers, including the ELIXIR Compute Platform, funding, contact, license, code of conduct, and contributing. | ✅ Met | about.md links to the community files and discussions, the Compute Platform, and the website listing funders. |
| 9 | Replace product documentation coverage with links to product docs. | 🟡 Partly met | The PR body says replacing the service pages with product-doc links is deferred to #64; this change moves the existing service pages instead. |
| 10 | Use the specified ELIXIR names and add a CI check for wrong spellings. | ✅ Met | CI runs scripts/check_names.py against the documentation-related paths. |
| 11 | Move pages into the new structure without rewriting them and mark gaps with short stubs. | ✅ Met | The existing pages are moved, and the three audience start pages identify the remaining work in stubs. |
Sourcery withdrew this approval because the latest commits introduced blocking findings.
Summary
Restructures the hub by audience: one navigation section per audience (Node operators, Partners and developers, Researchers), each with a "start here" page; Sandbox dissolved; Contribute and About merged into one page of pointers. Pages are moved, not rewritten (rewrites are #64-#66), except for fixing names. Old URLs redirect (
mkdocs-redirects, pinned in thedocsextra). A CI step checks the spelling of the names.Closes #63. Part of #61.
Decisions per page
index.mdThe scope statement is one snippet (
includes/scope.md) shown on the home page and on each "start here" page.Stubs (admonitions saying what is missing): Node operators (path from joining to running services, #64), Partners and developers (integration with the APIs and packages, #65), Researchers (walk-through of the blueprint, #66).
Unused images of the dropped Contribute page were removed. Redirects cover every old page, including the dropped ones (to
about/or the nearest page).Verification
mkdocs build --strict: passes.services/cloudregistry/,contribute/workflow/,about/contact/,sandbox/).python scripts/check_names.py: passes on the repo; flagsElixir,ELIXIR-On-Cloud,ELIXIR-on-Cloud,ELIXIR on-Cloud,ELIXIR on Cloud,ELIXIR Cloud,Elixir Europein a test file. Fixed names:ELIXIR-on-Cloud,ELIXIR-on-cloud,ELIXIR Cloud,elixir cloudbecameELIXIR On-Cloud.services/cloudregistry/,contribute/workflow/,about/contact/,sandbox/).Lane
Light lane: docs and CI config only (a documentation check script, no secrets, permissions or release workflow).
Declined review findings
Sourcery asked for the service pages to be replaced by links, for the joining guide, the integration guide and the blueprint walk-through: declined, they are the scope of #64, #65 and #66 (this PR moves pages and adds stubs). The four Sourcery findings on the names check were fixed and the funding pointer added (to the website, where the org profile says the funders are listed).
Open questions
None.
🤖 Generated with Claude Code