-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Doxyfile and generate Doxygen docs in CI
- Loading branch information
1 parent
98c59d3
commit 0a903f1
Showing
4 changed files
with
93 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,45 @@ | ||
name: doxygen_deploy | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/doxygen_deploy.yml' | ||
- 'doc/' | ||
- 'src/src/' | ||
- 'src/tms/' | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
if: github.repository == 'Bithack/principia' | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install deps | ||
run: | | ||
sudo apt-get install -y doxygen graphviz wget | ||
- name: Generate Doxygen documentation | ||
run: | | ||
wget https://raw.githubusercontent.com/rollerozxa/doxygen-awesome-css/main/doxygen-awesome.css -O doc/doxygen-awesome.css | ||
doxygen Doxyfile | ||
touch doc/doxy/html/.nojekyll | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: 'doc/doxy/html/' | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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
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,39 @@ | ||
# Project properties | ||
PROJECT_NAME = Principia | ||
PROJECT_LOGO = packaging/principia.png | ||
|
||
# Parsing | ||
JAVADOC_AUTOBRIEF = YES | ||
EXTRACT_ALL = YES | ||
EXTRACT_PRIVATE = YES | ||
EXTRACT_STATIC = YES | ||
SORT_MEMBERS_CTORS_1ST = YES | ||
WARN_IF_UNDOCUMENTED = NO | ||
BUILTIN_STL_SUPPORT = YES | ||
|
||
# Input | ||
RECURSIVE = YES | ||
STRIP_FROM_PATH = src | ||
INPUT = doc/main_page.dox \ | ||
src/src/ src/tms/ | ||
EXCLUDE = src/src/Box2D/ | ||
|
||
# Dot graphs | ||
HAVE_DOT = YES | ||
CALL_GRAPH = YES | ||
CALLER_GRAPH = YES | ||
MAX_DOT_GRAPH_DEPTH = 3 | ||
DOT_MULTI_TARGETS = YES | ||
DOT_IMAGE_FORMAT = svg | ||
|
||
# Output | ||
OUTPUT_DIRECTORY = doc/doxy/ # /tmp/doxy/ | ||
GENERATE_LATEX = NO | ||
REFERENCED_BY_RELATION = YES | ||
REFERENCES_RELATION = YES | ||
SEARCHENGINE = YES | ||
DISABLE_INDEX = YES | ||
GENERATE_TREEVIEW = YES | ||
HTML_DYNAMIC_SECTIONS = YES | ||
HTML_TIMESTAMP = YES | ||
HTML_EXTRA_STYLESHEET = doc/doxygen-awesome.css |
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,5 @@ | ||
/** @mainpage Principia documentation | ||
|
||
This site contains automatically generated documentation by Doxygen for Principia and its engine. | ||
|
||
*/ |