A GitHub Action and npm library that transforms Agda HTML documentation with modern web features, responsive design, and search capabilities.
- Clean, responsive design with sidebar navigation
- Dark/light theme with system preference detection
- Full-text search with
Ctrl+K/Cmd+Kshortcut - Line highlighting with shareable URLs (
#L42,#L42-L48) - Type previews on hover with cross-file resolution
- GitHub integration for source file links
- Mobile-friendly responsive layout
- name: Transform Agda documentation
uses: will-break-it/agda-web-docs-lib@v1
with:
input-dir: 'html/'
github-url: 'https://github.com/your-user/your-project'
modules: 'Your.Module.Prefix'
cache-dependency-path: 'package-lock.json' # Optional: enable npm cachingInclude cache-dependency-path to enable npm caching and speed up your workflows.
Clean, responsive design with intelligent sidebar navigation, theme switching, and GitHub integration.
Instant search across modules, functions, and code blocks with fuzzy matching and keyboard navigation.
GitHub-style line selection with shareable URLs. Click line numbers or select ranges with Shift+click.
Rich type definition previews with documentation, parameter tables, and cross-file resolution.
Create agda-docs.config.json:
{
"backButtonUrl": "/",
"modules": ["Your.Module.Prefix"],
"githubUrl": "https://github.com/your-user/your-project"
}name: Deploy Agda Documentation
on:
push:
branches: [main]
jobs:
generate-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Agda
uses: wenkokke/setup-agda@v2
with:
agda-version: '2.6.4'
- name: Generate HTML
run: agda --html --html-dir=html/ src/Main.agda
- name: Transform documentation
uses: will-break-it/agda-web-docs-lib@v1
with:
input-dir: 'html/'
github-url: ${{ github.server_url }}/${{ github.repository }}
modules: 'Your.Module.Prefix'
cache-dependency-path: 'package-lock.json'
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: html/Contributions are welcome. Please feel free to submit issues and pull requests.
MIT



