gitbook-plugin-import

0.0.4 • Public • Published

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") -->

Readme

Keywords

Package Sidebar

Install

npm i gitbook-plugin-import

Weekly Downloads

11

Version

0.0.4

License

MIT

Unpacked Size

5.65 kB

Total Files

4

Last publish

Collaborators

  • samchon