A simple static website generator powered by Jinja2
Project description
Norite
Norite is a simple static website generator powered by Jinja2 as the templating engine.
Norite's main goal is to act as an easy to use rendering engine for people who like to design their own templates or want to have the option of building a custom structure for their websites. To achieve this goal norite exposes the entire content directory as a tree data-structure to the templates along with the rendered content, leaving it up to the template designer how to interpret and display this information.
Implemented Features:
- Markdown to HTML render
- Support for using toml or json files in place of markdown
- Jinja2 based HTML templates
- Support for embedding Jinja2 templates in markdown
- Support for nested folders in website content
- Support for custom templates for any subsection of the content folder
- Support for co-locating assets with content
- Syntax highlighting in code blocks
- Sass compilation (via libsass or dart-sass)
- In-built dev server with auto reload on file changes
- Support for building custom RSS/Atom feeds and robots.txt using templates
- Automatic sitemap.xml generation
Todo:
- Tests
- Nicer error messages
- Live reload in Javascript
- Incremental builds
- Link checker
- More examples
Installation
norite is in alpha, but if you like what you see and want to give it a try, you can install using:
pip install norite
It will install the following additional packages: jinja2, markdown, toml, pygments and watchdog.
Alternatively, if you want to install it globally as a shell tool within an isolated python environment, install via pipx:
pipx install 'norite'
Documentation
Checkout the documentation for norite here: documentation
Inspiration
Norite takes inspiration from Zola's features and its way of organizing content, borrows a few concepts from Hugo, and references Pelican's and Mkdocs's internal implementations for a few things. I would happily recommend using any of these excellent SSGs!
License
MIT License: Copyright (c) 2022 - 2022 Arsh
License.txt
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
Built Distribution
File details
Details for the file norite-0.1.0.tar.gz
.
File metadata
- Download URL: norite-0.1.0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2039486e7d265275b038c324f1c0214e3ba6260c7e7fafc370290ea73cf4b31f |
|
MD5 | d1acfa8802d8a5a7216c2ce71122c5eb |
|
BLAKE2b-256 | fd736ec86e89cb22af608262e0faaeee512f705b9b7d69b152ce420c37359921 |
File details
Details for the file norite-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: norite-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfef63e0e9a811a18567f9327a8f45cd9a2c33d7f6c92fab07bd60fd91382c97 |
|
MD5 | 02fb64804060cf245c5248a042c3ec51 |
|
BLAKE2b-256 | 736a93993117115a737215b77e691e8c6bf84c51b6d37aa8c53298a8630066d9 |