scan-md-confluence

0.2.2 • Public • Published

Markdown scanner and Confluence importer

This project contains a NodeJs module that scans all markdowns of a specified directory recursively and imports them into Confluence as Confluence markup. The Confluence script can also be used to add labels to articles.

Getting started

Install scan-md-confluence via npm:

$ npm install scan-md-confluence

Usage

Markdown files

In order for markdowns to be processed by the scanner, corresponding markdowns must be supplemented with metadata.

For example in top of a markdown file:

<!--
title: My Markdown
labels: label1, label2, label3 
-->
Configuration
{
  "confluence": {
    "username": "username",
    "password": "password",
    "baseUrl":  "https://{company}.atlassian.net/wiki",
    "version": 3,
    "space": "myspace",
    "parentPageId": 123,
    "markDown": {
      "codeStyling": {
        "linenumbers": true,
        "theme": "RDark"
      },
      "codeLanguageMap": {
        "markdownLanguage": "confluenceLanguage"
      }
    }
  },
  "fileEncoding": "utf8",
  "scanDirectory": "/src/"
}
Run the script

Let the scan process start:

$ ./cli.json --config=./configuration.json 

Dependencies (8)

Dev Dependencies (2)

Package Sidebar

Install

npm i scan-md-confluence

Weekly Downloads

1

Version

0.2.2

License

MIT

Unpacked Size

28.9 kB

Total Files

12

Last publish

Collaborators

  • marcelle