Skip to main content

Static site generator.

Project description

Pēji

Pēji (Japanese: ページ, "page") is simple way to generate small static sites (one or more pages).

If you need to collect several pages from the Markdown, then Pēji are great for you.

Note: Pēji is not intended to generate a blog site. Its single pages only. You can link pages with hyper-links, but you have to do it manually.

Features:

  • Python-Markdown is used.
  • Code syntax highlighting via Pygments.
  • Jinja2 template engine.
  • Custom style and layout for specific page.
  • Site menu bar can be edited through the config.
  • YAML config file.

Installation and quickstart

Install Pēji globally or into virtual environment:

pip install Peji

Create your site:

peji create mysite
cd mysite/

Create your first page and place it into mysite/pages/:

index.md:

---
title: My first page
---

# My heading

It works!

Build your site:

peji build

Site will be placed in ./mysite/build.

Also you can run Python built-in HTTP Server:

python3 -m http.server --directory build/

License

Pēji is released under The Unlicense. See https://unlicense.org/ for detais.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Peji-1.0.2.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

Peji-1.0.2-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page