llmshim 0.2.0

Blazing fast LLM API translation layer in pure Rust
Documentation
name: Deploy docs to GitHub Pages

# Gated to main: this only runs after the docs branch is merged. It never
# fires on feature branches or pull requests.
on:
  push:
    branches: [main]
    paths:
      - 'docs/**'
      - '.github/workflows/pages.yml'
  workflow_dispatch:

permissions:
  contents: read
  pages: write
  id-token: write

# Allow one concurrent deployment; let an in-progress deploy finish.
concurrency:
  group: pages
  cancel-in-progress: false

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Install mdBook + mermaid preprocessor
        uses: taiki-e/install-action@v2
        with:
          # Pin both: mdbook-mermaid must match mdbook's preprocessor protocol
          # (an unpinned mismatch fails with "Unable to parse the input").
          tool: mdbook@0.4.52,mdbook-mermaid@0.16.2
      - name: Build book
        run: mdbook build docs
      - name: Upload Pages artifact
        uses: actions/upload-pages-artifact@v3
        with:
          path: docs/book

  deploy:
    needs: build
    runs-on: ubuntu-latest
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    steps:
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v4