Publish your own packages to the world's most popular software ecosystem with npm Pro.Get started »

markt

1.2.4 • Public • Published

markt

Generate pages from markdown

CI-CD use

npx markt --source README.md --destination ./docs/index.html --template ./scripts/docs.template.html

Turn the readme to a webpage

npx markt --preset plain --destination ./gh-pages/index.html

arguments

Name Role Default
source Markdown to be converted to HTML and replaced by {{ content }} ./README.md
destination Destination file ./index.html
Template File {{content}}
preset Choose from an available preset template ☝︎
Anything else Any additional options will be a replacement †

☝︎ Available preset templates

  • plain: Just a clean looking webpage

† Additional options exaple For example, --title My\ awesome\ package will replace {{ title }} from a given template with My awesome package

Example Template (optional)

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
        <title>{{ title }}</title>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
        <link rel="stylesheet" href="https://omrilotan.github.io/markt/styles.css">
    </head>
    <body>
        {{ content }}
    </body>
</html>

Keywords

none

Install

npm i markt

DownloadsWeekly Downloads

11

Version

1.2.4

License

MIT

Unpacked Size

7.1 kB

Total Files

6

Last publish

Collaborators

  • avatar