Skip to content

Commit 902fa9e

Browse files
authored
Merge pull request #27 from telos-collaboration/deploy-docs
Deploy docs on GH pages
2 parents 1a1a433 + 6f9584d commit 902fa9e

8 files changed

Lines changed: 113 additions & 406 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
types: [opened, synchronize, reopened, ready_for_review]
8+
branches: ["**"]
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
# Only allow one deployment at a time; cancel in-progress deployments
17+
concurrency:
18+
group: "pages"
19+
cancel-in-progress: true
20+
21+
jobs:
22+
build:
23+
name: Build the docs
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout (with submodules)
27+
uses: actions/checkout@v5
28+
29+
# - name: Install Doxygen and Graphviz
30+
# run: sudo apt-get install -y doxygen graphviz
31+
32+
- name: Install Doxygen and Graphviz
33+
uses: ssciwr/doxygen-install@v2.0.1
34+
with:
35+
version: "1.16.1"
36+
37+
38+
- name: Set up Python
39+
uses: actions/setup-python@v5
40+
with:
41+
python-version: "3.x"
42+
43+
- name: Install Python dependencies
44+
run: |
45+
pip install mkdocs
46+
pip install mkdocs-literate-nav
47+
48+
- name: Build User Docs
49+
run: mkdocs build
50+
51+
- name: Build Doxygen
52+
run: |
53+
./bootstrap.sh
54+
./configure --without-gmp --without-mpfr --enable-doxygen-doc
55+
make doxygen-doc
56+
57+
- name: Assemble site
58+
run: |
59+
cp -r doxygen-doc/html/. site/dev/
60+
# Prevent GitHub Pages from processing output through Jekyll
61+
touch site/.nojekyll
62+
63+
- name: Upload Pages artifact
64+
uses: actions/upload-pages-artifact@v3
65+
with:
66+
path: site
67+
68+
deploy:
69+
environment:
70+
name: github-pages
71+
url: ${{ steps.deployment.outputs.page_url }}
72+
if: github.event_name == 'push'
73+
runs-on: ubuntu-latest
74+
needs: build
75+
steps:
76+
- name: Deploy to GitHub Pages
77+
id: deployment
78+
uses: actions/deploy-pages@v4

Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# additional include paths necessary to compile the C++ library
2+
AUTOMAKE_OPTIONS = foreign
23
SUBDIRS = Grid benchmarks tests examples HMC
34

45
include $(top_srcdir)/doxygen.inc

0 commit comments

Comments
 (0)