loopingz / mdocr

Markdown Conventional Commit Repository Manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MDocr Build Status [![SonarCloud.io]Quality Gate Status

MDOCR logo

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

# 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

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


Branching strategy (for v3)

main branch represent the current version of the document source branch represent the source of the pages

main

The main branch will contain final documents with no commands tags. It will also be the source for tags.

source

You will find only

About

Markdown Conventional Commit Repository Manager


Languages

Language:JavaScript 75.8%Language:TypeScript 11.2%Language:CSS 11.2%Language:HTML 1.8%