Skip to content
BTCDecodedPublic

About

System-wide documentation

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

421 Commits

Folders and files

Repository files navigation

BLVM Documentation

BTCDecoded documentation host, built with mdBook and a small static hub, deployed to GitHub Pages.

Overview

This repository builds docs.btcdecoded.org. The hub is hub/. The BLVM manual is the mdBook, published at /blvm/. The Intelligence guide is hub/intelligence/. Most chapters are written in src/ here. A few pages embed upstream Markdown at build time via mdBook's {{#include}} from modules/governance/ (governance narrative and config YAML checked in CI—see .github/workflows/deploy.yml). The Orange Paper and Consensus Spec are published on the Bitcoin Commons website—not embedded in this book (pointer chapter). Governance policy numbers in wired chapters use [[gov:KEY]] placeholders expanded by mdbook-governance-vars at build time—edit governance config/*.yml, not hand-copied literals (see docs/GOVERNANCE_MDBOOK.md and mdbook-governance-vars/README.md). Optional git submodules under modules/ can mirror upstream repos for local work. Component-specific documentation (for example under blvm-consensus/docs/) remains in each crate's repository; this book links there or summarizes unless you add an explicit include.

Live Site: docs.btcdecoded.org · BLVM manual

Structure

  • book.toml - mdBook configuration
  • src/ - Documentation source files and navigation structure
  • modules/ - Governance sources included into the book; see Local Development
  • .github/workflows/ - Automated build and deployment

Local Development

Prerequisites

  • mdBook 0.4.43 (match deploy.yml)
  • Rust (stable) for mdbook-governance-vars

Setup

  1. Clone this repository:

    git clone https://github.com/BTCDecoded/blvm-docs.git
  2. Wire modules/ includes (required for mdbook build when using governance includes). Pages that use {{#include}} expect at least:

    • modules/governance/README.md and modules/governance/GOVERNANCE.md
    • Deploy CI also expects modules/governance/config/action-tiers.yml, repository-layers.yml, and emergency-tiers.yml (for policy parity checks); clone governance fully if you rely on those paths locally.

    Clone governance if needed. If you keep it as a sibling directory next to blvm-docs, symlink from blvm-docs/modules/:

    cd blvm-docs/modules
    ln -sf ../../governance governance

    Adjust paths for your checkout. CI clones these repos instead of symlinks. If git status errors with expected submodule path … not to be a symbolic link, use git -c submodule.recurse=false status or git submodule update --init for modules/governance instead of a symlink.

  3. Install the governance preprocessor (expands [[gov:KEY]] from YAML):

    cargo install --locked --path mdbook-governance-vars

    Optional checks (same order as CI):

    ./scripts/verify-book-inputs.sh   # includes governance literal check
    cargo test --locked --manifest-path mdbook-governance-vars/Cargo.toml

    The drift tests fail if governance/config/*.yml disagrees with blvm-commons threshold.rs (see docs/GOVERNANCE_MDBOOK.md).

    Charts in the manual are rebuilt from that YAML and from charts/catalog.yml:

    python3 scripts/render-charts.py
    python3 scripts/test_render_charts.py

    ./scripts/verify-book-inputs.sh fails when the committed SVG or Mermaid fragments are stale. Measured series that are not policy numbers go in charts/series/ (see charts/README.md).

  4. Serve the documentation locally:

    mdbook serve

    The documentation will be available at http://localhost:3000

  5. Build the documentation:

    mdbook build

    Output will be in the book/ directory.

modules/blvm submodule

The optional modules/blvm git submodule is the meta-repo umbrella (blvm). Its docs/ tree covers release/CI workflows for that repo. The canonical narrative for docs.btcdecoded.org/blvm lives in src/ in this repository.

Installation page

The book chapter src/getting-started/installation.md is timeless — it points operators to btcdecoded.org/install for versioned downloads, filenames, and checksum commands. Edit that Markdown directly; the website repo owns release-driven install JSON via fetch-blvm-release.mjs.

Documentation sources

  • src/ — primary narrative, SUMMARY.md navigation, and most chapters shipped on the site.
  • {{#include}} — at mdbook build, pulls specific files from modules/ (paths listed under Local Development). This is not a wholesale sync of every upstream doc; only wired paths are embedded.
  • Upstream repositories — detailed per-crate docs and READMEs live beside code; the book links to GitHub or tells readers to run cargo doc where the API Index describes.

Contributing

See CONTRIBUTING.md and Contributing to BLVM Documentation (in the built book: Appendices → Contributing to Documentation).

Deployment

Documentation is automatically built and deployed to GitHub Pages on every push to the main branch via GitHub Actions.

License

MIT License - see LICENSE for details.

About

System-wide documentation

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages