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
4 changes: 4 additions & 0 deletions .github/scripts/check-pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ def main():
glob.glob(os.path.join(site_root, "*.html")) +
glob.glob(os.path.join(site_root, "blog", "*.html")) +
glob.glob(os.path.join(site_root, "changelog", "*.html")) +
# docs/embed/<slug>.html is deliberately absent: it is a verbatim copy of a
# self-contained docs/ page shown inside docs/<slug>.html, which is the page
# that carries the head, the chrome and the canonical (scripts/build_docs.py).
glob.glob(os.path.join(site_root, "docs", "*.html")) +
glob.glob(os.path.join(site_root, "tools", "*.html")) +
glob.glob(os.path.join(site_root, "integrations", "*.html")) +
[f for d in LOCALES for f in glob.glob(os.path.join(site_root, d, "*.html"))] +
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ on:
# the pages is caught by the same check in backend.yml instead.
- 'scripts/build_integrations.py'
- 'scripts/integrations/**'
# The docs pages are rendered from docs/ by build_docs.py, which borrows
# build_blog.py's helpers, so a PR that edits a published fact sheet or
# either script without regenerating has to reach the check below.
- 'docs/**'
- 'scripts/build_docs.py'
- 'scripts/build_blog.py'
push:
branches:
- main
Expand All @@ -44,6 +50,11 @@ jobs:
- name: "📝 Check generated blog pages are current"
run: python3 scripts/build_blog.py --check

# site/docs/ is rendered from docs/ (docs/factsheets.json names which); a
# stale copy ships last month's fact sheet under this month's date.
- name: "📚 Check generated docs pages are current"
run: python3 scripts/build_docs.py --check

# Before the i18n check: the English integrations pages are its input.
- name: "🔌 Check the integrations pages match the backend"
run: python3 scripts/build_integrations.py --check
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ check-app: ## Typecheck, unit tests, parity, build (mirrors app.yml)

check-site: ## Page requirements, sitemap, smoke tests (mirrors site.yml)
python3 scripts/build_blog.py --check
python3 scripts/build_docs.py --check
python3 scripts/build_integrations.py --check
python3 scripts/build_site_i18n.py --check
python3 scripts/i18n/fill.py --check site/i18n/*.po
Expand Down
17 changes: 16 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Duct docs

**Author:** Shirish Kadam · **Updated:** 2026-10-25
**Author:** Shirish Kadam · **Updated:** 2026-11-30

How Duct is built, what was decided and why, written for the next person on
the team. Product strategy, go-to-market and the deployment runbooks live in a
Expand Down Expand Up @@ -36,6 +36,21 @@ Agent conventions are rules, not docs: they live in each area's `AGENTS.md`
design and per-agent plans are records in `engineering/`. Add a `README.md` to
a folder only when its purpose is not obvious from its name.

## Published on the site

The references a reader wants before installing anything are also pages on
[getduct.ai/docs](https://getduct.ai/docs/), rendered from the files here,
so there is one copy to maintain.

- **[`factsheets.json`](factsheets.json) is the list:** slug, source file,
kicker, and the description the page and its share card carry.
- **References only.** A record is frozen on its date and would be read as
current on a page that looks live.
- **CI fails when a page lags its source.** Edit a published doc, then run
`python3 scripts/build_docs.py`; a relative link to a path that no longer
exists fails the build. The steps to publish one more are in
[`site/AGENTS.md`](../site/AGENTS.md#docs-pages-docs).

## Naming

The filename says whether a document may change.
Expand Down
44 changes: 44 additions & 0 deletions docs/factsheets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[
{
"slug": "architecture",
"source": "docs/architecture.html",
"kicker": "Map",
"description": "An interactive map of the Duct monorepo: the backend, app, desktop shell and site, how they talk to each other, and which file to open first for each job."
},
{
"slug": "data-model",
"source": "docs/engineering/data-model.md",
"kicker": "Reference",
"description": "Every table the Duct backend owns, what it records, and which of the four stores answers where something is recorded: rows, events, logs or memories."
},
{
"slug": "agent-ports-and-events",
"source": "docs/engineering/agent-ports-and-events.md",
"kicker": "Reference",
"description": "The harness boundary of Duct's agents: the six ports a runner implements and the server-sent event contract the app renders, and the code that enforces each."
},
{
"slug": "agent-engineering",
"source": "docs/engineering/agent-engineering.md",
"kicker": "Guide",
"description": "How an agent is built and changed in Duct on LangChain, LangGraph and deepagents: the rules, the primitive behind each, what enforces it, and the checklists."
},
{
"slug": "agent-evaluation",
"source": "docs/engineering/agent-evaluation.md",
"kicker": "Guide",
"description": "How Duct tests agents whose output is subjective, a brief or a post, with an LLM-as-judge harness: the trials, the rubric, the judge's biases and mitigations."
},
{
"slug": "credential-storage",
"source": "docs/engineering/credential-storage.md",
"kicker": "Reference",
"description": "Where every secret Duct holds actually lives, on the desktop and on a server: the local API key, provider keys and OAuth tokens, and what protects each of them."
},
{
"slug": "security-audit-skill-and-hooks",
"source": "docs/engineering/security-audit-skill-and-hooks.md",
"kicker": "Runbook",
"description": "The local security gate for Duct's backend and app: the audit skill, the leak scanner, the pre-commit hook and the policy they enforce before a change ships."
}
]
Loading
Loading