Skip to main content

SiteFab: state of the art static website generator for humans

Linux Status macOS Status Code coverage

Getting Started in 30 seconds

Here is how to install SiteFab, Create a new site and compile it in less than 30 seconds:

# install the main package
pip install sitefab

# clone the site template as base
git clone https://github.com/ebursztein/sitefab-template.git mysite/

# clone the plugins in your site directory
git clone https://github.com/ebursztein/sitefab-plugins.git mysite/plugins

# generate your shiny new site
sitefab -c mysite/config/sitefab.yaml generate

Et voila! you know have a fully fonctional site that can be statically compiled. As the next step you should add your content, customize the html templates and tweak the plugins configuration to your liking!

Key Features

Here are some of the key highlevel functionalities that makes SiteFab the static generator of choice for modern websites:

  • State of the art images processing stack: The images stack generate out of the box all you need to use image in optimal fashion including: reactive images for the <picture> element, webp versions for the browsers who support it, frozen thumbnail for the loading and cropped thumbnails for previews.
  • Bleeding edge natural language processing stack: Leveraging the latest advance in NLP Sitefab offers: An accurate list of related posts (LSI algorithm), a client side faceted search and a smart client-side autocompletion
  • Fully customizable: Its flexible plugin system and templatized parser make it easy and fast to customize SiteFab to your needs.

Design principles

Beside its technical features what separates SiteFab from other site generators is its guiding principles:

  • Configuration over convention: Every behavior is explictly specified. There are no special files or directories. SiteFab only do what the site configuration say. Nothing more, nothing less.

  • Content Agnostic: There is only one type of content called post. SiteFab makes no assumption about the content stored in the .md files. Its job is to apply the configuration specified in the frontmatter to render the specificied files and ensure that the enabled plugins are properly executed.

  • Atomicity: Each piece of content is self contained by having its own configuration in its frontmatter including which template to use. This allows to accomodate both complex sites with per page configuration and very simple ones that reuse the same template again and again.

  • Orthogonality: Site configuration, plugins and plugins configuration are independent of the core engine so you can use as many configurations and tweaked plugins you want. Additionally you can check those alongside with your site content to have reproducible build, safe rollbacks and concurrent version of the build pipeline (e.g alpha versus stable).

Alternatives

Here are some popular alternatives if SiteFab is not what you are looking for:

  • Jekyll: The most popular site generate, written in Ruby.

  • Hugo: A popular site generator, written in Go that focuses on speed.

  • Pelican: Another site generator written in Python.

Metadata

Release files for sitefab 1.0.1579461881

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

Source distribution (sdist)

Source distribution for sitefab 1.0.1579461881
File Size Uploaded
sitefab-1.0.1579461881.tar.gz 41.7 kB Details

Built distribution (wheel)

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

Total release size: 97.5 kB

Release files / sitefab-1.0.1579461881.tar.gz

Download URL sitefab-1.0.1579461881.tar.gz
Size 41.7 kB
Tags Source
SHA-256 checksum
How to use checksums
07377303c1ab2db8a8416e117e2b070e216829788e7836a5baf160ed8e73062f
BLAKE2b-256 checksum
How to use checksums
665a42a0b035b544e334a3d180c6b8b2b61d4037cfb9315a6d7e722a6ddb7c8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

Release files / sitefab-1.0.1579461881-py3-none-any.whl

Download URL sitefab-1.0.1579461881-py3-none-any.whl
Size 55.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa84fa1a0cd44c8a3911a93bc3942cd4fe3a543311f157596fbf9e1486164bc2
BLAKE2b-256 checksum
How to use checksums
93079dc20b836aa7b79f693b76023c686f073dc73faa4767cc04835f140a7abd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1
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