1.3.9 • Published 1 year ago

marktree v1.3.9

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

marktree 🔖🌳

marktree is a static site generator, using markdown. It works with GitHub pages out of the box.

Get started

create-marktree is the quickest way to start a marktree project.

Doing it manually

  1. Install marktree
npm i marktree
  1. Create a markdown/-folder and fill it with markdown files
  2. Add the build script to package.json
"scripts": {
+  "build": "marktree"
},
  1. Build your site
npm run build
  1. Host the contents of docs/

Hot reload

  1. Install nodemon
npm i nodemon -D
  1. Add the dev script to package.json and update main
+"main": "node_modules/marktree/src/index.js",
"scripts": {
+  "dev": "nodemon marktree",
   "build": "marktree"
},
  1. Add the nodemon.json config file
{
  "watch": ["src/", "markdown/"],
  "ext": "md, js"
}
  1. Run dev
npm run dev

Configuration

Configure marktree

Configure marktree by adding a marktree.config.json config file. The following are default values.

{
  "source": "markdown",
  "dest": "docs",
  "htmlLayout": "layout.html",
  "include": [],
  "exclude": [],
  "autoLink": true,
  "cssStyles": "styles.css",
  "icon": "favicon.ico",
  "insertMarkdown": "<!-- insert:markdown -->",
  "insertStyles": "<!-- insert:styles -->",
  "insertTitle": "<!-- insert:title -->",
  "insertIcon": "<!-- insert:icon -->"
}

Styling

Add a styles.css file to the directory you want to be styled. Styles are also applied all subdirectories.

Icon

Add a favicon.ico file to the directory you want to include the icon. The icon is also applied to all subdirectories.

YAML

Add file metadata with YAML. THe following attributes are supported

---
title:
---
1.3.9

1 year ago

1.3.8

1 year ago

1.3.7

1 year ago

1.3.6

2 years ago

1.3.5

2 years ago

1.2.0

2 years ago

1.2.6

2 years ago

1.3.4

2 years ago

1.2.5

2 years ago

1.3.3

2 years ago

1.2.4

2 years ago

1.3.2

2 years ago

1.2.3

2 years ago

1.3.1

2 years ago

1.2.2

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago