Skip to content

Install sonata

Actions
Install sonata, the static site generator
0.1.5
Latest
Star (2)

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.1.6

      - 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

Install sonata is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Install sonata, the static site generator
0.1.5
Latest

Install sonata is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.