Metadata-Version: 2.4
Name: ssss
Version: 1.2.0
Summary: ssss is a static site generator that uses Jinja2 and Markdown to build fast, lightweight static HTML sites. Scaffold a new site in seconds with --scaffold and run it anywhere.
License-File: LICENSE
Author: Magnus Åberg
Author-email: himself@magnusaberg.me
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: argparse (>=1.4.0,<2.0.0)
Requires-Dist: importlib-metadata (>=6.3.0,<7.0.0)
Requires-Dist: jinja2 (>=3.1.6,<4.0.0)
Requires-Dist: markdown (>=3.4.3,<4.0.0)
Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
Requires-Dist: staticjinja (>=4.1.3,<5.0.0)
Requires-Dist: zipp (>=3.19.1)
Description-Content-Type: text/markdown

![example workflow](https://github.com/the-commits/super-simple-static-site/actions/workflows/python-package.yml/badge.svg)
[![codecov](https://codecov.io/gh/the-commits/super-simple-static-site/graph/badge.svg)](https://codecov.io/gh/the-commits/super-simple-static-site)
# Super Simple Static Site (ssss)

ssss is a static site generator that uses Jinja2 and Markdown to build fast, lightweight static HTML sites.
Scaffold a new site in seconds and run it anywhere.

## Installation

The recommended way to install ssss is via [pipx](https://pipx.pypa.io), which installs Python CLI tools in isolated environments and makes them available globally:

```bash
pipx install ssss
```

On Arch Linux, install pipx first if needed:

```bash
sudo pacman -S python-pipx
```

Alternatively, if you are in an active virtual environment:

```bash
pip install ssss
```

## Usage

### Quick start

Run `--scaffold` to initialize a new project, write starter templates and content, and build the site in one step:

```bash
ssss --scaffold
```

This creates:

```
ssss.yml                          # configuration file
site/
  source/
    index.md                      # starter content
    _templates/
      base.html                   # HTML base layout (Pico CSS included)
      default.j2                  # default Jinja2 template
  build/
    index.html                    # generated output
```

### Init only

Use `--init` if you only want to create the configuration file and directory structure, without writing any template or content files:

```bash
ssss --init
```

### Build an existing site

Once a configuration file exists, run ssss without any flags to build:

```bash
ssss
```

### Use a custom config file

```bash
ssss --config path/to/custom.yml
```

## Configuration

Configure your site via `ssss.yml`. The `site` section defines site-wide variables accessible in all templates and content files:

```yaml
site:
  title: My Site
  description: A site built with ssss.
  author: Your Name
  url: https://example.com
```

## Templates

Templates live in `site/source/_templates/`. ssss uses [staticjinja](https://staticjinja.readthedocs.io) for rendering.

- `base.html` — base HTML layout, extended by Jinja2 templates
- `default.j2` — default template, applied to all Markdown files without a dedicated template
- `__<stem>.j2` — template applied only to the content file with the matching stem

The default scaffold includes [Pico CSS](https://github.com/picocss/pico) via CDN — a minimal,
classless CSS framework for semantic HTML that makes every page look clean with zero extra effort.

## CLI reference

```
ssss --help
```

| Flag | Description |
|---|---|
| `--scaffold` | Create config, directories, and starter files, then build |
| `--init` | Create config and directories only |
| `--config`, `-c` | Path to a configuration file |
| `--version`, `-v` | Print the version and exit |
| `--help`, `-h` | Show help and exit |

