1.0.1 • Published 6 years ago
markassin v1.0.1
markassin
Generate a static website from your mardown documentation.
Installation
npm install -g markassinUse
markassin <source> <target>
Options
- -h, --helpoutput usage information
- -V, --versionoutput the version number
- -t --templategenerate html with a custom template
- -f --forceforce generate (erase target dir if exists)
Commands
- markassin <source> <target>Generate website from markdown source
Miscellaneous
Generator use Github markdown stylesheet to render html.
Templating
To generate custom html, markassin accept input template with --template t param.
Template format
module.exports = content => `<!DOCTYPE html>
  <html>
  <head>
    head stuff here
  </head>
  <body class="markdown-body">
  ${content} // markdown transformed is injected here
  </body>
  </html>`;
`