C-Docs: Set the version of hugo-book theme 52/38752/3
authorTibor Frank <tifrank@cisco.com>
Tue, 2 May 2023 08:07:03 +0000 (08:07 +0000)
committerTibor Frank <tifrank@cisco.com>
Tue, 2 May 2023 08:36:31 +0000 (08:36 +0000)
Change-Id: Ic8daac7dfc10788baa44d3cf8cf587296ec5070d
Signed-off-by: Tibor Frank <tifrank@cisco.com>
csit.infra.hugo/docker-compose.yaml
docs/go.mod
docs/go.sum [deleted file]
resources/libraries/bash/function/hugo.sh

index a1a70d1..9799023 100644 (file)
@@ -2,7 +2,7 @@ version: "3"
 services:
   cdocs-init:
     image: "klakegg/hugo:ext-alpine"
-    command: "mod get -u"
+    command: "mod get github.com/alex-shpak/hugo-book@v0.0.0-20230424134111-d86d5e70c7c0"
     volumes:
       - "../docs:/src"
   cdocs-build:
index 11f0965..eb9dde3 100644 (file)
@@ -1,5 +1,3 @@
 module csit.hugo
 
 go 1.17
-
-require github.com/alex-shpak/hugo-book v0.0.0-20230213220505-036e037a63ba // indirect
diff --git a/docs/go.sum b/docs/go.sum
deleted file mode 100644 (file)
index 1ca6523..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-github.com/alex-shpak/hugo-book v0.0.0-20230213220505-036e037a63ba h1:GSDZxN4SjTRVylJjVwr2Mnn1oy/e2ngZG9m1ULJ2qFg=
-github.com/alex-shpak/hugo-book v0.0.0-20230213220505-036e037a63ba/go.mod h1:L4NMyzbn15fpLIpmmtDg9ZFFyTZzw87/lk7M2bMQ7ds=
index bb749bc..052e833 100644 (file)
@@ -68,9 +68,12 @@ function hugo_init_modules () {
         die "Please install Hugo!"
     fi
 
+    hugo_book_url="github.com/alex-shpak/hugo-book"
+    hugo_book_version="v0.0.0-20230424134111-d86d5e70c7c0"
+    hugo_book_link="${hugo_book_url}@${hugo_book_version}"
     pushd "${CSIT_DIR}"/docs || die "Pushd failed!"
     export PATH=$PATH:/usr/local/go/bin
-    hugo mod get -u || die "Failed to run Hugo mod!"
+    hugo mod get "${hugo_book_link}" || die "Failed to run Hugo mod!"
     popd || die "Popd failed!"
 }