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 MDspostprocessors
: to automate publishing- confluence
- etc
Install
npm install -g mdocr
# OR
yarn global add mdocr
Usage
# Init a folder
mdocr init
# 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
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
Flow:
PreProcessor example
main
branch represent the current version of the document
source
branch represent the source of the pages
The main branch will contain final documents with no commands
tags.
It will also be the source for tags.
You will find only