1.2.4 • Published 6 years ago

markt v1.2.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

markt npm.io npm.io

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

NameRoleDefault
sourceMarkdown to be converted to HTML and replaced by {{ content }}./README.md
destinationDestination file./index.html
TemplateFile{{content}}
presetChoose from an available preset template ☝︎
Anything elseAny 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>
1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago