-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from SC-SGS/add_doxygen
Add doxygen and github pages
- Loading branch information
Showing
16 changed files
with
161 additions
and
1 deletion.
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,44 @@ | ||
name: generate documentation | ||
|
||
# triggers | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- documentation | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-documentation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# checkout repository | ||
- name: Checkout cppuddle | ||
uses: actions/checkout@v4 | ||
with: | ||
path: cppuddle | ||
# install dependencies | ||
- name: Dependancies | ||
run: | | ||
sudo apt update | ||
sudo apt-get install -y doxygen graphviz | ||
# CMake | ||
- name: Configure | ||
run: | | ||
cd cppuddle | ||
mkdir build | ||
cd build | ||
cmake -DCPPUDDLE_WITH_DOCUMENTATION=ON .. | ||
# make | ||
- name: Generate | ||
run: | | ||
cd cppuddle/build | ||
make doc | ||
# deploy to github pages | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./cppuddle/docs/html |
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
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,36 @@ | ||
find_package(Doxygen REQUIRED OPTIONAL_COMPONENTS dot) | ||
|
||
## configure doxygen | ||
set(DOXYGEN_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/docs") | ||
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE "README.md") | ||
set(DOXYGEN_FILE_PATTERNS "*.hpp;*cpp;*.cuh;*.cl;*.dox") | ||
set(DOXYGEN_EXTENSION_MAPPING "cu=c++;cuh=c++;cl=c++") | ||
set(DOXYGEN_STRIP_FROM_PATH "${PROJECT_SOURCE_DIR}") | ||
set(DOXYGEN_EXCLUDE "") | ||
set(DOXYGEN_ABBREVIATE_BRIEF "") | ||
set(DOXYGEN_QUIET "YES") | ||
set(DOXYGEN_HTML_TIMESTAMP "YES") | ||
set(DOXYGEN_NUM_PROC_THREADS 0) | ||
set(DOXYGEN_WARN_NO_PARAMDOC "YES") | ||
set(DOXYGEN_SORT_MEMBER_DOCS "YES") | ||
set(DOXYGEN_INLINE_INHERITED_MEMB "YES") | ||
set(DOXYGEN_EXCLUDE_SYMBOLS "*_HPP_") | ||
|
||
set(DOXYGEN_DOT_IMAGE_FORMAT "svg") | ||
set(DOXYGEN_INTERACTIVE_SVG "YES") | ||
set(DOXYGEN_INCLUDE_GRAPH "YES") | ||
set(DOXYGEN_EXTRACT_ALL "YES") | ||
|
||
## enable processing of specific attributes and macros | ||
set(DOXYGEN_ENABLE_PREPROCESSING "YES") | ||
set(DOXYGEN_MACRO_EXPANSION "YES") | ||
set(DOXYGEN_EXPAND_ONLY_PREDEF "YES") | ||
set(DOXYGEN_EXPAND_AS_DEFINED "YES") | ||
|
||
## add doxygen as target | ||
doxygen_add_docs( | ||
doc | ||
"${PROJECT_SOURCE_DIR}/include;${PROJECT_SOURCE_DIR}/tests;${PROJECT_SOURCE_DIR}/README.md" | ||
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}" | ||
COMMENT "Generating API documentation with Doxygen" | ||
) |
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
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
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
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
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
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