Metadata-Version: 2.3
Name: air
Version: 0.3.0
Summary: Add your description here
Author-email: "Audrey M. Roy Greenfeld" <audrey@feldroy.com>
Requires-Python: >=3.12
Requires-Dist: jinja2==3.1.4
Requires-Dist: markdown==3.6
Description-Content-Type: text/markdown

# air

An ultra-lightweight static site generator created by [https://audrey.feldroy.com](@audreyfeldroy).

* Project homepage and documentation: https://air.feldroy.com
* GitHub repo: https://github.com/feldroy/air
* PyPI package: https://pypi.org/project/air/

## Quickstart

First, create a directory for your site, initialize it with Rye, and add the `air` package. Replace `example.com` with the name of your site:

```bash
mkdir example.com
cd example.com
rye init
rye add air
```

Then create an `input` directory and add some templates:

```bash
touch input/base.html input/index.html
```

Put the following content in `input/base.html`:

```html
<!DOCTYPE html>
<html>
<body>
    {% block content %}{% endblock %}
</body>
</html>
```

And put the following content in `input/index.html`:

```html
{% extends "base.html" %}

{% block content %}
<h1>Hello, world!</h1>
{% endblock %}
```

Then run the `air` command:

```bash
rye run air
```

The generated site will be in the `public` directory.

## Using Markdown

Put the following content in `input/hello.md`:

```markdown
---
title: Home
---

# Hello, world!
```

Then run the `air` command:

```bash
rye run air
```

The generated site will be in the `public` directory, with a `hello.html` page generated from the `hello.md` file.

## Deploying to GitHub Pages

First, create a repository on GitHub with your site's domain name as the repository name, e.g. example.github.io

Enable GitHub Pages: In your repository, go to "Settings" > "Pages" and set:

* Source: Deploy from a branch
* Branch: main
* Folder: / (root)

Click "Save".

Commit and push your HTML files to the `main` branch.

Set up your custom domain per GitHub's instructions.
