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
- Sortable and tag-filtered index page for each top-level folder
To Be Implemented
- Clearing old files before generating new ones
- Support for other languages via
pygments
- Sidebar-based navigation
- Embedding-based search across all pages
- Post summaries on the index page via yaml frontmatter
- 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.2.tar.gz
(4.3 MB
view hashes)
Built Distribution
Close
Hashes for alloypress-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44d9a376ae748444918e76ba135995992b4c341a5590a64b4b7559706d189441 |
|
MD5 | 4beeb7d9ced95c0b6366d58e688ce9a8 |
|
BLAKE2b-256 | 6260aa0ad7df9b3a1faefe6d5fdb66d242e525a0f74305008b3461d5e38ed94a |