Skip to content

Going mobile#34

Merged
iwillspeak merged 10 commits into
mainfrom
going-mobile
Mar 7, 2026
Merged

Going mobile#34
iwillspeak merged 10 commits into
mainfrom
going-mobile

Conversation

@iwillspeak
Copy link
Copy Markdown
Owner

Improved Mobile use. Makes hit areas bigger, and tweaks some nav elements to make moving around simpler.

Introduces "Card Summaries" which link from a bale to the items within it.

Align the left of items in the site nav. Reduce the
size of the anchor icons and align them to the top of the text.
Improve the TOC handling. Only h2s on standard pages in the main section. Deeper rendering now we have the space for it in the nav toc.
If a bale has no manual index, create an auto one.
Better Naviagation: Index pages now show cards for their child pages, making it easier to navigate large documentation sets.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the mobile navigation experience and introduces “card summaries” for bale index pages, enabling prominent links (with blurbs) to child pages/bales and adding a last-updated footer.

Changes:

  • Add card summary generation in the renderer and display them as an index card grid in-page plus a compact child link list in the TOC sidebar.
  • Adjust TOC rendering and add an inline [TOC] wrapper/label, plus new inline breadcrumbs on mobile.
  • Capture page last-modified time and render a “Last updated” line; update CSS/JS to increase header hit areas and tweak nav behaviors.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/toc.rs Adds a Nodes::len() helper used by new TOC rendering logic.
src/render/layout/html.rs Adds inline breadcrumbs, card rendering, last-updated footer, and refactors TOC rendering behavior.
src/render.rs Introduces CardSummary, changes PageKind::Index to carry summaries, and generates synthetic index pages when missing.
src/doctree.rs Tracks modified time per page and adds Page::synthetic() + first_paragraph() extraction for blurbs.
assets/style.css Updates header button styling for mobile, adds card styles, breadcrumbs tweaks, and last-updated styling.
assets/dark.js Applies shared header icon button styling and adjusts SVG sizing attributes.
AGENTS.md Documents new TOC and auto-index behavior and adds test/preview guidance.
.gitignore Ignores docs/examples/ scratch test pages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/render/layout/html.rs Outdated
Comment thread src/render/layout/html.rs Outdated
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Comment thread src/render/layout/html.rs
Comment thread src/toc.rs
iwillspeak and others added 3 commits March 7, 2026 10:36
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Reduce the "glare" from the accent colour by dimming it a little on
dark mode renders.
Comment thread AGENTS.md Outdated
@iwillspeak iwillspeak merged commit fca938f into main Mar 7, 2026
0 of 3 checks passed
@iwillspeak iwillspeak deleted the going-mobile branch March 7, 2026 10:51
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.

2 participants