A minimal, opinionated static site generator
Project description
Midas
A minimal static site generator. Put markdown in site/, run midas serve, get a website.
Quick start
midas init my-blog
cd my-blog
midas serve
Or manually:
mkdir site
echo -e '---\ntitle: Hello\n---\n\nWelcome' > site/index.md
midas serve
Open http://localhost:8000.
How it works
Your content lives in site/. Every .md file becomes a page. Everything else (images, CSS, fonts) is copied to _dist/ as-is — the folder structure is your site structure.
site/
├── index.md → /
├── about.md → /about/
├── p/
│ └── post.md → /p/post/
├── style.css → /style.css
└── img/
└── photo.jpg → /img/photo.jpg
Blog posts
Files in p/ (or your configured postPrefix) are treated as blog posts, sorted by date (set in frontmatter), and included in RSS feeds.
Styles
Midas ships with a base stylesheet (/midas.css). Add overrides in site/style.css — it's loaded after the base.
Commands
| Command | Description |
|---|---|
midas init [dir] |
Scaffold a project into an empty directory |
midas build |
Build the site to _dist/ |
midas serve |
Build and start a dev server on http://localhost:8000 |
midas clean |
Delete _dist/ |
Configuration
midas.yaml is optional. Without it, Midas uses sensible defaults. Set site.url for RSS feeds and site.name for the site header.
site:
url: "https://example.com"
name: "My Site"
languages:
default: en
additional: [fi]
See the configuration reference for all available options.
Deploying
Push to GitHub and connect to a static host:
- GitHub Pages — deploy via GitHub Actions
- Cloudflare Pages — set build command to
pip install midas-ssg && midas build, output directory to_dist
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file midas_ssg-0.1.29.tar.gz.
File metadata
- Download URL: midas_ssg-0.1.29.tar.gz
- Upload date:
- Size: 61.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e27046cea0cbe782e49582c4d9160df2cdfae89fd86895fc544c01ce9e3fbbfc
|
|
| MD5 |
47767e3e92487cdc480a58efa202e2d2
|
|
| BLAKE2b-256 |
4a597b4f47c2bd6f138bb4baa104e9612f9c3c8133aba6053e9abe12bd13a278
|
Provenance
The following attestation bundles were made for midas_ssg-0.1.29.tar.gz:
Publisher:
publish.yml on vike256/Midas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
midas_ssg-0.1.29.tar.gz -
Subject digest:
e27046cea0cbe782e49582c4d9160df2cdfae89fd86895fc544c01ce9e3fbbfc - Sigstore transparency entry: 1629926269
- Sigstore integration time:
-
Permalink:
vike256/Midas@8bb23b52d8f8139309926173d152ed09ccd55333 -
Branch / Tag:
refs/tags/v0.1.29 - Owner: https://github.com/vike256
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8bb23b52d8f8139309926173d152ed09ccd55333 -
Trigger Event:
push
-
Statement type:
File details
Details for the file midas_ssg-0.1.29-py3-none-any.whl.
File metadata
- Download URL: midas_ssg-0.1.29-py3-none-any.whl
- Upload date:
- Size: 66.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4c48362f73ca09ad725f30c04afc10d8c7cd5402c5a60f942fdd5692d6b6975
|
|
| MD5 |
652f672185bc400df76671205b77f209
|
|
| BLAKE2b-256 |
0f00b1d32770215e0c84a5c6eec51ff7921cb8e466434eda02c8a2d0ad5a1da0
|
Provenance
The following attestation bundles were made for midas_ssg-0.1.29-py3-none-any.whl:
Publisher:
publish.yml on vike256/Midas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
midas_ssg-0.1.29-py3-none-any.whl -
Subject digest:
f4c48362f73ca09ad725f30c04afc10d8c7cd5402c5a60f942fdd5692d6b6975 - Sigstore transparency entry: 1629926295
- Sigstore integration time:
-
Permalink:
vike256/Midas@8bb23b52d8f8139309926173d152ed09ccd55333 -
Branch / Tag:
refs/tags/v0.1.29 - Owner: https://github.com/vike256
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8bb23b52d8f8139309926173d152ed09ccd55333 -
Trigger Event:
push
-
Statement type: