Skip to content

Commit edcebe8

Browse files
authored
Merge pull request #155 from aliceinwire/docs_versioning
hugo: Use command line argument instead of site configuration
2 parents 84cb8ad + 772a985 commit edcebe8

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/docs.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ jobs:
5252
git clone --recursive --depth 1 --branch master https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
5353
git clone --depth 1 --branch 6.7.0 https://github.com/FortAwesome/Font-Awesome.git themes/github.com/FortAwesome/Font-Awesome
5454
git clone --depth 1 --branch v5.3.3 https://github.com/twbs/bootstrap.git themes/github.com/twbs/bootstrap
55-
sed -i 's/{version}//' hugo.toml
5655
hugo \
5756
--gc \
5857
--theme PaperMod \
@@ -64,33 +63,31 @@ jobs:
6463
HUGO_ENVIRONMENT: production
6564
TZ: America/Los_Angeles
6665
run: |
67-
git checkout hugo.toml
6866
git fetch --prune --unshallow
6967
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
7068
git fetch --all --tags
7169
git checkout tags/v0.1.4
72-
sed -i 's/{version}/v0.1.4\//' hugo.toml
7370
hugo \
7471
--gc \
7572
--theme PaperMod \
7673
--minify \
74+
--baseURL "${{ steps.pages.outputs.base_url }}/v0.1.4/" \
7775
--destination ./public/v0.1.4
7876
- name: Build with Hugo v0.1.3
7977
env:
8078
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
8179
HUGO_ENVIRONMENT: production
8280
TZ: America/Los_Angeles
8381
run: |
84-
git checkout hugo.toml
8582
git fetch --prune --unshallow
8683
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
8784
git fetch --all --tags
8885
git checkout tags/v0.1.3
89-
sed -i 's/{version}/v0.1.3\//' hugo.toml
9086
hugo \
9187
--gc \
9288
--theme PaperMod \
9389
--minify \
90+
--baseURL "${{ steps.pages.outputs.base_url }}/v0.1.3/" \
9491
--destination ./public/v0.1.3
9592
- name: Build with Hugo version
9693
env:

hugo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
baseURL = 'https://kci.dev/{version}'
1+
baseURL = 'https://kci.dev/'
22
languageCode = 'en-us'
33
title = 'kci-dev'
44
description = 'Stand alone tool for Linux Kernel developers and maintainers to interact with KernelCI'

0 commit comments

Comments
 (0)