Skip to content

docs: GitHub palette, a real landing page, and three corrections - #39

Closed
lestex wants to merge 3 commits into
mainfrom
docs-github-theme
Closed

docs: GitHub palette, a real landing page, and three corrections#39
lestex wants to merge 3 commits into
mainfrom
docs-github-theme

Conversation

@lestex

@lestex lestex commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Restyles the site and fixes what it got wrong.

Look

Stock Material in deep purple became GitHub's own Primer tokens, so a screenshot of the docs sits beside a screenshot of the repo without the two reading as different products. Both schemes go through custom, handing Material the variables in docs/stylesheets/torrnado.css.

The landing page now leads with the wordmark, a tagline, two calls to action and the TUI in a terminal frame, then a stat bar, a feature grid and a tabbed install block. Content width is unchanged — the nav and table of contents stay, so every page still measures the same.

One trap worth knowing: Material paints the header background from --md-primary-fg-color and its text from --md-primary-bg-color. The names read backwards, and I had them inverted in the light scheme — white text on a white header. Caught by actually loading the page in both schemes.

Corrections

Found by checking each page against the code rather than reading it:

Claim Reality
list shows "one torrent per two lines… a thin progress underline beneath the name" renderRow returns one line; progress is a column, and progressCell's comment says it replaced the underline
the command palette section, its ten-row table and the quoting paragraph were each duplicated verbatim on the same page
palette accepts :remove/:remove! it also accepts :rm/:rm!; the Files tab also takes =/_ so priority needs no shift
release ends git push --follow-tags impossible — main is protected; the commit goes through a PR and the tag is cut on the merge commit
docs/CNAME "keeps it across deployments" Pages ignores that file for build_type: workflow; the API reported cname: null until the domain was set explicitly

Checked and found accurate, so untouched: every CLI subcommand and flag against --help, all TUI keys against the keymap, every config key and section against the struct, and all eight theme names.

Verified with mkdocs build --strict and by loading the site in both light and dark.

lestex added 3 commits August 7, 2026 13:50
The site was stock Material in deep purple, and the home page opened with
a wall of prose. Both now look like what they document.

The colours are GitHub's own Primer tokens rather than approximations, so
a screenshot of the docs sits beside a screenshot of the repo without the
two reading as different products. Both schemes go through `custom`,
which hands Material the CSS variables in docs/stylesheets/torrnado.css.

The landing page leads with the wordmark, a two-line tagline, two calls to
action and the TUI itself in a terminal frame, then a stat bar, a feature
grid and a tabbed install block. Content width is unchanged -- the nav and
table of contents stay, so every page still measures the same.

Note the light scheme's header tokens: Material paints the header
background from --md-primary-fg-color and its text from
--md-primary-bg-color. The names read backwards, and getting them the
wrong way round gives white text on a white header, which is invisible
rather than merely ugly.
Three things the docs asserted that are not true.

The TUI page described the list as "one torrent per two lines: the data
columns, and a thin progress underline beneath the name", and its layout
diagram drew that. Progress became a column -- a bar then its percentage
-- and renderRow returns exactly one line per torrent; the comment on
progressCell even says it replaced the underline. Diagram and prose both
redrawn, and the narrow-pane behaviour said out loud.

The command palette section appeared twice on the same page, the same
ten-row table verbatim, and the paragraph about quoting appeared twice
after it. One of each survives. While there, the table now lists the
`:rm`/`:rm!` aliases the palette accepts, and the Files tab's `=`/`_`
priority keys, which spare you the shift.

The release ritual ended `git push --follow-tags`, which cannot work:
main is protected, so the changelog commit goes through a pull request and
the tag is cut on the merge commit afterwards. Tagging the local commit
instead names one that is not on the branch.
The header claimed docs/CNAME keeps the custom domain across deployments.
It does not: the file is deployed and served, but Pages only reads it to
configure a domain for branch-based sites, not for build_type: workflow.
The API reported cname: null until the domain was set explicitly.

Also worth writing down, because it cost an afternoon: until Pages is
enabled at all, the build job passes and only deploy fails, with a bare
HttpError: Not Found that says nothing about which setting is missing.
@lestex lestex closed this Aug 7, 2026
@lestex
lestex deleted the docs-github-theme branch August 7, 2026 17:58
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