Skip to content

docs: terminal-aesthetic refresh - #343

Open
yjp20 wants to merge 14 commits into
glide-browser:mainfrom
yjp20:docs-terminal-refresh
Open

docs: terminal-aesthetic refresh#343
yjp20 wants to merge 14 commits into
glide-browser:mainfrom
yjp20:docs-terminal-refresh

Conversation

@yjp20

@yjp20 yjp20 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

A visual and structural refresh of the docs site, leaning back into the terminal aesthetic of The Monospace Web that docs.css is based on.

Styling

  • Landing page: keymap sections are TUI-framed panels with titles on the border, terminal-style download buttons and platform switcher (inverted > macOS selection), framed demo video, and the tutor's ascii GLIDE banner as the page header
  • Site-wide: squared-off borders everywhere (code blocks, admonitions, search, buttons — no radii/shadows/transitions), fixed inline code being dark-on-light in light mode

Search

The pagefind modal is restyled as an fzf-style command palette:

  • wide layout, > prompt, one result per line with amber match highlights
  • full header paths per result (e.g. Keys > Syntax > Modifier keys), built in processResult by walking pagefind's anchor data
  • whole-row clickable, 25 results per page, load-more line
  • changelog versions demoted ### so paths include the version (e.g. Changelog > 0.1.63a > Changes); the TOC now groups by the shallowest selected heading level to support h2[id] selectors

Navigation

  • sidebar grouped into Docs / Reference / Misc tree sections
  • Search (/) entry replaces the / button
  • fixed the sticky sidebar overflowing the viewport (body top padding pushed the 100vh box down)
  • fixed the platform switch selection bar not reaching its frame border

API reference

  • entries are -bulleted and indented by heading depth, with bodies indented along with their heading (tagged at runtime in docs.ts; the rendered markdown is a flat sibling list so CSS alone can't scope "until the next heading")
  • method signatures (invisible headers wrapping a pre) render as normal entry lines
  • the generated heading prefix is removed from build-api-reference.mts and api.md

Logo

New logo: the vim command line — a : prompt and the amber block cursor (logo.svg + theme-aware logo-inline.svg via currentColor, inlined in the sidebar where the cursor blinks on hover, SVG favicon with PNG fallback).

Notes for review

  • Authored without the local toolchain (no node on this machine), verified against a static mirror of the live site with the modified assets — please run pnpm dev:docs + a pagefind reindex to confirm the real build, especially the API page and search
  • Search result paths for the changelog only include versions after reindexing
  • The in-browser branding (app icon, logo.png/logo.webp/logo1024.png, og:image) still uses the feather — rasterizing the new logo needs the build toolchain, left for a follow-up

🤖 Generated with Claude Code

yjp20 and others added 14 commits July 26, 2026 21:12
- restyle the landing page: TUI-framed keymap panels, terminal-style
  download buttons/platform switch, blinking prompt cursor
- square off borders/radii across the docs (code blocks, admonitions,
  search, buttons) to match the monospace-web base
- group the sidebar into Docs / Reference / Misc tree sections
- restyle search as an fzf-style command palette: one entry per line
  with full header paths (via processResult), amber match highlights,
  whole-row links, and a larger default page size
- demote changelog versions to h2 so header paths include them, and
  group the TOC by the shallowest selected heading level to support
  h2-only selectors

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- drop the `• ` bullet prefix from generated API headers and indent
  entries by heading depth instead, including method signatures
  rendered as invisible headers
- replace the `/` search button with a `Search (/)` entry at the top
  of the sidebar tree
- tighten the search palette spacing by overriding pagefind's default
  drawer gap and message sizing

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Entry bodies are tagged with their heading depth at runtime as the
rendered markdown is a flat list of siblings, so this cannot be done in
CSS alone.

Also scopes the indentation to the API page; `code-heading` applies to
any heading containing code, so the previous rules leaked into other
pages.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
A Conway's Game of Life glider - the classic hacker emblem, and
literally a glider. `logo.svg` is the tiled app-icon variant and
`logo-inline.svg` uses currentColor so it adapts to the surrounding
theme when inlined.

Not wired into the site chrome yet.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- inline the currentColor glider in the sidebar heading so it follows
  the theme
- prefer the SVG favicon with a PNG fallback
- deploy the new logo assets

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The glider now sits in the tree gutter, as the root of the tree.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The sidebar glider steps through its four actual Life generations while
hovered. The svg grid is the union of all four generations' cells, each
classed with its alive-mask which CSS steps through discretely; the
amber cell is alive in every generation so the accent persists.

Gated behind prefers-reduced-motion.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The global `label` styles round the width down to a whole ch.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
A two-facet paper dart mid-glide: wing in currentColor (theme-aware
when inlined), keel in the site's amber accent. On hover it glides
up-right. Replaces the Game of Life cells and their animation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Both are bordered boxes inset from the viewport edges; the mobile
drawer keeps just a right border.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This reverts commit 81cf8aff7c71c92e4aa4d5c05a292dea1488d2f3.
The body's top padding pushed the 100vh sidebar one line down, so it
overflowed the viewport bottom until scrolled past the padding. Cancel
it with a negative margin and pin the flex item to the start.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Replaces the `> Glide` prompt heading and its blinking cursor.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The vim command line as a mark: a currentColor `:` prompt (theme-aware
when inlined) and the amber block cursor. On hover the cursor blinks.

Co-Authored-By: Claude Fable 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