-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added doxygen target and CI/CD stage * fixed type in CI config * added doxygen comments * fixed type in doxyfile * added comments describing possible errors
- Loading branch information
Showing
5 changed files
with
114 additions
and
2 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 |
---|---|---|
|
@@ -48,4 +48,34 @@ jobs: | |
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
slug: maxtek6/threadpool | ||
slug: maxtek6/threadpool | ||
|
||
docs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Doxygen | ||
uses: ssciwr/doxygen-install@v1 | ||
|
||
- name: Install Dot | ||
run: sudo apt-get update && sudo apt-get install graphviz | ||
|
||
- name: Configure | ||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DTHREADPOOL_DOCS=ON | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --target docs | ||
|
||
- name: Publish | ||
uses: cpina/[email protected] | ||
env: | ||
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} | ||
with: | ||
source-directory: 'build/docs/html' | ||
destination-github-username: 'maxtek6' | ||
destination-repository-name: 'maxtek6.github.io' | ||
user-email: [email protected] | ||
target-branch: master | ||
target-directory: docs/threadpool |
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,13 @@ | ||
find_package(Doxygen) | ||
|
||
set(doxyfile_in ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in) | ||
|
||
set(doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) | ||
|
||
configure_file(${doxyfile_in} ${doxyfile} @ONLY) | ||
|
||
add_custom_target(docs | ||
COMMAND ${DOXYGEN_EXECUTABLE} ${doxyfile} | ||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} | ||
COMMENT "Generating API documentation with Doxygen" | ||
VERBATIM) |
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,20 @@ | ||
# Use: `doxygen -g test.txt` to generate all possible settings for this file | ||
|
||
# For modern doxygen style uncomment these three lines: | ||
# HTML_EXTRA_STYLESHEET = @CMAKE_CURRENT_SOURCE_DIR@/doxygen/customdoxygen.css | ||
# HTML_HEADER = @CMAKE_CURRENT_SOURCE_DIR@/doxygen/header.html | ||
# HTML_FOOTER = @CMAKE_CURRENT_SOURCE_DIR@/doxygen/footer.html | ||
|
||
# not interested build output | ||
QUIET = NO | ||
|
||
# Basic settings: | ||
PROJECT_NAME = "Threadpool" | ||
#PROJECT_NUMBER = @PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@ | ||
INPUT = @PROJECT_SOURCE_DIR@ | ||
|
||
FILE_PATTERNS = *.hpp \ | ||
*.md | ||
EXTRACT_ALL = YES | ||
OUTPUT_DIRECTORY = @CMAKE_BINARY_DIR@/docs | ||
USE_MDFILE_AS_MAINPAGE = README.md |
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