Skip to content

Commit 81a876c

Browse files
committed
CI: add doxigen doc generation step
Signed-off-by: Hofi <[email protected]>
1 parent e01a808 commit 81a876c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/jekyll-gh-pages.yml

+14
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,20 @@ jobs:
9696
./_tools/pack debug
9797
ls -AlR _site/assets/js
9898
99+
# Generate and add Doxygen source documentation
100+
sudo apt-get install doxygen graphviz -y
101+
102+
OSE_SRC_REPO=https://github.com/syslog-ng/syslog-ng.git
103+
OSE_SRC_REPO_BRANCH=develop # as this is a developer documentation use the latest develop branch instead of the master
104+
git clone --branch ${OSE_SRC_REPO_BRANCH} --single-branch ${OSE_SRC_REPO} ./_work
105+
106+
pushd ./_work
107+
# How to override Doxygen options from command line
108+
# https://www.doxygen.nl/manual/faq.html#faq_cmdline
109+
( cat ./Doxyfile; echo "OUTPUT_DIRECTORY=../_site/dev-guide/chapter_9/" ) | doxygen -
110+
popd
111+
rm -Rf ./_work
112+
99113
- name: Upload artifact
100114
# Automatically uploads an artifact from the './_site' directory by default
101115
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)