File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 *
You can’t perform that action at this time.
0 commit comments