Skip to content

nikita-volkov/deploy-dhall-docs-to-github-pages.github-actions-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 

Repository files navigation

Deploy Dhall Documentation to GitHub Pages

A GitHub Actions workflow for automatically generating and deploying Dhall documentation to GitHub Pages.

Overview

This repository provides a reusable GitHub Actions workflow that:

  • Generates Dhall documentation from your source files using the dhall-docs action
  • Deploys the generated documentation to GitHub Pages automatically

Quick Start

1. Enable GitHub Pages

  1. Go to your repository SettingsPages
  2. Under Source, select GitHub Actions

2. Copy the Workflow

Create .github/workflows/deploy-dhall-docs.yml in your repository:

name: Deploy Dhall Documentation to GitHub Pages

on:
  # Trigger on pushes to main or master branch
  push:
    branches: [ main, master ]
  # Allow manual triggering
  workflow_dispatch:

jobs:
  build-docs:
    uses: nikita-volkov/deploy-dhall-docs-to-github-pages.github-actions-workflow/.github/workflows/main.yaml@v1
    with:
      input: src # Optional: Path to your Dhall source directory (default: .)
      package-name: typeclasses # Optional: Package name for documentation
    secrets: inherit

3. Trigger the Workflow

  • Automatically: Push changes to your main branch
  • Manually: Go to ActionsDeploy Dhall Documentation to GitHub PagesRun workflow

Configuration Options

The workflow accepts the following inputs that you can customize:

input

Description: Path to the directory containing your Dhall source files
Required: No
Default: .

Example:

jobs:
  build-docs:
    uses: nikita-volkov/deploy-dhall-docs-to-github-pages.github-actions-workflow/.github/workflows/main.yaml@v1
    with:
      input: dhall-src  # If your Dhall files are in 'dhall-src'

package-name

Description: Name of your Dhall package to display in the generated documentation
Required: No
Default: None

Example:

jobs:
  build-docs:
    uses: nikita-volkov/deploy-dhall-docs-to-github-pages.github-actions-workflow/.github/workflows/main.yaml@v1
    with:
      package-name: my-awesome-dhall-library

In the Wild

Here are some real-world examples of projects using this workflow:

A comprehensive typeclass library for the Dhall configuration language. This project demonstrates typical usage of the workflow:

The project uses this workflow to automatically generate and deploy documentation from Dhall source files located in the src/ directory, with typeclasses as the package name. The workflow triggers on pushes to the main branch and can also be run manually.

Troubleshooting

Common Issues

📄 Pages not updating: Ensure GitHub Pages is configured to use "GitHub Actions" as the source in your repository settings.

🔒 Permission denied: Verify that the pages: write and id-token: write permissions are set in your workflow.

📁 No Dhall files found: Check that your Dhall files are in the correct directory (default: src) or update the input parameter in your workflow configuration.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •