Skip to content

README: awesome-readme layout, docs/ mirrored to the wiki, one README for nuget.org (v1.3.1) - #22

Merged
danielmeza merged 4 commits into
mainfrom
docs/readme-restructure
Sep 22, 2026
Merged

danielmeza merged 4 commits into
mainfrom
docs/readme-restructure

Conversation

@danielmeza

@danielmeza danielmeza commented Sep 22, 2026 •

Copy link
Copy Markdown
Owner

Makes the README easy to read and moves the long reference into docs/, which is now also the source of the wiki.

README (443 → 260 lines)

The new layout follows GitHub's README guidance (what it does, why it's useful, how to get started, where to get help, who maintains it) and makeareadme.com:

  • Top: badges, a one-paragraph description, links to the live demo, downloads, docs and site, a current screenshot, and a pointer to the port write-up.
  • Features.
  • Download: a direct link for every platform, plus the browser.
  • Quick start: a printf … | nc -w 1 localhost 9100 one-liner (tested against the app: it prints and cuts), the Monitor, and a library snippet.
  • "From WPF to Avalonia: what the migration cost": kept verbatim, with its before/after screenshots.
  • Documentation index, Contributing and support, project status, Credits and license.

Patterns from awesome-readme

A second pass follows the awesome-readme exemplars closest to this project (sniffnet, Terminal.Gui, electron-markdownify, httpie, The Lounge). From oss-readme-template it takes the problem statement and the "what it doesn't do" section.

  • Header: centered, with the app icon as the logo, a one-line description, badges and a row of section links.
  • Demo GIF (docs/demo.gif, 1.8 MB): the browser version receiving a receipt over TCP, dropping a job while the cover is open, and printing barcodes and 2D codes. Recorded in headless Chromium.
  • Features: a short problem statement first, then bold lead-ins on each feature.
  • Download table: a badge for each OS and direct links.
  • Troubleshooting: collapsible sections for macOS quarantine, Linux font libraries, port in use, libusb, and browser API support.
  • Limitations: names the main gaps.

One README for GitHub and nuget.org (and v1.3.1)

nuget.org renders package READMEs with raw HTML disabled (DisableHtml() in NuGetGallery's MarkdownService), ignores relative links, and only loads images from allow-listed hosts. Instead of maintaining a second README, build/PackageReadme.targets hooks $(BeforePack) and generates the package's copy of the repo README:

  • HTML to Markdown: the centered header, <img>, <a> and <details> become plain Markdown.
  • Pinned URLs: relative images point to raw.githubusercontent.com and relative links to github.com/.../blob/, both pinned to the packed commit.
  • Safety check: the build warns if any HTML survives.
  • Checked: I packed all 6 libraries (0 HTML tags in every README) and rendered the result with NuGetGallery's Markdig pipeline.
  • Version: bumped to 1.3.1. nuget.org only changes a README with a new package version, so tag v1.3.1 after merging.

docs/ as the single home, mirrored to the wiki

The wiki and docs/packages/ had drifted apart; web.md still described the retired Blazor app.

  • The README's long sections become user-guide pages: Supported-Commands, Connecting, Using-the-App, Architecture, and Building-and-Testing (which also covers how releases, the site and the wiki are published).
  • The wiki's library guides are imported, replacing docs/packages/.
  • ESCPOS.md moves to docs/ESC-POS-Notes.md.
  • docs/README.md becomes the wiki Home, and docs/_Sidebar.md its sidebar.
  • scripts/docs-to-wiki.sh and the new Wiki workflow publish docs/ to the wiki whenever it changes on main, rewriting links for the wiki.
  • Dry run against the current wiki: the 10 existing pages come out byte-identical, Home and the sidebar are updated, and 6 pages are added. From now on, edit docs in docs/, not in the wiki.

Checked

  • No content lost: every line of the old README is either still in the README, carried into a docs/ page, or deliberately rewritten (features, the download table, path fixes).
  • Links: every relative link and heading anchor in README.md and docs/*.md resolves. I fixed one broken #monitor anchor that came from the wiki.
  • Rendering: checked through GitHub's markdown API (README mode).

Challenge criteria (Avalonia Port Challenge: "builds for each platform you targeted, before-and-after screenshots, and your migration write-up in the README")

  • Builds for each platform: the Download table links the v1.3.0 assets for Windows x64, macOS arm64 and x64, and Linux x64, plus the browser demo.
  • Before/after screenshots: WPF on Windows, then Avalonia on macOS, Linux and in the browser, inside the write-up.
  • Migration write-up in the README: unchanged, and linked from the top of the README.
  • Public repo under an OSI license: MIT, linked from Credits and license.

After merge, the Wiki workflow's first run publishes the new pages. Its push uses GITHUB_TOKEN with contents: write, and I'll confirm that run succeeds.

🤖 Generated with Claude Code

danielmeza and others added 4 commits September 21, 2026 23:43
The wiki and docs/packages had drifted apart (docs/packages/web.md still described the retired
Blazor app). docs/ now holds everything, with page names that match the wiki:

- The README's long sections become user-guide pages: Supported-Commands (with the emulated printer
  spec and "Adding a command"), Connecting, Using-the-App (Monitor, printer state, export, render
  backend), Architecture (packages, one app with two heads, fonts) and Building-and-Testing (plus how
  releases, the site and the wiki are published).
- The wiki's library guides (newer than docs/packages) are imported with file links, replacing
  docs/packages/.
- ESCPOS.md moves to docs/ESC-POS-Notes.md.
- docs/README.md indexes the pages and becomes the wiki's Home; docs/_Sidebar.md is its sidebar.

Nothing from the old README is dropped: every section lives on in docs/, with repo paths fixed for
the new location (for example, EscPos/Commands is now src/CrossEscPos.Core/EscPos/Commands).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
scripts/docs-to-wiki.sh mirrors docs/ into a wiki checkout and rewrites links for the wiki: page links
drop ".md", README.md becomes Home, ../ repo paths point at GitHub, and sibling images load from
raw.githubusercontent.com. The Wiki workflow runs it when docs/ changes on main and pushes the result
with GITHUB_TOKEN.

Dry run against the current wiki: the existing 10 pages come out byte-identical, Home and _Sidebar
are updated, and the 6 new user-guide pages are added.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Restructured along GitHub's and makeareadme.com's guidance (what it is, why it's useful, how to get
started, where to get help, who maintains it), with the long reference moved to docs/:

- Badges, a one-paragraph description, links to the live demo, downloads, docs and site, a current
  screenshot, and a pointer to the port write-up.
- Features, Download (direct links for every platform plus the browser), Quick start (a tested
  `printf | nc` one-liner, the Monitor, and a library snippet).
- The "From WPF to Avalonia" write-up, kept verbatim, with its before/after screenshots.
- Documentation index, Contributing and support, project status, Credits and license.

443 lines down to 194.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Follows the READMEs curated in matiassingers/awesome-readme that are closest to this project
(sniffnet, Terminal.Gui, electron-markdownify, httpie, The Lounge), plus the "what it doesn't do"
section from 0xelitesystem/oss-readme-template:

- Centered header: the app icon as the logo, a one-line description, a badge row and a row of
  section links.
- A demo GIF as the hero (docs/demo.gif, 1.8 MB). It shows the browser version, served by the SignalR
  host, receiving a receipt over TCP, dropping a job while the cover is open, and printing barcodes
  and 2D codes. It was recorded in headless Chromium and replaces the static screenshot.
- A short problem statement before the features, and bold lead-ins on each feature.
- A download table with a badge for each OS and direct links.
- Troubleshooting in collapsible sections: macOS quarantine, Linux font libraries, port in use,
  libusb, and Web Serial/WebUSB browser support.
- A Limitations section that names the main gaps and replaces the one-line project status.

The macOS note uses a plain blockquote instead of a [!NOTE] alert because NuGet also shows this
README, and it doesn't render GitHub alerts.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@danielmeza
danielmeza merged commit 50bc3cf into main Sep 22, 2026
1 check passed
@danielmeza danielmeza changed the title README: shorter, task-first layout; docs/ as the single home, mirrored to the wiki README: awesome-readme layout, docs/ mirrored to the wiki, one README for nuget.org (v1.3.1) Sep 22, 2026
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