sneak 3e0694e6e0
All checks were successful
check / check (push) Successful in 59s
Widen the prettier gate to markdown and CSS everywhere (closes #12)
REPO_POLICIES.md scopes prettier to JS/CSS/Markdown/HTML, but script/fmt
and script/fmt-check covered only '*.md' - top-level markdown. The
canonical scripts use '**/*.md'. Both now run over '**/*.md' and
'**/*.css', and both header comments, which still described the old
top-level-only scope, were rewritten.

That brings themes/loravega/static/css/style.css into the gate. It is
inlined into every page by baseof.html via readFile, and its formatting
is whitespace-only: the minified <style> block in the built
public/index.html is byte-identical across the reformat, which is the
preceding commit.

Two paths are excluded, each with the reason recorded in
.prettierignore so the exclusion reads as a decision rather than an
oversight:

themes/loravega/layouts/ - these are not HTML. They are Go templates
carrying {{ define }}, {{ block }}, {{ .Content }} and
{{ readFile ... | safeCSS }}, and prettier has no Go-template parser; it
would fail or reflow the delimiters into markup Hugo cannot parse.
Covering them needs an out-of-tree plugin and therefore a package.json,
which this repo deliberately does not have.

content/ - excluded on measurement, not on the earlier assumption. With
content/ in scope, prettier re-wrapped one list item in
content/_index.md, and the rendered public/index.html changed with it:
the wrap landed as a literal newline between "7 PM at" and the following
<a> tag. HTML collapses that newline to a space, so the page looks the
same, but the published bytes do not match, and this content carries raw
div/span/br blocks that goldmark passes through verbatim because
hugo.toml sets markup.goldmark.renderer.unsafe = true. A formatter that
can silently change a published page is not worth the consistency.
archetypes/ stays covered - it is a template for new content, not
published output, and prettier leaves it unchanged.

Verified by extracting public/ from the built image before and after.
With the final scope, index.html, index.xml and sitemap.xml are
byte-identical; only the verbatim-copied public/css/style.css differs,
in whitespace. Each commit on this branch passes make check on its own -
the reformat lands first, under the old narrow glob that does not look
at CSS, so the widening commit arrives on an already-clean tree and no
merge commit is required to land it.
2026-08-09 16:19:54 +00:00

lora.vegas

Las Vegas Meshtastic and LoRa community website.

About

This site provides information about the Las Vegas mesh networking community, including:

  • Mesh channel configurations
  • Community coordination (Discord, Signal)
  • Meetup information
  • Local resources

Contributing

To contribute to this site, contact sneak@sneak.berlin for git repository access.

Technical Details

This is a static site built with Hugo. The site is deployed automatically via GitHub Actions.

Local Development

hugo server

Visit http://localhost:1313 to preview.

Build

hugo

Output will be in the public/ directory.

Entrypoints

This repository adheres to the Scripts to Rule Them All standard: normalized scripts in script/ are the entrypoints for the development workflow, and the Makefile targets are thin shims that call them. We provide:

  • script/bootstrap — install all build dependencies (git, make, go, hugo, node/npm) idempotently. Hugo is pinned to an exact version and installed with go install, which verifies it against sum.golang.org; the version is the HUGO_VERSION constant at the top of the script
  • script/setup — prepare a fresh clone: run script/bootstrap and install the git pre-commit hook
  • script/test — the correctness check: a clean hugo --minify production build
  • script/lint — a clean build that surfaces broken links and path collisions
  • script/fmt — format the repo's own top-level markdown docs with prettier
  • script/fmt-check — check that formatting (read-only)
  • script/check — run script/test, script/lint, then script/fmt-check; modifies no tracked files
  • script/docker — build the Docker image tagged with the project name
  • script/cibuild — the CI build; the Dockerfile runs make check
  • script/install-precommit — install the git pre-commit hook that runs script/check

Build the image through script/cibuild or script/docker only. Both pass a per-invocation CHECK_EPOCH build argument that the Dockerfile requires, so the make check layer can never be served from cache — without it Docker returns a green it did not earn. A bare docker build . fails closed on the Dockerfile's CHECK_EPOCH guard rather than caching its way to a false success.

A convenience make serve target runs hugo server for local preview.

License

Content is provided as-is for community use.

Description
No description provided
https://lora.vegas
Readme MIT 320 KiB
Languages
Shell 72.9%
Dockerfile 13.4%
CSS 8.1%
HTML 3.7%
Makefile 1.9%