sonata 0.1.2

The static site generator.
docs.rs failed to build sonata-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: sonata-0.1.7

sonata

sonata ci

Usage

cargo install sonata
sonata init blog
sonata serve blog

The minimal directory layout is like below, see sonata.toml for the full configuration.

my-blog
├── sonata.toml
└── posts
    └── 2024-01-01-hello-world.md

Github Action

name: sonata

on:
  push:
    branches: [main]

jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-22.04
    permissions:
      contents: write
    steps:
      - uses: actions/checkout@v4
      - uses: clearloop/sonata@0.0.7

      - name: Build the site
        run: sonata build blog

      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./blog/out

LICENSE

GPL-3.0-only