mirror of
https://github.com/D-Modem/hardware.git
synced 2026-11-28 17:48:05 -08:00
firmware/tools/protocol_ref.py writes docs/protocol-reference.md from protocol.h, line_proto.h and wb_proto.h: every request, constant and enum, and each wire struct's fields with their offsets and sizes (checked against the headers' _Static_asserts). The firmware workflow and the new Pages workflow fail if the page is out of date. The site is docs/, the README, the specs and the firmware, hardware, enclosure and net list pages (extra.site_include), on brand's theme. Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn Co-authored-by: Claude <noreply@anthropic.com>
24 lines
721 B
YAML
24 lines
721 B
YAML
# The hardware's site, https://d-modem.github.io/hardware/: docs/, the README
|
|
# and the specs, firmware and hardware pages, with brand's shared theme and
|
|
# workflow (brand's docs/sites.md). A pull request builds it, main deploys
|
|
# it. It fails if docs/protocol-reference.md isn't what the protocol
|
|
# headers make now (python3 firmware/tools/protocol_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 firmware/tools/protocol_ref.py --check
|