Skip to content

Add a user guide, built as a versioned GitHub Pages site - #76

Merged
slominskir merged 3 commits into
mainfrom
user-guide
Nov 16, 2026
Merged

slominskir merged 3 commits into
mainfrom
user-guide

Conversation

@slominskir-coding-agent

@slominskir-coding-agent slominskir-coding-agent Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Adds a user guide for JAM, set up like dtm's: Markdown in docs/user-guide that reads on GitHub, built into a Zensical website and published to GitHub Pages for each release.

The guide

  • Concepts: facilities, RF segments and beam destinations, beam modes, credited controls and verification teams, verification status, the director's permission, approval, expiration and automatic reduction, roles.
  • Authorizations: reading a facility's page, changing an authorization and the save rules, what happens after a save, restoring permission after a reduction, history.
  • Verifications: the Verifications tab, a control's and a destination's pages, verifying and downgrading controls, components, history.
  • Expirations and notifications: when the checks run, what expiration does, who gets which email and log entry, the upcoming notices.
  • Inventory and Administration: the Inventory pages, the Setup tab and settings, regular admin tasks, forcing the expiration check, what is changed only in the database.

It is written from the code (controllers, facades, JSPs, schema); I didn't check it against a running app.

The website

  • zensical.toml, pyproject.toml and uv.lock: the same Zensical version and theme as dtm.
  • CI and CD call general-workflows' reusable user guide workflows (v2.1.0, @v2), as dtm does now:
    • ci.yaml's user-guide job builds the site with --strict, which fails on a link to a missing page or heading (checked locally by breaking an anchor).
    • cd.yaml's user_guide_publish job publishes each release to the gh-pages branch in vX.Y.Z/ and latest/, with a front page listing the releases.
  • README links the guide at https://jeffersonlab.github.io/jam/latest/ and says how to build it; the demo database's Help tab links it too.

Before it goes live

  • GitHub Pages isn't enabled on this repository yet. After the first release that includes this, set Settings → Pages to deploy from the gh-pages branch, root folder. Until then the README's guide link is a 404.
  • Production's HELP_DOC_CSV setting can point to https://jeffersonlab.github.io/jam/latest/ to put the guide on the Help tab.

Found while writing it

These are documented as the app behaves, not changed here:

  • The verification dialog offers only Verified and Not Verified, so Provisionally Verified can't be set in the app.
  • JAM's own emails ignore EMAIL_ENABLED and EMAIL_DOMAIN_NAME (they hard-code @jlab.org), and EMAIL_TESTING_ENABLED doesn't redirect watcher emails.
  • Adding a control on the Participation page makes the destination Not Verified, but leaves the director's permission in place until someone changes it.

🤖 Generated with Claude Code

JAM had no user documentation beyond the README's overview. A Markdown
user guide in docs/user-guide now explains the concepts (facilities,
segments and destinations, credited controls, approval, expiration and
roles), how authorizers change an authorization, how verification teams
verify and downgrade controls, the expirations and the emails and log
entries they cause, the Inventory tab, and administration. It is written
from the code, so it describes what the app does today.

As in dtm, Zensical builds the same Markdown into a website
(zensical.toml, with uv pinning its tools), and the guide still reads on
GitHub. `uv run --locked zensical build --strict` builds it, failing on
a link to a missing page or heading. user-guide-index.py writes the
Pages front page listing each release's guide, for the release job that
publishes it to the gh-pages branch in v1.2.3/ and latest/; that job and
the CI build job are workflow changes, added separately.

The README links the guide and says how to build it, and the demo
database's Help tab links it too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
slominskir-coding-agent Bot and others added 2 commits November 15, 2026 19:34
general-workflows v2.1.0 has the reusable user-guide-build and
user-guide-publish workflows, and the publish workflow carries the
script that writes the Pages front page, so user-guide-index.py goes.
The README says CI and releases build and publish the guide with those
workflows; the calls to them are a workflow change, added separately.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci.yaml's new user-guide job builds the user guide's website with
user-guide-build.yaml on every pull request, failing on a link to a
missing page or heading, and cd.yaml's new user_guide_publish job
publishes each release's guide to GitHub Pages with
user-guide-publish.yaml (general-workflows v2.1.0 and later).

It is a commit of its own because the agents' GitHub App may not push
workflow files, so a maintainer pushes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@slominskir
slominskir merged commit 0a175cc into main Nov 16, 2026
7 checks passed
This was referenced Nov 16, 2026
slominskir pushed a commit that referenced this pull request Nov 16, 2026
Release the facility manager and logbook editing for administrators
(#77) and the new user guide (#76).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant