Skip to content

Commit c788504

Browse files
authored
Transition from Travis CI to GitHub Actions (chapter 5)
1. documentation.yml has been updated 2. doxygen_config has been updated
2 parents fa696f2 + 7e63072 commit c788504

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/documentation.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
name: "Documentation"
1+
name: "Documentation update"
22

3-
# Controls when the action will run. Triggers the workflow on push or pull request
4-
# events but only for the master branch
3+
# Documentation is automatically updated after any push onto master branch
54
on:
65
push:
76
branches: [ master ]
87

9-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
108
jobs:
119
job:
12-
name: "Docs"
10+
name: "Documentation update"
1311
runs-on: ubuntu-latest
1412

1513
steps:
14+
# Duplicate the master branch to perform further actions independently
1615
- name: "Checkout code"
1716
uses: actions/checkout@v2.3.3
1817

18+
# Run Doxygen to update the documentation
1919
- name: "Run doxygen"
2020
uses: mattnotmitt/doxygen-action@v1.1.0
2121
with:
2222
working-directory: "."
2323
doxyfile-path: ./tools/doxygen_config
2424
enable-latex: true
2525

26-
- name: "Publish docs"
26+
# Deploy updated documentation files onto gh-pages branch
27+
- name: "Publish documentation"
2728
uses: peaceiris/actions-gh-pages@v3.6.4
2829
with:
2930
github_token: ${{ secrets.GITHUB_TOKEN }}
30-
publish_dir: "./tmp_docs"
31+
publish_dir: "./docs"
3132
publish_branch: gh-pages
32-

tools/doxygen_config

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8
3232
# title of most generated pages and in a few other places.
3333
# The default value is: My Project.
3434

35-
PROJECT_NAME = "tms-nets"
35+
PROJECT_NAME = "(t, m, s)-nets generator"
3636

3737
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
3838
# could be handy for archiving the generated documentation or if some version
@@ -58,7 +58,7 @@ PROJECT_LOGO =
5858
# entered, it will be relative to the location where doxygen was started. If
5959
# left blank the current directory will be used.
6060

61-
OUTPUT_DIRECTORY =
61+
OUTPUT_DIRECTORY = ./docs
6262

6363
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
6464
# directories (in 2 levels) under the output directory of each output format and
@@ -829,7 +829,7 @@ WARN_LOGFILE =
829829
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
830830
# Note: If this tag is empty the current directory is searched.
831831

832-
INPUT = $(TRAVIS_BUILD_DIR)/include/tms-nets/niederreiter2.hpp $(TRAVIS_BUILD_DIR)/include/tms-nets/details $(TRAVIS_BUILD_DIR)/tools/main_page.md
832+
INPUT = ./include/tms-nets/niederreiter2.hpp ./include/tms-nets/details ./tools/main_page.md
833833

834834
# This tag can be used to specify the character encoding of the source files
835835
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
@@ -981,7 +981,7 @@ FILTER_SOURCE_PATTERNS =
981981
# (index.html). This can be useful if you have a project on for instance GitHub
982982
# and want to reuse the introduction page also for the doxygen output.
983983

984-
USE_MDFILE_AS_MAINPAGE = $(TRAVIS_BUILD_DIR)/tools/main_page.md
984+
USE_MDFILE_AS_MAINPAGE = ./tools/main_page.md
985985

986986
#---------------------------------------------------------------------------
987987
# Configuration options related to source browsing
@@ -1110,7 +1110,7 @@ GENERATE_HTML = YES
11101110
# The default directory is: html.
11111111
# This tag requires that the tag GENERATE_HTML is set to YES.
11121112

1113-
HTML_OUTPUT = tmp_docs
1113+
HTML_OUTPUT = .
11141114

11151115
# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each
11161116
# generated HTML page (for example: .htm, .php, .asp).

0 commit comments

Comments
 (0)