This repository powers the Livepeer documentation experience and docs operations stack. It contains:
- public docs content and navigation
- component/data/snippet infrastructure
- CLI, hooks, checks, and CI workflows
- automation pipelines for content freshness
- internal governance documentation
Live site: docs.livepeer.org
If you only have a few minutes, this is the model:
v2/pages/+snippets/are the primary docs content system.docs.jsoncontrols navigation/routes.lpdis the maintainer CLI for setup/dev/test/hooks/scripts..githooks/,tests/, and CI workflows enforce quality gates.docs-guide/is the internal source of truth for navigating all repo capabilities.
- Node.js 22+ for local checks/CI parity
- Mintlify CLI for local docs runtime
npm i -g mintlifybash lpd setup --yes
lpd devIf lpd is not on PATH yet:
bash lpd devlpd test --staged
lpd test --staged --wcag
lpd test --staged --link-audit-externalIf mint dev stops hot-reloading all pages, use this flow:
bash tools/scripts/dev/ensure-mint-watcher-patch.sh --check
bash tools/scripts/dev/ensure-mint-watcher-patch.sh --applyKnown trigger:
- a repo path that includes
[/]can break chokidar watch events if Mint watcher globbing is not disabled.
Recovery:
- Use
lpd dev(orbash tools/scripts/mint-dev.sh) so the launcher applies the patch preflight and uses a watcher-safe path fallback. - Re-run
bash tools/scripts/dev/ensure-mint-watcher-patch.sh --applyaftermint update.
- Mintlify-driven docs UI and routing
- componentized page system via
snippets/components/ - structural/style enforcement through automated checks
- unified CLI (
lpd) for setup/dev/test/hooks/script execution - enforcement scripts for style, MDX, links/imports, navigation, and script docs
- GitHub issue templates and PR templates for governance quality
- pre-commit checks and CI checks including browser validations
- GitHub Actions + n8n assets for automated updates
- showcase and trending/community content pipelines
- automated maintenance scripts (indexing, SEO/AEO support, glossary support)
- role-based IA across developers, gateways, orchestrators, delegators, resources
- product-focused content layer plus deep technical guides
- references, APIs, and integration data surfaces
docs-guide/ is the canonical internal navigation source of truth for repository features and functionality.
| Need | Canonical doc |
|---|---|
| Start here + update rules | docs-guide/README.mdx |
| Source-of-truth boundaries | docs-guide/source-of-truth-policy.mdx |
| Full feature inventory | docs-guide/feature-guides/feature-map.mdx |
| System/data/control flow | docs-guide/feature-guides/architecture-map.mdx |
| CLI commands and runbooks | docs-guide/lpd.mdx |
| Validation + enforcement gates | docs-guide/quality-testing/quality-gates.mdx |
| Automation pipelines map | docs-guide/feature-guides/automation-pipelines.mdx |
| Content system and IA model | docs-guide/feature-guides/content-system.mdx |
| APIs and data integrations | docs-guide/feature-guides/data-integrations.mdx |
| Generated pages tree inventory | docs-guide/indexes/pages-index.mdx |
| Generated components inventory | docs-guide/indexes/components-index.mdx |
| Generated script inventory | docs-guide/indexes/scripts-index.mdx |
| Generated workflow inventory | docs-guide/indexes/workflows-index.mdx |
| Generated issue/PR template inventory | docs-guide/indexes/templates-index.mdx |
- Read style and component standards:
- Install/update hooks:
./.githooks/install.sh- Create a branch, make changes, run
lpd dev, commit, and open a PR.
For agent implementation branches, use:
- branch name:
codex/<issue-id>-<slug> - task contract file:
.codex/task-contract.yaml - required PR sections:
Scope,Validation,Follow-up Tasks
Enforcement runs on codex/* only via:
.githooks/pre-push(contract + scope + non-fast-forward block by default)tests/run-pr-checks.js(CI contract + PR body checks)
To auto-fill PR sections from task contract metadata:
node tools/scripts/create-codex-pr.js --createThis generates .codex/pr-body.generated.md and calls gh pr create --body-file ....
Codex PR CI also requires the generated marker in the PR body, so manual bodies without the marker fail contract validation.
Contributor deep docs:
.githooks/pre-commitruns structure/style verification and staged checks- includes script docs enforcement and pages index synchronization
- includes staged WCAG accessibility audit with conservative autofix for common raw-tag issues
- docs-guide source-of-truth checks currently run in advisory mode
- changed-file quality suite:
.github/workflows/test-suite.yml - v2 browser sweep:
.github/workflows/test-v2-pages.yml - broken links check currently advisory while cleanup is ongoing
Deep matrix:
High-level directory map:
v2/pages/active docs pagesv1/legacy/frozen docssnippets/components, data, automations, shared assetstools/scripts/operational/generation scriptstests/unit/integration checks and runners.githooks/local hook scripts.github/workflows/CI and scheduled automationsapi/OpenAPI and related specsdocs-guide/internal docs navigation source of truth
Key automation categories:
- content freshness (forum/blog/youtube/releases/showcase)
- CI quality and browser validation
- issue intake/labeling and review tooling
- docs maintenance scripts and generated catalogs
Automation deep docs:
docs-guide/feature-guides/automation-pipelines.mdxv2/resources/documentation-guide/automations-workflows.mdx
- AI assistant rules and safety:
tools/ai-rules/ - repository AI guidance files:
.github/AGENTS.md,.cursorrules
- Code/tests are source of truth for behavior.
docs-guide/is source of truth for internal capability navigation.README.mdis high-level orientation and link hub.- Generated indexes must be regenerated, not hand-edited.
Regenerate docs-guide generated indexes:
node tools/scripts/generate-docs-guide-indexes.js --write
node tools/scripts/generate-docs-guide-pages-index.js --write
node tools/scripts/generate-docs-guide-components-index.js --write
node tests/unit/script-docs.test.js --write --rebuild-indexes