2.0.3 • Published 4 years ago

mdocr v2.0.3

Weekly downloads
151
License
MIT
Repository
github
Last release
4 years ago

MDocr Build Status SonarCloud.io

MDocr allows you to manage your documents in Markdown inside a Git repository.

Use conventional commits to automate their versions.

Use:

  • commands: to automate content inside your MDs
  • postprocessors: to automate publishing
  • pdf
  • confluence
  • etc

Quickstart

Install

npm install -g mdocr
# OR
yarn global add mdocr

Usage

# Build docs with their new modification
mdocr build
# Publish docs and create a new version of each modified doc
mdocr publish
# Call post processors on each documents
mdocr postpublish

Built in Commands

CurrentVersion

To retrieve current document version:

# My New Doc
Version: <CurrentVersion />

will be replace by on build

# My New Doc
Version: 1.0.2

VersionsTable

To retrieve display document versions:

# My New Doc
Version: <CurrentVersion />

will be replace by on build

# My New Doc
Version: 1.0.2

Import

To import another MD inside your document

# My New Doc
Version: <CurrentVersion />

will be replace by on build

# My New Doc
Version: 1.0.2

How it works?

Flow:

MDocR flow

Customization

PreProcessor example