Skip to content

Commit 1c725f9

Browse files
authored
Merge pull request #668 from Mara3l/master
ci: Move docs to /latest + hugo mod update
2 parents b6af313 + 441389e commit 1c725f9

File tree

132 files changed

+7
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+7
-4
lines changed

docs/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.20
44

55
require (
66
github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2 // indirect
7-
github.com/gooddata/gooddata-docs-theme v0.0.0-20240221133123-7948ffa74656 // indirect
7+
github.com/gooddata/gooddata-docs-theme v0.0.0-20240424130537-0544713a5cd2 // indirect
88
github.com/google/docsy v0.7.1 // indirect
99
github.com/google/docsy/dependencies v0.7.1 // indirect
1010
github.com/twbs/bootstrap v5.3.1+incompatible // indirect

docs/go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ github.com/gooddata/gooddata-docs-theme v0.0.0-20231219150347-8d8030a5822b h1:a9
1616
github.com/gooddata/gooddata-docs-theme v0.0.0-20231219150347-8d8030a5822b/go.mod h1:VVNP6Cmo+vC37RD3T/YHjyU/QdqftGY5z4G513LYyrA=
1717
github.com/gooddata/gooddata-docs-theme v0.0.0-20240221133123-7948ffa74656 h1:XGV0Yf/AzWZqIviGi6+Vb4NW9q35oupOlqqaezY1mzo=
1818
github.com/gooddata/gooddata-docs-theme v0.0.0-20240221133123-7948ffa74656/go.mod h1:VVNP6Cmo+vC37RD3T/YHjyU/QdqftGY5z4G513LYyrA=
19+
github.com/gooddata/gooddata-docs-theme v0.0.0-20240424130537-0544713a5cd2 h1:tHGj2dUeXBCVwlmn1co/YAfUw3RwQ8g6xRubVwNis6o=
20+
github.com/gooddata/gooddata-docs-theme v0.0.0-20240424130537-0544713a5cd2/go.mod h1:VVNP6Cmo+vC37RD3T/YHjyU/QdqftGY5z4G513LYyrA=
1921
github.com/google/docsy v0.7.1 h1:DUriA7Nr3lJjNi9Ulev1SfiG1sUYmvyDeU4nTp7uDxY=
2022
github.com/google/docsy v0.7.1/go.mod h1:JCmE+c+izhE0Rvzv3y+AzHhz1KdwlA9Oj5YBMklJcfc=
2123
github.com/google/docsy/dependencies v0.7.1 h1:NbzYKJYMin2q50xdWSUzR2c9gCp7zR/XHDBcxklEcTQ=

scripts/generate.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ content_dir=versioned_docs
88
remote_name=${1:-origin}
99
# target branch where changes will be applied (master, rel/0.7, ...)
1010
target_branch=${2:-master}
11-
# Number of the versions to persist. Older ones are accesible only from GitHub.
11+
# Number of the versions to persist. Older ones are accessible only from GitHub.
1212
num_versions=${3:-4}
1313

1414
echo "Validating target branch '$target_branch'"
@@ -106,6 +106,9 @@ for branch in "${branches_to_process[@]}" ; do
106106
fi
107107
done
108108

109+
# Master has to be erased first, as it is in '/latest' and we want to move the latest version there.
110+
echo "master docs will not be published, removing"
111+
rm -rf "${content_dir}/latest"
109112

110113
## Moving the highest version to latest
111114
highest_version=$(ls -v1 ./versioned_docs/ | grep -E '^[0-9]+.[0-9]+$' | sort -V | tail -n 1)
@@ -117,6 +120,4 @@ sed "s|${highest_version}|latest|g" ./versioned_docs/latest/links.json > temp.js
117120

118121
mv temp.json ./versioned_docs/latest/links.json
119122

120-
echo "master docs will not be published, removing"
121-
rm -rf "${content_dir}/docs"
122123
popd

0 commit comments

Comments
 (0)