Skip to content

Commit b13f8ba

Browse files
doc: add and deploy ford documentation
1 parent 625cc0a commit b13f8ba

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

.github/workflows/deploy-docs.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build and Deploy Documentation
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
Build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
13+
- name: Install Dependencies Ubuntu
14+
run: |
15+
sudo apt-get update
16+
sudo apt install -y python-dev python build-essential graphviz
17+
sudo pip install ford
18+
19+
- name: Build Developer Documenation
20+
run: |
21+
ford doc/ford-documentation.md
22+
23+
- name: Upload Documentation
24+
uses: actions/upload-artifact@v2
25+
with:
26+
name: documentation
27+
path: doc/html
28+
if-no-files-found: error
29+
30+
- name: Broken Link Check
31+
if: ${{ github.ref == 'refs/heads/main'}}
32+
uses: technote-space/broken-link-checker-action@v1
33+
with:
34+
TARGET: file://${{ github.workspace }}/doc/html/index.html
35+
RECURSIVE: true
36+
ASSIGNEES: ${{ github.actor }}
37+
38+
- name: Deploy API Documentation
39+
uses: JamesIves/[email protected]
40+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
41+
with:
42+
branch: gh-pages
43+
folder: doc/html

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Build directory
22
build
3+
doc/html
34

45
# Prerequisites
56
*.d

doc/ford-documentation.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
project: FEATS
2+
summary: Framework for Extensible Asynchronous Task Scheduling (FEATS)
3+
src_dir: ../src
4+
output_dir: html
5+
preprocess: true
6+
macro: FORD
7+
preprocessor: gfortran -E
8+
display: public
9+
protected
10+
private
11+
source: true
12+
graph: true
13+
md_extensions: markdown.extensions.toc
14+
coloured_edges: true
15+
sort: permission-alpha
16+
extra_mods: iso_fortran_env:https://gcc.gnu.org/onlinedocs/gfortran/ISO_005fFORTRAN_005fENV.html
17+
iso_c_binding:https://gcc.gnu.org/onlinedocs/gfortran/ISO_005fC_005fBINDING.html#ISO_005fC_005fBINDING
18+
project_github: https://github.com/sourceryinstitute/feats
19+
author: Damian Rouson, Robert Singleterry, Harris Snyder, and Brad Richardson
20+
print_creation_date: true
21+
creation_date: %Y-%m-%d %H:%M %z
22+
project_download: https://github.com/sourceryinstitute/feats
23+
github: https://github.com/sourceryinstitute
24+
25+
{!../README.md!}

0 commit comments

Comments
 (0)