Skip to content
This repository was archived by the owner on Aug 9, 2021. It is now read-only.

Commit 89cc4d4

Browse files
Naylin15DIOHz0r
authored andcommitted
ci(development): add code documentation header
Signed-off-by: Naylin Medina <[email protected]>
1 parent 3687c3d commit 89cc4d4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/after_success.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ else
2222
fi
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
2727
else
2828
GENERATE_DOCS=false

tests/apidocs.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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
1212
else
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"/*

0 commit comments

Comments
 (0)