Skip to content

Commit

Permalink
updated readme, adding generated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Nov 6, 2023
1 parent 333da58 commit 658a659
Show file tree
Hide file tree
Showing 6 changed files with 2,673 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .ci/docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -e

sudo apt-get install doxygen doxygen-latex graphviz

line=$(cat CMakeLists.txt | grep "project(.*)" -o); tmp=${line:8}; proj_name=${tmp:0:${#tmp}-1};
sed -i 's/\(PROJECT_NAME\s*=\s*\)\".*\"/\1\"'$proj_name'\"/g' Doxyfile Doxyfile;
doxygen Doxyfile
Binary file added .fig/hw_api.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Docs

on:
push:
branches: [ master ]
paths-ignore:
- '**/README.md'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:

cancel:

name: Cancel Previous Runs
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

docs:
runs-on: ubuntu-20.04
steps:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Generate
run: ./.ci/docs.sh

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/html
allow_empty_commit: true
force_orphan: true
Loading

0 comments on commit 658a659

Please sign in to comment.