documentaion generation

This commit is contained in:
Oiltanker
2022-05-07 03:43:05 +03:00
parent f5b2268150
commit eb94a1bdcd
13 changed files with 237 additions and 21 deletions

20
.github/workflows/clean-docs.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Clean Docs
on:
push:
branches:
- master
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs-landing-page

43
.github/workflows/generate-cs-docs.yml vendored Normal file
View File

@@ -0,0 +1,43 @@
name: Generate Docs - Cs
on:
workflow_run:
workflows: ["Clean Docs"]
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Create directories
run: mkdir -p doxygen/build ; mkdir -p doxygen/build/baro-server ; mkdir -p doxygen/build/baro-client
- name: Build server documentation
uses: mattnotmitt/doxygen-action@v1
with:
working-directory: 'doxygen/baro-server'
doxyfile-path: './Doxyfile'
- name: Build client documentation
uses: mattnotmitt/doxygen-action@v1
with:
working-directory: 'doxygen/baro-client'
doxyfile-path: './Doxyfile'
- name: Build containing documentation
uses: mattnotmitt/doxygen-action@v1
with:
working-directory: 'doxygen/'
doxyfile-path: './Doxyfile'
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doxygen/build
destination_dir: cs-docs
keep_files: true

View File

@@ -1,14 +1,18 @@
name: Generate Docs
on:
workflow_dispatch:
name: Generate Docs - Lua
on:
workflow_run:
workflows: ["Clean Docs"]
types:
- completed
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout branch
uses: actions/checkout@v2
- uses: leafo/gh-actions-lua@v8.0.0
with:
@@ -39,3 +43,5 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/html
destination_dir: lua-docs
keep_files: true