Home / Admin

Admin & engineering

How this site is built, shipped, and versioned. sgit.ai is not hosted on a web server — it is a vault app: a set of HTML pages living inside an encrypted SG/Send vault, decrypted and rendered in your browser. The site about sgit is delivered by sgit.

Architecture

vault root
├── index.html · use-cases.html · security.html      # root pages
├── docs/*.html                                      # 8 documentation pages
├── vault/*.html                                     # 4 SG/Vault platform pages
├── admin/                                           # this section
│   ├── index.html · versions.html
│   ├── brief-design-improvements.md                 # brief for Claude Code
│   └── build/                                       # the build system itself
│       ├── build_pages.py                           # generates every page
│       └── validate.js                              # pre-push checks
├── assets/site.css · assets/site.js                 # shared, loaded at runtime
└── app.json                                         # auto-launch config

Build system

Every page is generated from a single Python script holding one shared template (nav, footer, bootstrap, version stamp) plus per-page content. Nothing is hand-edited twice: change the template once, regenerate, and every page updates consistently — including the version badge you can see in the nav.

Validation before every push

Release process

# 1. bump SITE_VERSION (v0.1.n — n increases on every push) + add a versions row
# 2. regenerate + validate
$ python3 admin/build/build_pages.py && node admin/build/validate.js
# 3. ship to the vault — the encrypted deployment
$ sgit commit -m "site vX.Y.Z: …" && sgit push
# 4. ship to git — same folder, second remote; GitHub Pages deploys from it
$ git add -A && git commit -m "site vX.Y.Z" && git push origin dev

One folder, one source of truth, two remotes: the same working tree is an sgit vault and a git repository (SGit-AI/SGit-AI__Website). Every release pushes both — sgit carries the encrypted history; git carries the public mirror and triggers the GitHub Pages deployment. A release isn't done until both remotes report in sync. See release history.

Design & contributions

A standing brief for Claude Code sessions proposing design improvements lives at admin/brief-design-improvements.md — it carries the constraints (authoring contract, self-contained assets, validation suite, version bump) that any change must respect.