Build (web publish) Markdown and Massive Wiki sites.
Project description
markpub
MarkPub builds a static HTML website from a directory of Markdown files.
The website supports wiki-links, transclusion, and provides full-text
search.
MarkPub installs configuration files that GitHub Pages and Netlify can use to automatically publish the HTML files on the web.
Requirements
- Python 3.12 or higher.
Install
Using pip
pip install markpub
Usage
Overview
markpub [--version] <command> [options]
Available commands:
init- Initialize a new MarkPub sitebuild- Build HTML website from Markdown files
Commands
markpub init <directory>
Initialize a new MarkPub site in the specified directory. This creates:
.markpub/markpub.yaml- Site configuration file- Configuration files for GitHub Pages/Netlify deployment
Sidebar.md- Website navigation links displayed sidebar on webpages
Example:
markpub init my-wiki
markpub build [options]
Build a static website from Markdown files.
Required options:
-i, --input <directory>- Input directory containing Markdown files-o, --output <directory>- Output directory for generated HTML files
Optional options:
--config, -c <file>- Path to YAML config file (default:./markpub.yaml)--root, -r <name>- Website root directory name (needed for GitHub Pages hosting)--lunr- Create lunr search index (requires npm and lunr to be installed)--commits- Include Git commit messages and times in All Pages
Examples:
# Basic build
markpub build -i my-wiki -o my-wiki-site
# Build with search
markpub build -i my-wiki -o my-wiki-site --lunr
# Build for GitHub Pages with Git history
markpub build -i my-wiki -o my-wiki-site --root my-repo --commits
Getting Help
Use --help with any command for detailed usage information:
markpub --help
markpub init --help
markpub build --help
Markpub website themes
Markpub website themes are managed by the Python package markpub-themes
Management and use of themes is documented there. This package is installed with markpub, and after installation, help information is available:
markpub-themes -h
Documentation
-
Further documentation is under development.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file markpub-2.1.0.tar.gz.
File metadata
- Download URL: markpub-2.1.0.tar.gz
- Upload date:
- Size: 5.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6649f5fe6352d2317c9937dad2c460abbe3d3438401ad0adf6a31f536f8b34bf
|
|
| MD5 |
01a57256d1b6e7235f3b844fd0531abc
|
|
| BLAKE2b-256 |
3c6dec0e04ff77f8b9808e24437c39f955558a8b56bf3778516a8ca881251d23
|
File details
Details for the file markpub-2.1.0-py3-none-any.whl.
File metadata
- Download URL: markpub-2.1.0-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cb856fbf3ae8ff627a3306103259448f8bde6269b099ae03cf8e919af25d381
|
|
| MD5 |
4c4704693a28c5ba38ee81945daa0aca
|
|
| BLAKE2b-256 |
68eac2f17d8eeb9a77aa45886200e0237cabc3d5cc35cc042e1272f54f34c1bb
|