This repository was archived by the owner on Aug 9, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2222fi
2323
2424# find if we are in a valid branch to build docs
25- if echo " $TRAVIS_BRANCH " | grep -q -P ' ^(master|develop|support/|release/ )' ; then
25+ if echo " $TRAVIS_BRANCH " | grep -q -P ' ^(master|develop|support/)' ; then
2626 GENERATE_DOCS=true
2727else
2828 GENERATE_DOCS=false
Original file line number Diff line number Diff line change 77#
88
99# find if we are in a valid branch to build docs
10- if echo " $TRAVIS_BRANCH " | grep -q -P ' ^(master|develop|support/|release/ )' ; then
10+ if echo " $TRAVIS_BRANCH " | grep -q -P ' ^(master|develop|support/)' ; then
1111 GENERATE_DOCS=true
1212else
1313 GENERATE_DOCS=false
@@ -36,6 +36,10 @@ if [ "$GENERATE_DOCS" = true ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then
3636 --tree \
3737 -s inc -d development/code-documentation/" $TRAVIS_BRANCH " /
3838
39+ # add layouts and remove default
40+ find development/code-documentation/" $TRAVIS_BRANCH " / -type f -name " *.html" -exec sed -i " 1s/^/---\\ nlayout: codeDocumentation\\ n---\\ n/" " {}" \;
41+ rm development/code-documentation/" $TRAVIS_BRANCH " /resources/style.css
42+
3943 # commit_website_files
4044 echo " adding the code documentation report"
4145 git add development/code-documentation/" $TRAVIS_BRANCH " /*
You can’t perform that action at this time.
0 commit comments