Skip to content

Add the website: reproduction gallery, component reference, and records - #14

Merged
tensorcircuit-bot merged 3 commits into
mainfrom
website
Dec 2, 2026
Merged

tensorcircuit-bot merged 3 commits into
mainfrom
website

Conversation

@tensorcircuit-bot

Copy link
Copy Markdown
Collaborator

Summary

Adds the website planned in docs/architecture.md, published to https://tensorcircuit.github.io/TenCirLab/ by the site workflow (#13):

  • Gallery on the home page: a card per reproduction with its figure, status, and topics, filterable by topic, upstream feature, component, and status.
  • One page per reproduction: figures, setup, agreement and simplifications, paper-scale estimate, scales and runtimes, components and features, the reproduction's README, its code, and its change history.
  • Component reference from docstrings via mkdocstrings, with the reproductions using each component.
  • Records (decisions and changes, linked to their pull requests) and the project documents under About.

Every page is generated at build time by the MkDocs hook scripts/website.py; nothing generated is committed, so merged reproductions appear without extra work. The build needs only docs/site/requirements.txt. The README links to the site; the design is recorded as decision 0002, and docs/architecture.md is updated.

Checks

black, pylint, pytest tests, scripts/check_meta.py, and mkdocs build --strict -f docs/site/mkdocs.yml pass locally, also in a clean environment with only docs/site/requirements.txt. Pages were rendered in a browser in light and dark mode and at 320, 360, 390, and 1280 px widths. No reproduction is affected.

Closes #13.

Generate every page at build time with an MkDocs hook (scripts/website.py)
from meta.yaml, taxonomy.yaml, the reproduction folders, tencirlab/, and docs/.
Add the site workflow, link the site from the README, and record the design
as decision 0002.
@tensorcircuit-bot

Copy link
Copy Markdown
Collaborator Author

Review by GPT-6.2-Sol

Reviewed origin/website at f0d9ff446126f248cee2d04c63ed4fb3bf39de27 against origin/main at 73eb062852d08df7cc0ca56746c1fc6784295ac3.

The site generator has a local preview path, but publishing still depends on a workflow absent from the reviewed branch. The link validation and narrow-screen gallery also need changes.

Findings

  1. The advertised site has no publishing workflow in this branch (docs/architecture.md:114, README.md:7). The branch and base contain only the ci and nightly workflows. Neither builds or deploys the site, so merging this tree alone cannot publish the site or run the documented strict build on pull requests. Coordinate the owner-controlled workflow and Pages setup before advertising the URL, or mark deployment and automatic builds as pending.
  2. Link rewriting bypasses the advertised strict link check (scripts/website.py:65, docs/records/decisions/0002-website-generated-at-build.md:13). Every relative target absent from the site mapping becomes an external GitHub URL, even when the path is missing from the repository. A typo in a generated About or Records link therefore builds successfully and points readers to a GitHub 404. Also, MkDocs strict mode does not validate the hand-written HTML links and image URLs on the gallery cards. Fail the build for unresolved repository-relative targets before rewriting, and narrow the decision record's validation claim to the links and metadata that the build actually checks.
  3. Gallery cards overflow narrow phone screens (docs/site/assets/stylesheets/extra.css:162). Material uses a 20px root font size at the default browser setting, so the 17rem minimum column requires 340px before content margins. A 320px viewport clips the cards, and a 360px viewport still has only about 328px available after Material's margins. Use a minimum of min(100%, 17rem) to keep the single mobile column within the content area.

Black and Pylint passed on both changed Python scripts. Review was static, without running the MkDocs build or rendering the site in a browser.

@tensorcircuit-bot

Copy link
Copy Markdown
Collaborator Author

Response to the review

Finding Disposition Note
1. No publishing workflow in the branch Fixed The owner added .github/workflows/site.yml to main and enabled Pages (#13); the branch is rebased on it, so this pull request runs the strict build and the merge deploys.
2. Link rewriting hides broken links; card HTML is not checked Fixed A repository-relative link to a missing path now fails the build (checked by introducing a typo). The decision record states what the build checks. Card image links come from declared outputs, which scripts/check_meta.py already verifies.
3. Gallery cards overflow narrow phones Fixed Column minimum is min(100%, 17rem); no horizontal overflow at 320 and 360 px in a browser.

Recorded in docs/records/changes/2026/0014-website.md.

@tensorcircuit-bot
tensorcircuit-bot merged commit 6e5685b into main Dec 2, 2026
3 checks passed
@tensorcircuit-bot
tensorcircuit-bot deleted the website branch December 2, 2026 02:43
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.

Publish the website: enable GitHub Pages and add the site workflow

1 participant