From bcea7393c636a7f6ddda1bf97b6e9562c7ebc274 Mon Sep 17 00:00:00 2001 From: Catherine Luse Date: Mon, 21 Feb 2022 18:31:58 -0700 Subject: [PATCH] Use the current hostname for baseUrl --- Dockerfile.dev | 2 +- Dockerfile.prod | 2 +- Dockerfile.staging | 2 +- config.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile.dev b/Dockerfile.dev index af34fcf57dc..53225113ca0 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -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" ] diff --git a/Dockerfile.prod b/Dockerfile.prod index 38ba46de614..0a0511d279c 100644 --- a/Dockerfile.prod +++ b/Dockerfile.prod @@ -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 diff --git a/Dockerfile.staging b/Dockerfile.staging index 5dc30768635..ea6ea487cfb 100644 --- a/Dockerfile.staging +++ b/Dockerfile.staging @@ -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 diff --git a/config.toml b/config.toml index 6ea4f5e3a0b..43108bfb452 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,4 @@ -baseURL = "" +baseURL = ".Permalink" languageCode = "en-us" title = "Rancher Labs"