Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ffc0411

Browse files
authored
[CI] main branch gen-docs.sh
1 parent b54416e commit ffc0411

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/ci/gen-docs.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mkdir -p "$output_folder"
1010
# usage: run_doxygen_coverage <branch-name> <output-directory>
1111
function run_doxygen_coverage {
1212
pushd ../../doxygen
13-
if [ "$1" = "main" ]; then dir="Doxygen"; else dir="$1/Doxygen"; fi
13+
if [ "$1" = "master" ]; then dir="Doxygen"; else dir="$1/Doxygen"; fi
1414
# Remove the old documentation
1515
rm -rf "$2/$dir"
1616
mkdir -p "$2/$dir"
@@ -28,7 +28,7 @@ function run_doxygen_coverage {
2828
rm -rf tmp-Doxyfile
2929
popd
3030

31-
if [ "$1" = "main" ]; then dir="Coverage"; else dir="$1/Coverage"; fi
31+
if [ "$1" = "master" ]; then dir="Coverage"; else dir="$1/Coverage"; fi
3232
pushd ../..
3333
rm -rf docs/Coverage build
3434
cmake -S. --preset ci-cov
@@ -62,7 +62,7 @@ echo "Documentation for" \
6262
> "$README"
6363
# Always have a link to main, it's at the root of the docs folder
6464
echo -e '\n### Main Branch\n' >> "$README"
65-
echo "- **main** " >> "$README"
65+
echo "- **master** " >> "$README"
6666
echo " [Doxygen](Doxygen/index.html)"\
6767
"─ [Coverage](Coverage/index.html)" >> "$README"
6868
# Find all tags with documentation (version numbers)
@@ -101,4 +101,4 @@ include:
101101
- "_sources"
102102
- "_static"
103103
- "_images"
104-
EOF
104+
EOF

0 commit comments

Comments
 (0)