Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-compiled documentation with Doxygen and github actions #30

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: github pages

on:
push:
branches:
- doxygen-action # Set a branch name to trigger deployment

jobs:
deploy:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Build
uses: mattnotmitt/doxygen-action@v1
with:
doxyfile-path: './doc/Doxyfile'

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Default Doxyfile build documentation to html directory.
# Change the directory if changes in Doxyfile
publish_dir: ./html
2 changes: 2 additions & 0 deletions doc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
html/
doxygen_*.tmp
1,808 changes: 1,808 additions & 0 deletions doc/Doxyfile

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions doc/MONC.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Main Page {#mainpage}
=========

This will eventually be some introductory documentation to MONC.

For now use the [entry point into MONC](@ref monc_driver) to explore the code
structure of MONC, browse the modules or use search above.

This documentation was compiled from `master` on the Leeds fork of MONC:
https://github.com/Leeds-MONC/monc
4 changes: 4 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
all:
doxygen Doxyfile
echo 'Open a browser to http://localhost:8000/html'
python -m SimpleHTTPServer
2 changes: 2 additions & 0 deletions io/src/configurationparser.F90
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ module configuration_parser_mod
character, dimension(:), allocatable :: text_configuration
end type io_configuration_type

#ifndef DOXYGEN_SHOULD_SKIP_THIS
abstract interface
subroutine handle_recv_data_from_io_server(io_configuration, data_buffer, inter_io_index)
import io_configuration_type
Expand All @@ -128,6 +129,7 @@ subroutine handle_recv_data_from_io_server(io_configuration, data_buffer, inter_
integer, intent(in) :: inter_io_index
end subroutine handle_recv_data_from_io_server
end interface
#endif /* DOXYGEN_SHOULD_SKIP_THIS */

!< For reading the IO XML configuration, these are string length constants which can be increased if required
integer, parameter :: FILE_STR_STRIDE=10000, FILE_LINE_LEN=2000
Expand Down
2 changes: 2 additions & 0 deletions io/src/writers/writer_types.F90
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module writer_types_mod
private
#endif

#ifndef DOXYGEN_SHOULD_SKIP_THIS
abstract interface
!> Time manipulation interface which is implemented by the instantaneous and time averaged manipulations
type(data_values_type) function perform_time_manipulation(instant_values, output_frequency, field_name, timestep, time)
Expand All @@ -32,6 +33,7 @@ logical function is_field_ready_to_write(latest_time, output_frequency, write_ti
integer, intent(in) :: latest_timestep, write_timestep
end function is_field_ready_to_write
end interface
#endif /* DOXYGEN_SHOULD_SKIP_THIS */

!< Pending writes which will be dealt with sequentially
type pending_write_type
Expand Down