Skip to content

Commit 7e28435

Browse files
authored
Merge pull request TESSEorg#329 from TESSEorg/reorg-ttg-dox-deployment-layout
deploy dox to `ttg/` directly, not to `ttg/ttg-master`
2 parents a49eb91 + d8b5405 commit 7e28435

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,18 +175,16 @@ jobs:
175175
cp -p ttg-docs-template/* ttg-docs
176176
rm -rf ttg-docs-template
177177
cd ttg-docs
178-
# copy TTG's README.md into index.md
179-
cp ${{github.workspace}}/README.md index.md
180-
# update dox
181-
if [ -d dox-master ]; then
182-
rm -rf dox-master
183-
fi
184-
mv ${{github.workspace}}/build/doc/dox/html dox-master
178+
# remove old docs if present
179+
rm -rf dox-master
180+
# deploy doxygen HTML directly (README.md is already used as doxygen mainpage)
181+
cp -rp ${{github.workspace}}/build/doc/dox/html/* .
185182
# Jekyll does not allow files with "special" names, e.g. whose names start with underscore
186183
# must "include" such files explicitly
187184
# re: how file names must be formatted: see https://github.com/jekyll/jekyll/issues/1352
188185
echo "include:" >> _config.yml
189-
find dox-master -name "_*" | sed "s/dox-master\// \- /g" >> _config.yml
186+
find . -maxdepth 1 -name "_*" -type f | sed "s/\.\// \- /g" >> _config.yml
187+
find . -maxdepth 1 -name "_*" -type d | sed "s/\.\// \- /g" | sed "s/$/\//g" >> _config.yml
190188
# make empty repo to ensure gh-pages contains no history
191189
git init
192190
git add *

0 commit comments

Comments
 (0)