Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 809 Bytes

File metadata and controls

38 lines (30 loc) · 809 Bytes

doc-builder

doc-builder is a framework for interpolating files into documents.

The primary motivation was to allow source code samples in markdown documents to have automated testing.

Example

The following is the config file that created this README.md document:

{
  "variables": {
    "project_name": "doc-builder"
  },
  "targets": [
    {
      "template": "README.tmpl.md",
      "output": "README.md",
      "inputs": [
        "assets/intro.md",
        "dbc.json"
      ]
    },
    {
      "output": "dbc.json",
      "filter": "sed 's/\t/  /g'"
    }
  ]
}

Builds

Release builds can be found at https://github.com/christopherfujino/doc-builder/releases.

For example: https://github.com/christopherfujino/doc-builder/releases/download/v0.5/db-0.5-linux-arm64.tar.gz.