0.0.1 • Published 6 years ago

gitbook-plugin-exec-filter v0.0.1

Weekly downloads
3
License
-
Repository
-
Last release
6 years ago

Exec plugin for GitBook

This plugin adds a new filter which executes a command and renders stdout.

Usage

Add this plugin to your project's book.json file:

{
    "plugins": [
        "exec-filter"
    ]
}

In this example, the output from gitbook --version would be embedded into the markdown document.

{{ "gitbook --version" | exec }}

Use Cases

This was originally written to use the help output from a CLI utility to provide some of the documentation.