I’m proud to announce big updates to two of my open source projects.
Saga 3
Saga is my static site generator written in Swift. With version 3, the focus is on performance and extensibility.
The biggest change is dramatically faster rebuilds. Saga now caches the read phase between builds, which means only changed files are re-parsed. In practice, this makes iterative development noticeably quicker, especially on larger sites.
There are also a few new capabilities that make Saga more adaptable:
- Build hooks let you run custom code before or after each build (
beforeReadandafterWrite), making it easier to integrate Saga into more complex workflows. - Dev server configuration now lives directly in your pipeline, removing the need for separate setup.
- Internationalization support adds localized URLs, automatic translation linking, and locale-aware sitemaps, features that previously required custom solutions.
Saga 3 requires saga-cli version 2 to enable the incremental builds. There are a few breaking changes, so if you’re upgrading, check the migration guide.
Parsley 1.2
Parsley is my Markdown parser, and version 1.2 introduces support for adding attributes to Markdown elements using curly braces {...}.
This makes it much easier to add classes, IDs, or custom attributes without dropping down to raw HTML.
| Notation | HTML result |
|---|---|
.myclass | class="myclass" |
#myid | id="myid" |
key="value" | key="value" |
## My heading {.special #intro}
This is a paragraph.
{.note}
> A blockquote.
{.warning}
* First
* Second
{.checklist}
---
{.divider}
```python {.highlight data-title="views.py"}
def hello():
print("Hello, World!")
```
No backwards incompatible changes, so upgrading is very straightforward.