Skip to content

Commit

Permalink
Update to latest Hugo documentation theme version (4.0.4).
Browse files Browse the repository at this point in the history
Signed-off-by: Carsten Lohmann <[email protected]>
  • Loading branch information
calohmn committed Jun 9, 2022
1 parent 234dd22 commit dac78e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jenkins/Hono-Website-Pipeline-Declarative.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ spec:
steps {
echo "cloning Hugo Relearn theme..."
sh '''
git clone --depth 1 --branch 3.4.1 https://github.com/McShelby/hugo-theme-relearn.git ${WORKSPACE}/hono-documentation-assembly/themes/hugo-theme-relearn
git clone --depth 1 --branch 4.0.4 https://github.com/McShelby/hugo-theme-relearn.git ${WORKSPACE}/hono-documentation-assembly/themes/hugo-theme-relearn
'''
echo "cloning Hugo Universal theme..."
sh '''
Expand Down
4 changes: 2 additions & 2 deletions site/build-site.bat
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ cd documentation
SET DOC_THEME_CLONING_REQUIRED=1
IF EXIST themes\hugo-theme-relearn\.git (
SET /p HEAD=<themes\hugo-theme-relearn\.git\HEAD
SET DOC_THEME_HEAD_REVISION=e9938d80ae8b5fd0d3db918e3643c01f485be19c
SET DOC_THEME_HEAD_REVISION=2e30ef1e53f9cfd47fb5d41b19cc0de1de436803
ECHO doc theme repo rev required: !DOC_THEME_HEAD_REVISION!, rev found: !HEAD!
IF "!DOC_THEME_HEAD_REVISION!" == "!HEAD!" (
SET DOC_THEME_CLONING_REQUIRED=0
Expand All @@ -59,7 +59,7 @@ IF EXIST themes\hugo-theme-relearn\.git (
IF "!DOC_THEME_CLONING_REQUIRED!" == "1" (
RMDIR /S /Q themes\hugo-theme-relearn
ECHO cloning doc theme repository...
git clone --depth 1 --branch 4.0.3 https://github.com/McShelby/hugo-theme-relearn.git themes/hugo-theme-relearn
git clone --depth 1 --branch 4.0.4 https://github.com/McShelby/hugo-theme-relearn.git themes/hugo-theme-relearn
)

IF NOT "%~1"=="" (
Expand Down
4 changes: 2 additions & 2 deletions site/build-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ DOC_THEME_CLONING_REQUIRED=1
if [ -d themes/hugo-theme-relearn/.git ]
then
HEAD=$(cat themes/hugo-theme-relearn/.git/HEAD)
DOC_THEME_HEAD_REVISION="e9938d80ae8b5fd0d3db918e3643c01f485be19c"
DOC_THEME_HEAD_REVISION="2e30ef1e53f9cfd47fb5d41b19cc0de1de436803"
if [[ "${DOC_THEME_HEAD_REVISION}" == "${HEAD}" ]]
then
DOC_THEME_CLONING_REQUIRED=0
Expand All @@ -66,7 +66,7 @@ if [[ ${DOC_THEME_CLONING_REQUIRED} -eq 1 ]]
then
rm -rf themes/hugo-theme-relearn
echo "cloning doc theme repository..."
git clone --depth 1 --branch 4.0.3 https://github.com/McShelby/hugo-theme-relearn.git themes/hugo-theme-relearn
git clone --depth 1 --branch 4.0.4 https://github.com/McShelby/hugo-theme-relearn.git themes/hugo-theme-relearn
fi

echo "Building documentation in directory: $TARGET/docs"
Expand Down

0 comments on commit dac78e7

Please sign in to comment.