0.5.0-rc5 • Published 5 years ago

markmd v0.5.0-rc5

Weekly downloads
18
License
MIT
Repository
github
Last release
5 years ago

MarkMD

npm version NPM

Node.JS Structured document with markdown to HTML translator

  • Mobile Device Responsive
  • Directory-Oriented
  • Real-time compiler

What's new in MarkMD

  • Improve stylesheet to readable layout
  • Syntax hilighter in code block

Table of Contents

Usage

Install markmd tools to your project

npm install markmd --save

Start

To make API document, just call markmd (put it in your package scripts)

npm run markmd

Folder Structure

README.md will be your home page. For sub-category, all markdown file should be stored in docs folder. All image file should be stored in docs-img folder.

Example

├─ README.md
├─ /docs
|   ├─ Alpha.md
|   ├─ Bravo.md
|   └─ Charlie.md
└─ /docs-img
    ├─ foo.jpg
    └─ bar.jpg

This will be compiled to static HTML structure like this

├─ index.html
└─ /docs
    ├─ Alpha.html
    ├─ Bravo.thml
    ├─ Charlie.html
    └─ /docs-img
        ├─ foo.jpg
        └─ bar.jpg

Customize configuration

Make configuration by create markmd.json

{
  "source": "custom-docs",
  "destination": "exported-docs",
  "image": "custom-img",
  "version": true
}

Options

optiondescriptiondefault
sourceDifferent document folder name"docs"
destinationDifferent exported folder name, by default"apidoc/des"
imageDifferent image folder name"docs-img"
versionUse version structuringfalse
fakeApidocConfigGenerate fake apidoc.jsonfalse

Versioning

For multi-version API document, just put "version": true into configuration file (described above). Versioning folder should be like this

Example

├─ README.md
└─ /docs
   ├─ /v1
   |  └─ fetch.md
   ├─ /v1.1
   |  ├─ fetch.md
   |  └─ delete.md
   └─ /v2
      └─ migration.md

Watching Changes

For real-time compiling, just add --watch or -w option to the command

markmd --watch
0.5.0-rc5

5 years ago

0.5.0-rc4

5 years ago

0.5.0-rc3

5 years ago

0.5.0-rc2

5 years ago

0.5.0-rc1

5 years ago

0.5.0-rc0

5 years ago

0.4.3

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.3.0-rc2

5 years ago

0.3.0-rc1

5 years ago

0.2.0

5 years ago

0.2.0-rc4

5 years ago

0.2.0-rc3

5 years ago

0.2.0-rc2

5 years ago

0.2.0-rc1

5 years ago

0.2.0-rc0

5 years ago

0.1.0

5 years ago

0.1.0-rc8

5 years ago

0.1.0-rc7

5 years ago

0.1.0-rc6

5 years ago

0.1.0-rc5

5 years ago

0.1.0-rc4

5 years ago

0.1.0-rc3

5 years ago

0.1.0-rc1

5 years ago

0.1.0-rc0

5 years ago