Skip to main content

Static website generator

Project description

Page, a static website generator

website = compile(markdown content, templates)

  • creates a well organized website with clear navigation reflecting the folder structure of source text documents
  • fast, well compressed, mobile friendly pages
  • feed and sitemap files for your subscribers and search engines
  • import from any CMS DB (inc. Wordpress), import HTML sites

Writers love distraction free conventional plain text formatting. Template designers love the easy to read, beautiful and powerful template language.

Installation and run

Page is a small command line program written in Python programming language. It requires python installed, which lets user install Page on any platform in a single command.

pip install page

By default, Page will collect all text files in current folder and create a HTML website in a static folder using default templates. Run the program

page

it will look for a config file ./page.yml with custom options.

source: /markdown/source/folder/
target: /target/folder/
tpl: /custom/template/folder/
ext: ''  # or '.htm'
ctx:
    site_name: 'My Site'
    site_url: https://example.org

Batteries included

Minimal default template.

Page has lots of tests including one importing an existing HTML site, converting it to source markdown files and then back into a static HTML site in full circle. This code can inspire users to convert existing static site or one powered by a slow Content Management System to simple markdown powered static site and maintain it with Page.

Programmers using Djagno Web Framework can make their sites faster and less demanding using static cache generation helpers provided, see static.py.

E-commerce features for static shops (cart, checkout, persistence) implemented as a shop template

Example websites using page with sources

Note: public repositories for projects using page begin with word "revisions" to prevent them from being indexed in public search engines as per github.com/robots.txt


Designed in Slovakia by Francis Malina.

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

page-0.3.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

page-0.3-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file page-0.3.tar.gz.

File metadata

  • Download URL: page-0.3.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.20

File hashes

Hashes for page-0.3.tar.gz
Algorithm Hash digest
SHA256 a2510adcf3a4ed2af49e95bcf2a8faf6dd5a207537a2796f17e13714fa4f2d2a
MD5 269e7716303d84ed869bc62fb1d84aa6
BLAKE2b-256 a40f368ef0f0083cbe8e169257fe5818660685fb0826c64750f9e61004e32bca

See more details on using hashes here.

File details

Details for the file page-0.3-py3-none-any.whl.

File metadata

  • Download URL: page-0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.20

File hashes

Hashes for page-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7968fec3e8c8d99171f32cf716c669afa8462d53eaddf43afecb02046e27000d
MD5 3c74a3024242f381372154a86dd8d549
BLAKE2b-256 82c94c2c611bd011bcd16f10fe9c8ec6ad961d8d68bcc2a68d8b84bd5c89b961

See more details on using hashes here.

Supported by

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