Skip to main content

Simple static site generator

Project description

Simplepysite

This is a super-simple static site generator. You can use it to write markdown files and quickly convert them to nicely-styled html. It is basically just some convenience functions built on top of the markdown library (required). This package will provide you with a very simple template for writing blog-like posts, as well as some simple css. Standard markdown syntax applies, and this is true for images and links.

Install

Make sure you have activated your virtual environment and use pip:

python -m pip install simplepysite

Usage

cd to the directory where you would like to create a site, and run the following:

python -m simplepysite

This will create a template site for you. The "pages" folder contains the markdown files, and html files will be created wherever this command is run.

If you are working this into a workflow, you can also import it as follows:

from simplepysite.site import establish_site, build_site


establish_site() # creates a pages folder, a sample markdown file, and a generic style.css which can be edited

build_site() # assuming there is a "pages" folder, all markdown files contained therein are converted to html

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

simplepysite-0.1.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

simplepysite-0.1.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file simplepysite-0.1.3.tar.gz.

File metadata

  • Download URL: simplepysite-0.1.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for simplepysite-0.1.3.tar.gz
Algorithm Hash digest
SHA256 dd501cccf89c06da11301b6a4b240bc055f4f269960972842b2e77885aee3e22
MD5 6fbd7a53667a5f79ec33058a14f55325
BLAKE2b-256 424b224cb926d63568569c4942611188304fbb747acae1e860a1ab371a6d451f

See more details on using hashes here.

File details

Details for the file simplepysite-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: simplepysite-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for simplepysite-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 48464e3409b2642fe2b8cfd38845b91b2cc56d4ab18fcf663a4afcd9064dc7f1
MD5 0f4c66099e52c8cc80aac7e88320a84b
BLAKE2b-256 7a297285005f162aab48bd9e3ee59f4f32653a0d83c27d4944b3e1160cb2e00c

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