Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/mcpx-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,32 @@ jobs:
cp -rL result-lab-docs site/lab
test -f site/lab/index.html

# The Project Management book (#13900, pm-stack/book) shares
# this repository's single Pages site the same way: built with
# its own siteUrl and staged under pm/ here, in the same deploy
# — a separate pm-only deploy would wipe the mcpx, fleet, atlas
# and id books. Its build-only workflow is pm-docs.yml; see
# the book's "Deploying this book" chapter
# (pm-stack/book/operations/deploying-this-book.md).
- name: Nix build (PM book, siteUrl /code/pm/)
run: |
# Intentional: the single-quoted string in this block is a Nix expression
# evaluated by nix, not the shell -- ${builtins.currentSystem} in it is
# Nix's, and letting the shell expand it would break the build.
# shellcheck disable=SC2016
nix build --impure --print-build-logs --expr \
'(builtins.getFlake (toString ./.)).packages.${builtins.currentSystem}.pm-docs.override { siteUrl = "/code/pm/"; }' \
--out-link result-pm-docs

- name: Stage PM book into site/pm
run: |
rm -rf site/pm
# site/ is a copy of a Nix store path: its directories are
# read-only, so make the root writable before adding pm/.
chmod u+w site
cp -rL result-pm-docs site/pm
test -f site/pm/index.html

- uses: actions/configure-pages@v6

- uses: actions/upload-pages-artifact@v5
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/pm-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: pm docs

# CI tier policy: see .github/ci-policy.md

# Build the Project Management book (#13900): pm-stack/book.toml +
# pm-stack/book, rendered by the flake output .#pm-docs
# (pm-stack/docs.nix) — the same `nix build` locally and in CI,
# mirroring the fleet book's build job in fleet-docs.yml.
#
# This workflow only builds; it never deploys. A repository has exactly
# one GitHub Pages site and every Pages deployment replaces the whole
# site, so the PM book is deployed by the mcpx-docs workflow's
# deploy job, staged under pm/ with siteUrl "/code/pm/" — a
# pm-only deploy from here would wipe the mcpx book (and vice
# versa). See the book's "Deploying this book" chapter:
# pm-stack/book/operations/deploying-this-book.md.

on:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read

jobs:
build:
name: "build: nix build .#pm-docs"
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7

- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23

- uses: DeterminateSystems/magic-nix-cache-action@84c0677f58dcedf3b91f8223ce36a9ea5b3c84b7 # v15
continue-on-error: true
with:
# Same cache posture as mcpx-docs.yml: no FlakeHub, the
# GitHub Actions cache is the cache.
use-flakehub: false
use-gha-cache: true

- name: Nix build
run: nix build .#pm-docs --print-build-logs

# The nix result is a symlink into the store; copy it
# dereferenced so the staged tree is a plain static site.
- name: Stage site
run: |
rm -rf site
cp -rL result site
test -f site/index.html
2 changes: 2 additions & 0 deletions lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ let
fleetDocs = pkgs.callPackage ../pkgs/fleet/docs.nix { };
atlasDocs = pkgs.callPackage ../pkgs/atlas-search/docs.nix { };
idDocs = pkgs.callPackage ../pkgs/id/docs.nix { };
pmDocs = pkgs.callPackage ../pm-stack/docs.nix { };
codeDocs = pkgs.callPackage ../pkgs/code-book/docs.nix { };
labDocs = pkgs.callPackage ../pkgs/lab/docs.nix { };
mcpxRealServers = pkgs.callPackage ../pkgs/mcpx/real-servers.nix { };
Expand Down Expand Up @@ -874,6 +875,7 @@ let
fleet-docs = fleetDocs;
atlas-docs = atlasDocs;
id-docs = idDocs;
pm-docs = pmDocs;
code-docs = codeDocs;
lab-docs = labDocs;
mcpx-real-servers = mcpxRealServers;
Expand Down
18 changes: 18 additions & 0 deletions pm-stack/book.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# mdBook configuration for the Project Management book (#13900).
# The book root is pm-stack itself so the sources stay next to the
# stack they document: plain markdown under book/, readable on GitHub
# exactly as written, and rendered as a book via the .#pm-docs
# flake output (pm-stack/docs.nix).
[book]
title = "Project Management"
authors = ["developing-today"]
language = "en"
src = "book"

[build]
build-dir = "rendered"
# Every chapter in SUMMARY.md must exist on disk; never invent stubs.
create-missing = false

[output.html]
git-repository-url = "https://github.com/developing-today/code"
87 changes: 87 additions & 0 deletions pm-stack/book/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Summary

- [Project Management](index.md)

# Getting started

- [Installation and bootstrap](getting-started/installation.md)
- [Quickstart](getting-started/quickstart.md)
- [The shape of the system](getting-started/shape.md)

# Concepts

- [Architecture](concepts/architecture.md)
- [The aggregator: one state, many sources](concepts/aggregator.md)
- [The projector and projections](concepts/projector.md)
- [The shared schema](concepts/shared-schema.md)
- [The roadmap hierarchy: initiatives, projects, epics, aggregators](concepts/roadmap-hierarchy.md)
- [Prioritisation: how order is decided and recorded](concepts/prioritisation.md)
- [Question sets and the answer-back flow](concepts/questions-and-answers.md)
- [Push notifications: detection to phone to answer](concepts/push-notifications.md)
- [The Kaneo sync and the other PM apps](concepts/kaneo-sync.md)
- [Queues and dispatch methods, from the PM side](concepts/dispatch-methods.md)
- [The claimant: keeping sessions honest](concepts/claimant.md)
- [Scheduled jobs and the history they keep](concepts/scheduled-jobs.md)
- [Health, quota and usage surfaces](concepts/health-surfaces.md)

# Reference

- [The aggregator website, page by page](reference/website-pages.md)
- [The console, view by view](reference/console-views.md)
- [Aggregator HTTP routes and API](reference/aggregator-routes.md)
- [The question sets, enumerated](reference/question-sets.md)
- [The workers](reference/workers.md)
- [Configuration and environment](reference/configuration.md)
- [Data stores: the Turso estate](reference/data-stores.md)
- [Model dependencies](reference/models.md)

# Tutorials

- [Tutorial: answer a waiting question end to end](tutorials/answer-a-question.md)
- [Tutorial: trace a push notification from event to answer](tutorials/trace-a-push.md)
- [Tutorial: follow an item from issue to done](tutorials/follow-an-item.md)
- [Tutorial: read the quota and usage views](tutorials/read-the-quota-view.md)

# Library

- [The shared schema as a library](library/shared-schema-package.md)
- [Aggregator internals](library/aggregator-internals.md)
- [Projector internals](library/projector-internals.md)

# OpenCode and OpenChamber

- [OpenCode and OpenChamber: our forks programme](opencode-openchamber/index.md)
- [The forks: what they are and why we carry them](opencode-openchamber/the-forks.md)
- [Our changes, shipped and in flight](opencode-openchamber/our-changes.md)
- [Goals and intentions](opencode-openchamber/goals-and-intentions.md)
- [OpenCode: prioritised issue map](opencode-openchamber/opencode-issue-map.md)
- [OpenChamber: prioritised issue map](opencode-openchamber/openchamber-issue-map.md)
- [The forks programme dependency map](opencode-openchamber/dependency-map.md)

# LLM plans

- [The plans we use](llm-plans/the-plans.md)
- [Pools, routes and the switchboard](llm-plans/pools-and-routes.md)
- [Models by tier, and why](llm-plans/models-by-tier.md)
- [Benchmarks and real-use evidence](llm-plans/benchmarks-and-evidence.md)
- [Walls, resets and quota doctrine](llm-plans/walls-and-resets.md)
- [Costs and monthly usage](llm-plans/costs.md)
- [LLM plans: prioritised list](llm-plans/priorities.md)

# Development

- [Repository layout](development/layout.md)
- [Building and testing](development/building-and-testing.md)
- [Add a page or projection](development/add-a-page.md)
- [PM stack research and implementation roadmap](development/program-roadmap.md)
- [Project Management: prioritised issue map and dependency map](development/issue-map.md)
- [Keeping this book current](development/keeping-this-book-current.md)

# Operations

- [Running the stack as services](operations/services.md)
- [Health checks and the heal stack](operations/health-and-healing.md)
- [Deploying this book](operations/deploying-this-book.md)
- [Troubleshooting](operations/troubleshooting.md)
- [FAQ](operations/faq.md)
- [Glossary](operations/glossary.md)
Loading