Skip to main content

sg.py -- a small static site generator

Installation

$ 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blag-0.0.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

blag-0.0.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file blag-0.0.0.tar.gz.

File metadata

  • Download URL: blag-0.0.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1+

File hashes

Hashes for blag-0.0.0.tar.gz
Algorithm Hash digest
SHA256 fff2eb80377db89e9c6e4a2adb62546a69f1b57d6c048b1f09a311be3f3af3d5
MD5 0d2dd6ad1f2f8cc1eddff54911361c45
BLAKE2b-256 04886c786f718900a3bdfed92441bc72ce2e29eb99deadc01afd2b5497e8ddca

See more details on using hashes here.

File details

Details for the file blag-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: blag-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1+

File hashes

Hashes for blag-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4bea0bbdbf3205c4de6033aecc0ff4b54e1d9bd04dd5bc1334ebedc1f3c4f7e
MD5 8f362f5f245c95435193e4e9204bc106
BLAKE2b-256 5cb9d749e1ffcf127a249055f470e50a69bb993a0f50e0a17fb6d50e8a1afb36

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 Sentry Error logging StatusPage Status page