0.0.52 • Published 7 years ago

mdocu v0.0.52

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

MDocu (work in progress)

Build Status codecov

MDocu is a NodeJS documentation generator capable of converting a bulk of .md files into a static webapp.

Installing the CLI

Npm or Yarn

To use the CLI, install MDocu with Npm or Yarn globally.

npm install mdocu -g
yarn global add mdocu

CLI Commands

compile

mdocu compile "/output-dir" "/pages-dir" -n "Name of the project"

new

Create a new directory by the given name and creates examples pages, a configuration file and finally compiles.

mdocu new "Name of the project"

init

Initializes a new project in the current working directory.

mdocu init "Name of the project"

version

Show Cli version information.

mdocu --version

Writing your first page

MDocu follows a simple naming convention that controls the order and name of your pages. Therefor it's necassary to keep in mind that MDocu only looks for files that follow that convention, let's take a look at the following examples of valid and invalid filenames:

Valid filenames

01-introduction.md
02-getting-started.md
03-about-the-author.md

Invalid filenames

getting-started.md
getting_started.md
01-getting_started.md
getting-started

Configuration

The module has the following configuration options:

PropertyTypeDefaultExplanation
PathstringnullPath where to should look for .md files
outDirstringnullPath where the compiled pages should appear
namestring'MDocu'(optional) Project name that appears throughout the app
localestring'en'(optional) The language of your writings
debugbooleantrue(optional) Display log information, warnings and errors
versionstring'0.0.0'(optional) Current version of your project

Javascript implementation

To extend it's functionality or have more control over MDocu, you can use it as a javascript module.

Es6

import { Mdocu } from 'mdocu';

Mdocu.setup({
  name:     'Demo documentation',
  path:     './demo/md',
  outDir:   './demo/docs'
}).compile()

Es5

const lib = require('mdocu');

lib.Mdocu.setup({
  name:     'Demo documentation',
  path:     './demo/md',
  outDir:   './demo/docs'
}).compile()
0.0.52

7 years ago

0.0.41

7 years ago

0.0.4

7 years ago

0.0.33

7 years ago

0.0.32

7 years ago

0.0.31

7 years ago

0.0.3

7 years ago

0.0.26

7 years ago

0.0.252

7 years ago

0.0.251

7 years ago

0.0.25

7 years ago

0.0.21

7 years ago

0.0.2

7 years ago

0.0.156

7 years ago

0.0.155

7 years ago

0.0.154

7 years ago

0.0.153

7 years ago

0.0.152

7 years ago

0.0.151

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.1

7 years ago