subgraphs
subgraphs are repositories imported into the graph. their pages and files become particles alongside the chronicle — linkable, searchable, and ranked together.
this repo is the workspace that declares them. subgraphs.toml is the census. scripts/build.nu materializes the list into a TOML manifest and hands it to optica via --subgraphs. optica pulls each declared repo, renders its pages, and merges them with the chronicle into one ranked graph.
cyber.page publishes the protocol alone. this site publishes the whole project.
adding a new subgraph
- add a
subgraphblock tosubgraphs.tomlwithvisibility = "public"(orprivateto keep it off the public build) - add
notify-cyber.ymlto the new repo so pushes trigger a rebuild of this site (the reusable workflow incyberia-to/cyberdispatches here):
# .github/workflows/notify-cyber.yml
name: Notify cyber
on:
push:
branches:
jobs:
notify:
uses: cyberia-to/cyber/.github/workflows/subgraph-notify.yml@master
secrets: inherit
- add
CYBER_DISPATCH_TOKENto the repo's secrets if it is not already set at org level.
to add the workflow to all public subgraphs at once: nu scripts/add-notify-workflow.nu from this repo. dry-run first with --dry-run.
canonical set
subgraphs.toml is the living census. nu scripts/lock.nu snapshots each checkout's HEAD into the commit field.