Allow documentation (re)generation in CI build

Provide a mechanism to allow the documentation to be force rebuilt.
This commit is contained in:
Edward Thomson
2024-12-09 12:20:42 +00:00
parent c86842f0a5
commit 1da67ef096
2 changed files with 32 additions and 13 deletions

View File

@@ -6,6 +6,11 @@ on:
branches: [ main, maint/* ]
release:
workflow_dispatch:
inputs:
force:
description: 'Force rebuild'
type: boolean
required: true
concurrency:
group: documentation
@@ -42,8 +47,14 @@ jobs:
working-directory: source
- name: Generate documentation
run: |
args=""
if [ "${{ inputs.force }}" = "true" ]; then
args="--force"
fi
npm install
./generate ../.. ../../../www/docs
./generate $args ../.. ../../../www/docs
working-directory: source/script/api-docs
- name: Examine changes
run: |