mrkdown
Version:
Markdown files to HTML static site generator - angular.js app
73 lines (65 loc) • 3.18 kB
Markdown
[](https://firebasestorage.googleapis.com/v0/b/aboutsujith.appspot.com/o/mrkdown-npm-app-video1.mp4?alt=media&token=31a44b92-2ade-4455-b73d-d9e20b79e333)
<!--  -->
<!-- <figure class="video_container">
<iframe style="width: 620px;height: 349px;" src="https://firebasestorage.googleapis.com/v0/b/aboutsujith.appspot.com/o/mrkdown-npm-app-video1.mp4?alt=media&token=31a44b92-2ade-4455-b73d-d9e20b79e333" frameborder="0" allowfullscreen="true"> </iframe>
</figure> -->
```cmd
npm install -g mrkdown
```
```cmd
mrkdown init
```
```cmd
mrkdown build
```
| From File | To File |
| --------- | ------- |
| md | html |
| html | html |
| htm | html |
| txt | html |
**`mrkdown init`**, it will create a new `mrkdown.config.json` file.
```json
{
"distFolderName": "dist",
"title": "My Notes",
"brandName": "My Notes",
"favIconUrl": "Image/image.png",
"users": [
{
userName: "Admin",
password: "admin@123",
displayName: "Admin",
imageUrl: "Image/image.png"
}
],
"useHash": true
}
```
| Key | Meaning | Default |
| ------------------ | -------------------------------------------- | ------------------------ |
| removeRightSideBar | removing the right side bar | true |
| distFolderName | build file will be there | "markdown-publish" |
| title | browser tab title | "Notes" |
| favIconUrl | fav icon url | NULL |
| skipFolders | conversion not applied those specified paths | ['.git', 'node_modules'] |
| skipFiles | conversion not applied those specified files | [] |
| home | it will enable the default home page setup | false |
| homeHtml | accept RAW html | NULL |
| homeHtmlUrl | Home page html file | NULL |
| users | Give the users to access you wep page | [] |
| useHash | it will enable the hash in the URL | true |
| prod | minified all the files | false |
**`mrkdown build`**, it will convert all Markdown file to HTML file.
**`mrkdown build --use-hash=true`**, enable the
**`mrkdown build --use-hash=false`**, remove the
**`mrkdown build --use-hash=false --prod`**, remove the