Skip to main content

A dumb static site generator.

Project description

notes-py is a dumb static site generator. I use it to compile notes (duh) that I take about setting up packages or servers or w/e, to HTML so that I can serve them with apache and view them from any machine with internet access.

Fundamentally it uses https://github.com/rtfd/CommonMark-py to compile html from markdown files (like basically every other static site generator).

Installation

Since notes-py is self contained (within notes-py/notes.py), you can just download and install this file somewhere in your path to use it. It is also available on PyPI, so you should be able to install it with pip install notes-py as well.

If installed with pip, it will also install an entry point at compile_notes, which behaves effectively as a link to notes_py.notes.

Usage

notes-py offers both a command line and programmatic interface.

Command line

To keep the command line options simple, the only thing you need to specify is the location of a configuration file:

usage: compile_notes [-c path_to_config] [options]

Options:
    -h, --help    : Print this help text
    -c, --config  : Specipy the path to a configuration file
    -V, --version : Print version and licence info

Programmatic

The full functionalitly (it isn’t much) is available through the function at notes_py.notes.compile(content_path, compile_path, stylesheet, html_template). If you are using notes-py programmatically then you should just read through the function to understand whatit does.

Contact

You can reach me at max@friedersdorff.com

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

notes-py-0.1.3.tar.gz (15.5 kB view details)

Uploaded Source

File details

Details for the file notes-py-0.1.3.tar.gz.

File metadata

  • Download URL: notes-py-0.1.3.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for notes-py-0.1.3.tar.gz
Algorithm Hash digest
SHA256 7b72d54e037e3154e69380a0e7ddc7571e3576b5a435c689b2a53ff09e9b3a90
MD5 66e348a7c5e39197996fccd386d41da0
BLAKE2b-256 52a90439fbdaac696046f78f410b1214c6c708be71cabf0056b89744df6eda84

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