-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basic doxygen build ported from our other repo
- Loading branch information
Showing
22 changed files
with
1,870 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
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,51 @@ | ||
name: Publish doc to GitHub pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- devel | ||
pull_request: | ||
paths-ignore: | ||
- 'doc/**' | ||
|
||
permissions: | ||
contents: write | ||
|
||
concurrency: | ||
group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.event_name == 'pull_request'}} | ||
|
||
jobs: | ||
docs: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup doxygen | ||
run: | | ||
sudo apt-get install doxygen | ||
sudo apt-get install -y graphviz | ||
- name: Build doxygen files | ||
run: | | ||
cd doc/doxygen | ||
cmake . | ||
make | ||
- name: Upload folders | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: html-doc | ||
path: doc/doxygen/html/ | ||
|
||
- name: Deploy to GitHub pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
if: github.ref == 'refs/heads/devel' | ||
with: | ||
branch: gh-pages | ||
folder: doc/doxygen/html/ | ||
target-folder: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# PRISMS-PF Documentation | ||
The prebuilt documentation can be found here: | ||
|
||
https://prisms-center.github.io/phaseField/doxygen_files/manual.html | ||
|
||
## Install Doxygen | ||
Doxygen can be installed from https://www.doxygen.nl/ | ||
|
||
## Build | ||
After Doxygen is installed, simply compile like normal. | ||
``` | ||
cmake . | ||
``` | ||
``` | ||
make | ||
``` | ||
|
||
## Licensing | ||
The documentation is covered with the same license as the PRISMS-PF library. |
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,31 @@ | ||
## | ||
# CMake script for the PRISMS-PF doxygen documentation. | ||
## | ||
|
||
cmake_minimum_required(VERSION 3.17.0) | ||
|
||
project(PRISMS-PF) | ||
|
||
# Check that Doxygen is installed | ||
find_package(Doxygen REQUIRED) | ||
|
||
if (DOXYGEN_FOUND) | ||
# Path of Doxyfile | ||
set(DOXYGEN_INPUT ${CMAKE_SOURCE_DIR}/Doxyfile) | ||
|
||
# Path of output file | ||
set(DOXYGEN_OUTPUT ${CMAKE_SOURCE_DIR}/Doxyfile.out) | ||
|
||
# Copy input to output | ||
configure_file(${DOXYGEN_INPUT} ${DOXYGEN_OUTPUT} @ONLY) | ||
|
||
# Add target so we can just call make with no target | ||
add_custom_target(doc_doxygen ALL | ||
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUTPUT} | ||
COMMENT "Generating Doxygen documentation" | ||
VERBATIM | ||
) | ||
|
||
message(STATUS "Doxygen documentation will be generated using: ${DOXYGEN_INPUT}") | ||
|
||
endif (DOXYGEN_FOUND) |
Oops, something went wrong.