Scope: Entire repository.
Purpose: Lightweight guidance for agents and contributors working on this static site.
Coding & Content Conventions
- Keep changes minimal and focused; prefer surgical edits to broad refactors.
- Do not commit local notes or environment artifacts.
tmp_changes.mdis for scratch context only. Do NOT committmp_changes.md. - HTML: single page
index.htmlis the entry point. Favor semantic sections and small, readable inline overrides when necessary. - CSS: primary stylesheet is
assets/theme.css. Minor one-off overrides may live inline inindex.htmlto avoid theme churn. - JS: Site behavior should live in
assets/script.js. Keep only the minimal theme boot script inline in<head>to avoid a flash of incorrect theme. Avoid large inline scripts at the end ofindex.html— consolidate into modules inassets/script.js.
Files to Avoid Committing
tmp_changes.md(explicitly ignored). Do NOT commit this file under any circumstance.- Local environment/cache folders (e.g.,
.idea/,.npm-cache/).
Build/Run
- This is a static site. Open
index.htmlin a browser or serve with any static file server.
Accessibility & UX
- Maintain clear color contrast for buttons/links.
- External links should open in a new tab with
rel="noopener noreferrer". - Prefer concise copy. Use
<details>to collapse verbose guidance.
Navigation & Theme
- The navbar uses IDs
#navbarand#navlist. Keep them stable for the theme script. - Theme is toggled via
<html data-theme="light|dark">; the single screenshot swaps source based on this attribute. - Theme toggle button icon should indicate the action (sun when current theme is dark; moon when current theme is light). JS sets
data-iconaccordingly on first paint. - Keep the early theme boot snippet in
<head>so dark mode applies before render.
Release Download UI
- The download dropdown is auto‑populated from the latest GitHub release, with clear OS/arch labels, sorted groups, and checksums excluded.
- Linux guidance: Desktops → Ubuntu Snap; other distros Flatpak. Servers → prefer native packages (.deb/.rpm).
- Logic for detection, labeling, sorting, and button updating lives in
assets/script.js(DownloadModule). Do not re‑add inline copies.
Review Checklist (before pushing)
- No accidental additions of
tmp_changes.mdor local IDE caches. - External links open in new tabs.
- Navbar sits flush at the top; no top gap.
- Single screenshot swaps correctly across themes.
- Theme toggle shows the correct icon on first paint (sun when dark; moon when light).
- No large inline scripts at the end of
index.html— verify logic exists inassets/script.js.