Skip to content

Commit 564f9b4

Browse files
authored
Merge pull request #18 from bcmi-labs/docs-workflow
Add Github workflow to render API documentation
2 parents 0632a14 + 5729507 commit 564f9b4

File tree

4 files changed

+1774
-0
lines changed

4 files changed

+1774
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Render Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- ".github/workflows/render-documentation.ya?ml"
9+
- "examples/**"
10+
- "src/**"
11+
pull_request:
12+
branches:
13+
- main
14+
paths:
15+
- ".github/workflows/render-documentation.ya?ml"
16+
- "examples/**"
17+
- "src/**"
18+
workflow_dispatch:
19+
20+
jobs:
21+
render-docs:
22+
permissions:
23+
contents: write
24+
uses: arduino/render-docs-github-action/.github/workflows/render-docs.yml@main
25+
with:
26+
source-path: './src'
27+
target-path: './docs/api.md'
28+
exclude-pattern: '*/open62541/* open62541.h'
29+
commit: ${{ github.event_name != 'pull_request' }} # Only commit changes if not a PR

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.vscode/
22
.idea/
3+
node_modules

0 commit comments

Comments
 (0)