Use the current hostname for baseUrl

This commit is contained in:
Catherine Luse
2022-02-22 18:42:12 -07:00
parent b8969899eb
commit bcea7393c6
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -10,4 +10,4 @@ RUN mkdir -p /output /theme/rancher-website-theme && tar -xzf /run/master.tar.gz
# Expose default hugo port
EXPOSE 9001
ENTRYPOINT ["hugo", "serve", "--bind=0.0.0.0", "--buildDrafts", "--buildFuture", "--baseURL=" ]
ENTRYPOINT ["hugo", "serve", "--bind=0.0.0.0", "--buildDrafts", "--buildFuture" ]
+1 -1
View File
@@ -16,7 +16,7 @@ COPY .git .git
ADD https://github.com/rancherlabs/website-theme/archive/master.tar.gz /run/master.tar.gz
RUN mkdir -p /output /theme/rancher-website-theme && tar -xzf /run/master.tar.gz -C /run/node_modules/rancher-website-theme --strip=1 && rm /run/master.tar.gz
RUN ["hugo", "--buildFuture", "--baseURL=https://rancher.com/docs", "--destination=/output"]
RUN ["hugo", "--buildFuture", "--destination=/output"]
# Make sure something got built
RUN stat /output/index.html
+1 -1
View File
@@ -16,7 +16,7 @@ COPY .git .git
ADD https://github.com/rancherlabs/website-theme/archive/master.tar.gz /run/master.tar.gz
RUN mkdir -p /output /theme/rancher-website-theme && tar -xzf /run/master.tar.gz -C /run/node_modules/rancher-website-theme --strip=1 && rm /run/master.tar.gz
RUN ["hugo", "--buildDrafts", "--buildFuture", "--baseURL=https://staging.rancher.com/docs", "--destination=/output"]
RUN ["hugo", "--buildDrafts", "--buildFuture", "--destination=/output"]
# Make sure something got built
RUN stat /output/index.html
+1 -1
View File
@@ -1,4 +1,4 @@
baseURL = ""
baseURL = ".Permalink"
languageCode = "en-us"
title = "Rancher Labs"