bamr87.github.io¶
This site's direction is to become the ultimate open home for this practitioner's public profile, résumé and work: data, tools, resources and transparency, with an inspectable Jekyll portfolio and a current résumé, for collaborators and the general public (constitution §1).
What this repo is¶
A Jekyll site on GitHub Pages, published at https://bamr87.github.io. It is both a profile/CV landing page and a blog, docs and notes collection, and it serves visitors (recruiters, clients, collaborators) and Amr as author. A change is done when the scripts tests pass, the prose gate is clean, every generator's --check is current, and the site still builds with the production config (bundle exec jekyll build). Agent, contributor and data files (AGENTS.md, CLAUDE.md, CHANGELOG.md, PRD.md, scripts/) are excluded from the build. docs/ is not, so it is published as plain pages.
Stack & commands¶
Jekyll 3.10 via the github-pages gem, the remote bamr87/zer0-mistakes theme, and Python 3 generators (PyYAML, pytest).
bundle install # Ruby deps: github-pages + the theme gem
bundle exec jekyll serve # production-like preview on :4002 (remote theme)
bundle exec jekyll serve --config _config.yml,_config_dev.yml # dev preview with the local jekyll-theme-zer0 gem
python3 -m pip install -r scripts/requirements.txt # generator deps (PyYAML, pytest)
python -m pytest -q scripts/tests # generator tests — run from the repo root
python3 tools/unwrap-prose.py --check # markdown one-paragraph-per-line gate
Layout¶
| Path | Holds |
|---|---|
pages/ |
All site content (collections_dir: pages): one _<collection>/ per collection — see docs/reference/collections.md |
_data/ |
Project registry, generated portfolio data, navigation menus, UI strings — see _data/README.md |
_config.yml, _config_dev.yml |
Production config, and the dev overlay that swaps in the local theme gem |
zer0.json |
The zer0-CMS console config: content folders and types. zer0-CMS registers this checkout and publishes to X and LinkedIn through channels each account connects in its studio. Check it with zer0-CMS's python -m sites.doctor . |
index.html |
The homepage dashboard (permalink: /), built from site.data.portfolio |
README.md |
The GitHub profile/CV, published at /profile/ |
assets/ |
Site images, scripts and SVGs (the theme ships the CSS). Keep each image under about 200 KB: photos as JPEG, screenshots and art as palette PNG (pngquant), animations as MP4 rather than GIF. .github/site-quality.yml warns when a scanned page loads more than 600 KiB of images |
scripts/ |
Generators and their tests — see scripts/README.md |
tools/ |
Vendored fleet tools: unwrap-prose.py, docs_index.py (never edit) |
docs/ |
Repo documentation: the docs index, ADRs, generated reference |
features/, verify/, test/evidence/ |
Feature index (features/v1), the user-scenario verify kit, and the evidence bundles (screenshots, report.json) its runner writes; test/ is excluded from the build |
.claude/ |
The profile-portfolio and verify-feature skills and the verifier agent |
Conventions¶
- Backlog of record: GitHub Issues with the fleet labels (
.github/sdlc.yml:backlog.mode: issues). - Definition of Done: the pull request checklist inherited from bamr87/.github (no template in this tree), plus the "done" bar above.
- Decisions: ADRs in
docs/adr/NNNN-slug.md, indexed indocs/adr/README.md. - Commits: Conventional Commits (
type(scope): description); the PR title is the squash subject. CI-authored commits append[skip ci]. - Branches:
feature/,fix/,docs/,refactor/,test/orchore/offmain. - Changelog:
CHANGELOG.mdis written by release-please (release.yml→ the hub'srelease-please.yml@v2, release typesimple). Never edit it by hand. - Front matter: set shared values (
layout,sidebar.nav, permalink) through_config.ymldefaults:by path, not per file. Usedraft: truefor unpublished content. Posts carrydateandlastmod. - Authors and dates:
author:is a key into_data/authors.yml(onlybamr87, also the site-wide default), never a display name. Posts take their date from the file name, so do not copy adate:into a new post; if a post's URL changes, keep the old one withredirect_from:(jekyll-redirect-fromis enabled). Every non-post collection page carries adate:no later than itslastmod(otherwise the theme prints the build time as "Published"); the two generators emit a fixedPAGE_DATE. Name new posts in lowercase with no apostrophes, because jekyll-feed derives each Atom<id>from the file name.python -m pytest -q scripts/testschecks all of this (test_site_metadata.py). - Never: push to
maindirectly, hand-edit a generated file, or commit_site/,Gemfile.lock,vendor/or.jekyll-cache/.
The theme is remote¶
_config.ymlsetsremote_theme: bamr87/zer0-mistakes, so there is no_layouts/or_sass/here, and_includes/holds one local override,_includes/core/footer.html(the theme's footer without its newsletter placeholder; see issue #27), and one site-only include the theme does not have,_includes/posts-timeline.html(the/posts/timeline and its Timeline / Cards / List views; its styles and script are scoped underptl-). Every layout (root,default,article,home, …) and include lives in bamr87/zer0-mistakes: fix markup, styling, navigation rendering and Liquid/layout errors there. This repo supplies content,_config.yml,_data/andassets/.- A theme tag needs its plugin in
_config.ymlplugins:(include_cachedneedsjekyll-include-cache); a missing one fails the build withLiquid syntax error … Unknown tag. - The two build modes resolve the theme differently, so a change that works locally can still break the published site:
| Mode | Config | Theme source |
|---|---|---|
| Production (GitHub Pages) | _config.yml |
remote_theme, downloaded at build (github-pages gem, Jekyll 3.10) |
| Local / Docker dev | _config.yml,_config_dev.yml |
remote_theme: false + the local jekyll-theme-zer0 gem |
Content and navigation¶
- Collections, their directories, permalinks and resolved defaults are generated into docs/reference/collections.md from
_config.yml. Posts are namedYYYY-MM-DD-title.md; subfolders ofpages/_posts/(gpt/,recipies/,reflections/,reports/) are categories. index.htmlis the homepage: a full-bleed dashboard oversite.data.portfolio, with inline CSS/JS scoped under.dashand its JS wrapped in a Liquidraw/endrawblock so Liquid leaves it alone.README.mdis a Jekyll page (permalink: /profile/), so its links are rendered on the site. Relative links to excluded files 404 there; link those by GitHub URL.- Navigation is
_data/navigation/*.yml: the navbar readsmain.yml, and a page picks its sidebar withsidebar.nav. The theme's navbar andnav-treereadchildren:, notsublinks:; withsublinks:the dropdowns silently do not render. - Reader feedback is the theme's widget, switched on by
page_feedback:in_config.yml: a floating "Improve this page" button and the inline trigger in the page action bar open one dialog that files a pre-filled issue in this repo, labelledpage-feedback. Without JavaScript both link to the issue form; the theme hard-codestemplate=page_improvement.ymlin that link while this repo ships.github/ISSUE_TEMPLATE/page_feedback.yml, so the fix belongs in bamr87/zer0-mistakes (#636), not here. Once it ships, addissue_template: 'page_feedback.yml'to the block.
Generated content¶
Edit the source, rerun the generator, never edit the output.
- Portfolio:
scripts/generate_portfolio.pyreads_data/projects.yml, adds live GitHub metadata, and writes_data/portfolio.yml,pages/_about/portfolio/index.mdand theAUTO:portfoliospan inREADME.md.--checkis its drift gate. It needs a token (from--token, thenFEATURES_GITHUB_TOKEN/GITHUB_TOKEN/GH_TOKEN, thengh auth token) or public rate limits. A project'slive_urloverrides the Live link (false/nonehides it). Skill:.claude/skills/profile-portfolio/. - Features index:
scripts/generate_features_index.py --mode=remote --owner=bamr87(or--mode=local --root=<workspace>) writespages/_about/features/index.mdfrom each repo'sfeatures/features.ymland its fallbacks. YAMLtagsmay be non-strings (a bare year): coerce tostrbefore joining.scripts/validate_features.pyis the standalone validator. - Collections reference:
python3 scripts/generate_collections_reference.pywritesdocs/reference/collections.md. A test inscripts/testsfails when it is stale. - Docs index:
python3 tools/docs_index.py --writeregenerates the span indocs/README.mdfrom each document's summary line (--check,--lint). - The nightly
generate-features-index.yml("Regenerate site indexes", 02:00 UTC) reruns the portfolio and features generators and commits with[skip ci].
Build and CI gotchas¶
- GitHub Pages builds and deploys from
mainwith its built-in pipeline; no workflow here deploys. Pushing tomainpublishes. - Workflows:
ci.yml(hubstandard-ci.yml@v2),markdown-oneline.yml(pushes the unwrap fix back to a PR),site-quality.yml,link-check.yml(htmlproofer on the built_site: no internal link to a missing page),verify.yml,conformance.yml,release.yml,claude.yml(@claude), and the nightlygenerate-features-index.yml. _config.ymlis not auto-reloaded: restartjekyll serveafter editing it. The site serves on port 4002 (port:in_config.yml;EXPOSE 4002in theDockerfile).- In a POSIX locale the theme's Sass fails with
Invalid US-ASCII character; build withLANG=C.UTF-8. - Docker uses the dev config:
docker build -t bamr87.github.io .thendocker run -d -p 4002:4002 -v "$PWD":/app --name bamr87.github.io-container bamr87.github.io. There is nodocker-compose.yml. - The scripts tests import
scripts.*, so run pytest from the repo root, not from insidescripts/.
Fleet context¶
Member of the bamr87 fleet, mounted in the hub as the submodule projects/bamr87.github.io. Commit and push here first; the hub only bumps its pointer. The hub's own tooling (tools/dash, its registry) does not run in this repo. Standards: https://github.com/bamr87/bamr87/tree/main/specs. The loops that act on this repo are the hub's shared gates (standard-ci, fleet-conformance, fleet-verify, site-quality), the hub's fan-out kits (which seeded tools/unwrap-prose.py, the SDLC files and the verify kit), the @claude handler and the nightly index regeneration.
Standard deviations¶
- UPS-DOC-08:
README.mdis over the 2,000-word budget because it is the published résumé at/profile/; its length is the CV itself, not repo documentation. - UPS-DOC-10:
README.mdkeeps the résumé's own order (front-matter title, About Me, dashboard, CV) instead of the portfolio skeleton's H1, tagline, Overview and Features, because it is a published CV page. It ends with Quick start and License, and links the docs index.
Governance¶
Read docs/constitution.md before changing anything: it is the highest-precedence rule set here and wins over this file when they disagree. It changes only through a numbered record in docs/amendments/, ratified by the maintainer merging the PR; agents propose, never merge. Every user-facing feature has a stable id in features/features.yml with status, location and the PRD requirement ids it serves; the PRD's "Feature catalog" block is generated from it (python3 <bamr87/bamr87>/tools/governance_lint.py prd-sync . --write; check with … check .). Never hand-edit that block or CHANGELOG.md.