Skip to main content

# sg.py – a small static site generator

## Installation

`bash $ pip install sg.py `

## Usage

Populate directory with markdown files (they have to end with .markdown). You can also create arbitrarily nested subdirectories containing .markdown files.

Sg will go recursively through all directories not beginning with an underscore (“_”) and convert the .markdown files into .html. The resulting HTML files will be saved into the _site directory, conserving the directory structure where the .markdown file was found.

Put your static content into _static. Files and subdirectories will be copied into _site without any modifications.

## TODO

  • document the YAML frontmatter

  • enable layout selection by _layout_foo or so

Metadata

Release files for sg.py 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sg.py 1.2.1
File Size Uploaded
sg.py-1.2.1.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sg.py 1.2.1
File Interpreter ABI Platform
sg.py-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / sg.py-1.2.1.tar.gz

Download URL sg.py-1.2.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d0beec76ac3aacc5334509063565c38070bb97fb50f9921a9672e5b55cc9b6a1
BLAKE2b-256 checksum
How to use checksums
58e5bc0fdc5a9d1f83ad5c82e7defb4827c732b9dd7f56dac275afacd94b5cc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release files / sg.py-1.2.1-py3-none-any.whl

Download URL sg.py-1.2.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8c67666389f16984229e8f103dca0ec2d26cbb5901731033ba1029091318625
BLAKE2b-256 checksum
How to use checksums
7d7ce1342257d97bce1086555ddb8114fabbcb11ee83124d7f352b2afc25000f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page