Skip to content

Remove reader/focus mode feature#23

Merged
arivictor merged 2 commits into
mainfrom
remove-reader-mode
Jun 10, 2026
Merged

Remove reader/focus mode feature#23
arivictor merged 2 commits into
mainfrom
remove-reader-mode

Conversation

@arivictor

Copy link
Copy Markdown
Owner

What changed

Removes the reader/focus mode feature (the "Reader mode" toggle that hid the header, sidebar, and TOC to show only page content).

  • templates/layout.html — deleted the .focus-exit / html[data-focus-mode] CSS, the floating "Exit Reader Mode" button, the "Reader mode" toggle in the TOC tools, and the JS handling the toggle and its localStorage persistence.
  • site_template_nav_test.go — removed TestLayoutRendersFocusModeControls.
  • docs/getting-started/navigation.md — removed the paragraph documenting the toggle.

Why

The feature was redundant.

Notes for reviewers

go build ./... and the layout tests pass. Remaining reader references in the codebase are unrelated (io.Reader, "readers" as audience, etc.).

🤖 Generated with Claude Code

arivictor and others added 2 commits June 9, 2026 17:00
Reader mode (the "focus mode" toggle that hid navigation to show only
page content) was a redundant feature. This removes its CSS, the TOC
toggle button, the floating exit control, the supporting JS, the
template test, and the related documentation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 10, 2026 00:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Removes the reader/focus mode UI and behavior from the default site layout, and updates tests and documentation to match.

Changes:

  • Deleted reader/focus mode CSS, controls, and localStorage-backed toggle logic from the main HTML layout template.
  • Removed the layout test that asserted the presence of focus mode controls.
  • Updated navigation documentation to remove mention of the reader/focus mode toggle, and bumped the docs Docker image’s installed gomark CLI version.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
templates/layout.html Removes reader/focus mode styles, UI controls, and toggle JavaScript.
site_template_nav_test.go Drops the test that validated rendering of focus mode controls.
docs/getting-started/navigation.md Removes documentation describing the reader/focus mode toggle.
docs/Dockerfile Bumps the pinned gomark CLI version used to build the docs image.

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

Comment thread docs/Dockerfile
@arivictor arivictor merged commit 49b3920 into main Jun 10, 2026
5 checks passed
@arivictor arivictor deleted the remove-reader-mode branch June 10, 2026 00:38
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