Skip to content

Commit

Permalink
Merge pull request #85 from thomaslevesque/add-simpler-workflows-to-g…
Browse files Browse the repository at this point in the history
…enerate-docs

Add simpler workflows to generate docs
  • Loading branch information
blairconrad authored May 22, 2024
2 parents 596a605 + 6f1aa0f commit 89baa29
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/generate-analyzer-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Generate Analyzer docs

on:
workflow_dispatch:
inputs:
version:
type: string
required: true
description: "Documentation version to generate"
source-ref:
type: string
required: true
description: "Git ref of the source repo"
default: master
publish-mode:
type: choice
required: true
description: "Publish mode"
options:
- "none"
- "auto-merge"
- "pull-request"
default: "pull-request"

jobs:
generate-docs:
uses: ./.github/workflows/generate-docs.yml
with:
version: ${{ inputs.version }}
source-ref: ${{ inputs.source-ref }}
source-repo: 'FakeItEasy/FakeItEasy.Analyzers'
output-prefix: docs/analyzers
publish-mode: ${{ inputs.publish-mode }}
23 changes: 23 additions & 0 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,29 @@ on:
- "auto-merge"
- "pull-request"
default: "pull-request"
workflow_call:
inputs:
version:
type: string
required: true
description: "Documentation version to generate"
source-repo:
type: string
required: true
description: "Repository to build from"
source-ref:
type: string
required: true
description: "Git ref of the source repo"
output-prefix:
type: string
required: true
description: "Output path prefix"
publish-mode:
type: string
required: true
description: "Publish mode"
default: "pull-request"

jobs:

Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/generate-fakeiteasy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Generate FakeItEasy docs

on:
workflow_dispatch:
inputs:
version:
type: string
required: true
description: "Documentation version to generate"
source-ref:
type: string
required: true
description: "Git ref of the source repo"
default: master
publish-mode:
type: choice
required: true
description: "Publish mode"
options:
- "none"
- "auto-merge"
- "pull-request"
default: "pull-request"

jobs:
generate-docs:
uses: ./.github/workflows/generate-docs.yml
with:
version: ${{ inputs.version }}
source-ref: ${{ inputs.source-ref }}
source-repo: 'FakeItEasy/FakeItEasy'
output-prefix: docs
publish-mode: ${{ inputs.publish-mode }}

0 comments on commit 89baa29

Please sign in to comment.