Site Navigation

Edit on GitHub


MarkPub Basic Install

Instructions to install MarkPub on a computer and see what the website looks like with a collection of Markdown documents.

Prerequisites for installation:

NOTE: these instructions have only been tested on macOS systems.

Install markpub and build a website from a directory of Markdown files

These steps assume the name of the directory or folder is “myDocumentCollection”.

Install markpub:

pip install markpub

Initialize the document collection: This step sets up the markpub configuration file and copies the HTML, CSS, and JS files needed to build a website.

markpub init /full/path/to/myDocumentCollection

MarkPub initialization issues terminal prompts for:

The terminal prompt for “Git repo:” can be ignored (just hit RETURN)

Build a website of the collection:

cd /full/path/to/myDocumentCollection/.markpub
markpub build -i .. -o ./output

When the build completes, the web-site can be viewed using the following commands:

cd ./output
python -m http.server

Open a browser tab and enter 'localhost:8000' to view the home page for the document collection.


To install Markpub and use it to web-publish the static web site, see:
Install and Web-publish instructions