0.0.4 • Published 6 years ago

gitbook-plugin-import v0.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Import

Gitbook Plugin

Import contents from other documents

Installation

Open the book.json and insert import value into the plugins variabl

{
    "plugins": ["import"]
}

Usage

Write <!-- @import("path") --> down to markdown file.

If you want to use templates, then define dictionary as <!-- @templates([ ["key, "value"], ["key, "value"] ]) --> and write ${{ key }} down to content.

<!-- @templates([
    ["name", "Jeongho Nam"],
    ["github", "https://github.com/samchon"],
    ["email", "samchon@samchon.org"]
]) -->

# My Content
## Introduction
Hello, my name is ${{ name }} and my github address is $ {{ github }}. If you want to contact me, mail to ${{ email }}.

## External Content
<!-- @import("internal/detail.md") -->

## Remote Content
<!-- @import("https://raw.githubusercontent.com/samchon/tstl/master/src/container/TreeMap.ts") -->

## Partial Content
<!-- @import("internal/story.md#L7-L24") -->