Skip to main content

HTML/CSS-only Python SSG with support for LaTeX, syntax highlighting and sidenotes.

Project description

alloypress

A Python static site generator which I use for my personal website.

Getting Started

Install via pip install alloypress.

Run the following Python code in the root directory of your site:

from alloypress import generate
generate()

An example of this can be seen in ./tests. It will take every .md file in ./raw and generate the HTML in ./.

Features

The high-level approach of alloypress is serve static HTML and CSS files, rendering nothing client-side.

It supports:

  • Jon Gruber's original Markdown syntax via markdown
  • LaTeX via latex2mathml inside $ and $$ delimiters
  • Syntax highlighting for Python via pygments
  • Sidenotes which are displayed inline on narrow devices
  • Automatic generation of an index page for each top-level folder

To Be Implemented

  • Filtering by tags for posts in the index page
  • Clearing old files before generating new ones
  • Support for other languages via pygments
  • Sidebar-based navigation
  • Embedding-based search across all pages
  • More coming soon...

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

alloypress-0.1.0.tar.gz (4.3 MB view details)

Uploaded Source

Built Distribution

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

alloypress-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file alloypress-0.1.0.tar.gz.

File metadata

  • Download URL: alloypress-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for alloypress-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3ea3339ae37a259bd73297836a88a36ad5e8b6b1d111826c275d3369ea84ad81
MD5 88e37a256f228e17121660bd7278f1cb
BLAKE2b-256 6291a576502e457cc211fe93b5cfcca5172819e131fbd38f7b5d17f521a0ae46

See more details on using hashes here.

File details

Details for the file alloypress-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: alloypress-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for alloypress-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ecefddb9a35fed0d431dd2b43375427ac5cfd60fb749bf4a2d20e5158f58cbe7
MD5 b0ce5917d9a8ce6437aad6c387e432ba
BLAKE2b-256 f9f75b1d352ba480e6ff91b6b448a672a3017ce2a6e3d7e46cbf3a0464ce6e54

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