Skip to content

Instantly share code, notes, and snippets.

@farnetani
Created December 28, 2017 00:29
Show Gist options
  • Save farnetani/f8c9afa42770100863324cbed3a80a92 to your computer and use it in GitHub Desktop.
Save farnetani/f8c9afa42770100863324cbed3a80a92 to your computer and use it in GitHub Desktop.
const fs = require('fs')
const path = require('path')
const markdownMagic = require('markdown-magic')
const config = {
transforms: {
DIRTREE: require('./doc-directory-tree.js')
}
}
const markdownPathFull = path.join('./', 'README.md')
markdownMagic(markdownPathFull, config)
const markdownPath = path.join('./src', '../README.md')
markdownMagic(markdownPath, config)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment