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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file Peji-1.0.2.tar.gz.

File metadata

  • Download URL: Peji-1.0.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for Peji-1.0.2.tar.gz
Algorithm Hash digest
SHA256 6968c46f56ad35020bd2a34a68dcfad1eaa1d58be994b8945848223f67339f52
MD5 806af46fa2c40e2e22046242e4db58ca
BLAKE2b-256 4eb6f57835a94ea4ae9ad4697d81e8b39e1b33db505ea379c1f8b47820ea6afb

See more details on using hashes here.

File details

Details for the file Peji-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: Peji-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for Peji-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ffc20c6408be649f9d674bb018becf997fc572ecdf5377bfe44ca9db7be1b642
MD5 faf35fee549a774e29843ad1a8cdf62e
BLAKE2b-256 86ced60165ea433684dad4a82cf25ca01338148e838147ab83f7d7bba6fe38b4

See more details on using hashes here.

Supported by

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