Skip to content

Commit b2e8cc0

Browse files
authored
Merge pull request #153 from aliceinwire/docs_versioning
hugo: Add version changer
2 parents 89688c2 + 9af021f commit b2e8cc0

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/docs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ 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
5556
hugo \
5657
--gc \
5758
--theme PaperMod \
@@ -63,10 +64,12 @@ jobs:
6364
HUGO_ENVIRONMENT: production
6465
TZ: America/Los_Angeles
6566
run: |
67+
git checkout hugo.toml
6668
git fetch --prune --unshallow
6769
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
6870
git fetch --all --tags
6971
git checkout tags/v0.1.4
72+
sed -i 's/{version}/v0.1.4/' hugo.toml
7073
hugo \
7174
--gc \
7275
--theme PaperMod \
@@ -79,10 +82,12 @@ jobs:
7982
HUGO_ENVIRONMENT: production
8083
TZ: America/Los_Angeles
8184
run: |
85+
git checkout hugo.toml
8286
git fetch --prune --unshallow
8387
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
8488
git fetch --all --tags
8589
git checkout tags/v0.1.3
90+
sed -i 's/{version}/v0.1.3/' hugo.toml
8691
hugo \
8792
--gc \
8893
--theme PaperMod \

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/'
1+
baseURL = 'https://kci.dev/{version}'
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)