Restructure README.md into the canonical section set #11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
REPO_POLICIES.mdmandates a fixed set of README sections. This README has adifferent set, written before the standard was applied here.
Required: Description, Getting Started, Entrypoints, Rationale, Design,
TODO, License, Author.
Present: About, Contributing, Technical Details (with Local Development and
Build subsections), Entrypoints, License.
So
EntrypointsandLicenseare correct;Description,Getting Started,Rationale,Design,TODO, andAuthorare all missing, andAbout,Contributing, andTechnical Detailsare non-standard headings.Requirements
Description — per policy, "First line must include the project name,
purpose, category (web server, SPA, CLI tool, etc.), license, and author." The
canonical form is the first prose line under the
# lora.vegastitle; aliteral
## Descriptionheading is not required. Something of the shape: name,that it is a static site, the license, and
@sneakas author. This depends onthe license chosen in #10 — if #10 is not yet resolved, write the sentence
without the license clause and leave the License section as-is; #10 will fill
both in. Do not guess a license here.
Getting Started — a copy-pasteable install/usage code block. For this repo
that is the fresh-clone path:
make setupthenmake serve, and thehttp://localhost:1313preview URL. Fold the existing "Local Development" and"Build" content into this section.
Entrypoints — already present and correct in substance. Verify it opens by
stating the repo adheres to the
Scripts to Rule Them All
standard with that link (it does). Keep it where the canonical order puts it:
after Getting Started, before Rationale.
Rationale — why this exists. The Las Vegas Meshtastic/LoRa community needs
one durable, linkable place for channel configs and group links that does not
live inside a Discord or Signal thread.
Design — how it is structured. A single-page Hugo site; content in
content/_index.md; a minimal vendored theme inthemes/loravega/whosebaseof.htmlinlinesstatic/css/style.cssviareadFileso the site shipsas one HTML document with no external CSS request; built to
public/byhugo --minify; deployed to Cloudflare Pages by.gitea/workflows/deploy.yml.TODO — the policy requires a TODO section in the README.
TODO.mdalreadyexists at the root and is the live task list. Satisfy this by pointing at it:
a short section linking
[TODO.md](TODO.md). Do not duplicate the task list intwo files — they will diverge.
Contributing — not a mandated section, but the existing content (contact
sneak@sneak.berlin for repo access) is useful and should not be dropped. Fold
it into Getting Started or keep it as an extra section; extra sections are
permitted, the required eight just have to be present.
Author —
[@sneak](https://sneak.berlin). Must be the last section.Also fix the stale claim in the current text: "The site is deployed
automatically via GitHub Actions." It is Gitea Actions, to Cloudflare Pages.
Definition of done
README.mdcontains all of: a Description first line meeting the policyshape,
## Getting Started,## Entrypoints,## Rationale,## Design,## TODO,## License,## Author— with## Authorlast.the current
Makefiletargets.and the local-preview instructions survive somewhere.
make fmthas been run andmake fmt-checkpasses (prettier, 4-space tabs,proseWrap: always, 80-column hard wrap).make checkpasses andscript/cibuildsucceeds.TODO.mdupdated in the same commit; the "Rework README.md into thestandard sections" Future Steps entry is removed as completed.
Explicitly out of scope
Leave it untouched here.
## Quick Startsection. The reference README in thepromptsrepohas one, but it is not in the required set and this repo is small enough that
Getting Started covers it.
Ref:
REPO_POLICIES.mdREADME requirements;EXISTING_REPO_CHECKLIST.md.Implementation plan
Branching from current
main(0070fdb). Single commit,README.md+TODO.md.Target section order,
## Authorlast:# lora.vegas: name, that it is asingle-page static Hugo site for the Las Vegas Meshtastic/LoRa community,
and
@sneakas author. No license clause — #10is unresolved, so per this issue's own instruction the sentence ships
incomplete and #10 fills it in.
Makefile, which declares exactlybootstrap setup test lint fmt fmt-check check docker hooks serve. So:git clone/cd/make setup/make serve, thenhttp://localhost:1313. Note there is nomake buildtarget — the existing README's "Build:hugo" content maps tomake test, which ishugo --minifywriting topublic/. Also folds inthe contribute contact (sneak@sneak.berlin for repo access) so it is not
lost.
Scripts to Rule Them All
link kept verbatim. One correction found while verifying it against the
scripts: the
script/fmtbullet still says "the repo's own top-levelmarkdown docs", which #12 made
false —
script/fmtnow runs prettier over'**/*.md'and'**/*.css'.The
script/checkorder (test, lint, fmt-check) and theCHECK_EPOCH/bare-
docker buildparagraph are already accurate and stay.links, rather than a Discord or Signal thread.
content/_index.md,themes/loravega/layouts/_default/baseof.htmlinliningthemes/loravega/static/css/style.cssviareadFile ... | safeCSS,hugo --minifytopublic/, Cloudflare Pages via.gitea/workflows/deploy.yml.[TODO.md](TODO.md), no duplication.untouched ("Content is provided as-is for community use."). No
LICENSEfile added; that is #10's.
[@sneak](https://sneak.berlin), last.Also fixes the stale "deployed automatically via GitHub Actions" claim: it is
Gitea Actions, publishing to Cloudflare Pages.
TODO.md: the "Rework README.md into the standard sections" Future Steps entryis removed and a Completed Steps entry added, in the same commit.
Verification:
make fmt, thenmake fmt-check,make check, andscript/cibuildwith the check layer confirmed executed rather thanCACHED.Nothing outside
README.md/TODO.mdis touched, so the deploy path isunaffected.
Implemented in #35 (one commit,
9bfc37b).All eight required sections are present in canonical order with
## Authorlast, and the non-standard About / Contributing / Technical Details headings
are gone without losing what they held: the "what this site publishes" bullet
list moved under the Description, and the sneak@sneak.berlin contribute contact
plus the local-preview instructions moved into Getting Started.
Two corrections beyond the restructure itself:
publishing to Cloudflare Pages.
script/fmtEntrypoints bullet still described the top-level-markdownscope that #12 replaced with
'**/*.md'and'**/*.css'. The rest of Entrypoints checked out against thescripts, including the test/lint/fmt-check order and the
CHECK_EPOCHguardparagraph.
Getting Started was written against the current
Makefilerather than carriedover. Worth recording: there is no
make buildtarget, so the old"Build:
hugo" instruction becamemake test, and the old"Local Development:
hugo server" becamemake setupthenmake serve—make setupis what puts the pinned Hugo on PATH in the first place, which theold text never said.
License is untouched as instructed: heading in canonical position, body still
"Content is provided as-is for community use.", no
LICENSEfile added. TheDescription sentence omits the license clause the policy asks for;
#10 completes both.
Verified:
make fmtrun andmake fmt-checkclean;make checkgreen andWARN-free;script/cibuildgreen with themake checklayer genuinelyexecuted rather than served from cache (both hugo builds and the prettier check
appear in the layer's output), with the
script/bootstraplayer above it stillcached as intended.
TODO.mdis updated in the same commit.