-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add documentation workflow and awesome documentation
- Loading branch information
1 parent
09ce444
commit 6fa5c6e
Showing
5 changed files
with
484 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Awesome Documentation Build | ||
|
||
on: | ||
workflow_dispatch: # Allow manual triggers | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
ubuntu-build: | ||
name: Ubuntu Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Create build directory and run CMake | ||
run: | | ||
sudo apt-get -y update | ||
sudo apt-get -y install libpng-dev libjpeg-dev libgif-dev libtiff-dev libogg-dev libvorbis-dev libsndfile-dev zlib1g-dev | ||
curl -L -o doxygen-1.10.0.linux.bin.tar.gz https://github.com/doxygen/doxygen/releases/download/Release_1_10_0/doxygen-1.10.0.linux.bin.tar.gz | ||
tar xzf doxygen-1.10.0.linux.bin.tar.gz | ||
export PATH=${{ github.workspace }}/doxygen-1.10.0/bin:$PATH | ||
cmake -S . -B cmake_build_dir -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=cmake_install_dir -DSIMAGE_BUILD_AWESOME_DOCUMENTATION=ON | ||
- name: Build project | ||
run: | | ||
export PATH=${{ github.workspace }}/doxygen-1.10.0/bin:$PATH | ||
doxygen --version | ||
cmake --build cmake_build_dir --target documentation_awesome --config Release -- -j4 | ||
- name: Deploy Awesome Documentation to Github Pages | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: cmake_build_dir/html_awesome |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
[submodule "cpack.d"] | ||
path = cpack.d | ||
url = https://github.com/coin3d/cpack.d | ||
[submodule "docs/doxygen-awesome"] | ||
path = docs/doxygen-awesome | ||
url = https://github.com/coin3d/doxygen-awesome-css.git | ||
branch = coin3d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule doxygen-awesome
added at
621765
Oops, something went wrong.