Add the site, with a settings reference made from the code (#26)

tools/settings_ref.py writes docs/settings.md from the apps'
ModemSettings: on Android each setting's DataStore key, kind, default and
comment (and it fails on a setting with no key); on iOS each setting and
the Keychain name of the secrets. The iOS settings that took the comment
of the one above them get their own.

The Pages workflow builds docs/ and the README with brand's theme, and
fails if docs/settings.md is out of date; the Android and Apple workflows
skip the site's files.


Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
NeoandClaude authored and GitHub committed 2026-11-05 18:12:28 -08:00
1 parent 30cd2e2289
commit 5a2ca6e164
9 files changed
+334 -5

No files matched your search

+4 -3
View File
@@ -27,14 +27,15 @@
name: Android
# (a branch's commits run once, as its pull request: pushed, only main's;
# a change to docs alone runs nothing: the Markdown, docs/ and COPYING)
# a change to docs alone runs nothing: the Markdown, docs/, COPYING and
# the site's files, which pages.yml builds)
on:
push:
branches: [main]
tags: ["v*"]
paths: ['**', '!**.md', '!docs/**', '!COPYING']
paths: ['**', '!**.md', '!docs/**', '!COPYING', '!mkdocs.yml', '!.github/workflows/pages.yml', '!tools/settings_ref.py']
pull_request:
paths: ['**', '!**.md', '!docs/**', '!COPYING']
paths: ['**', '!**.md', '!docs/**', '!COPYING', '!mkdocs.yml', '!.github/workflows/pages.yml', '!tools/settings_ref.py']
workflow_dispatch:
# a newer commit on a pull request cancels the run before it (main's all run)
+2 -2
View File
@@ -13,9 +13,9 @@ name: Apple
on:
push:
branches: [main]
paths: ['**', '!**.md', '!docs/**', '!COPYING']
paths: ['**', '!**.md', '!docs/**', '!COPYING', '!mkdocs.yml', '!.github/workflows/pages.yml', '!tools/settings_ref.py']
pull_request:
paths: ['**', '!**.md', '!docs/**', '!COPYING']
paths: ['**', '!**.md', '!docs/**', '!COPYING', '!mkdocs.yml', '!.github/workflows/pages.yml', '!tools/settings_ref.py']
workflow_dispatch:
# a newer commit on a pull request cancels the run before it (main's all run)
+22
View File
@@ -0,0 +1,22 @@
# The app's site, https://d-modem.github.io/app/: docs/ and the README with
# brand's shared theme and workflow (brand's docs/sites.md). A pull request
# builds it, main deploys it. It fails if docs/settings.md isn't what the
# apps' ModemSettings make now (tools/settings_ref.py).
name: Pages
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: true
jobs:
site:
uses: D-Modem/brand/.github/workflows/site.yml@main
with:
prepare: python3 tools/settings_ref.py --check