Skip to content

Commit 83f3b50

Browse files
authored
chore(docs): rename exampleSite to docs and create examples (#813)
* chore(docs): rename `exampleSite` to `docs` and create `examples` * chore(build): update build script to support new version format and source directories; add v0.10 to documentation menu
1 parent f8eae96 commit 83f3b50

File tree

156 files changed

+62
-43
lines changed

Some content is hidden

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

156 files changed

+62
-43
lines changed

.github/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions

CLAUDE.md

Lines changed: 5 additions & 5 deletions

build.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ BASE_URL=${1:-"http://localhost:1313"}
77
echo "Using base URL: $BASE_URL"
88

99
# Version configuration - modify these arrays to specify versions to build
10-
# Format: "ref:display_name" (ref can be tag, branch, or commit hash, display name is what will appear in URL)
10+
# MAIN_VERSION format: "ref:display_name"
11+
# VERSIONS format: "ref:display_name:source_dir" where source_dir is either "docs" or "exampleSite"
1112
MAIN_VERSION="v0.11.0:latest"
1213
VERSIONS=(
13-
"main:latest" # latest version always builds from main
14-
"v0.9.6:v0.9"
15-
"v0.8.6:v0.8"
14+
"main:latest:docs" # latest version always builds from main
15+
"v0.10.2:v0.10:docs"
16+
"v0.9.6:v0.9:exampleSite"
1617
)
1718

1819
# Parse main version
@@ -29,13 +30,13 @@ GIT_HASH=$(git rev-parse --short HEAD)
2930
echo "Building main site from $MAIN_REF (commit: $GIT_HASH)"
3031
hugo \
3132
--minify \
32-
--themesDir=../.. --source=exampleSite \
33+
--themesDir=../.. --source=docs \
3334
--baseURL "$BASE_URL/" \
3435
--destination=../public
3536

3637
# Build all versions
3738
for VERSION in "${VERSIONS[@]}"; do
38-
IFS=':' read -r REF NAME <<< "$VERSION"
39+
IFS=':' read -r REF NAME DIR <<< "$VERSION"
3940

4041
git checkout $REF
4142
GIT_HASH=$(git rev-parse --short HEAD)
@@ -44,7 +45,7 @@ for VERSION in "${VERSIONS[@]}"; do
4445
mkdir -p "public/versions/$NAME"
4546
hugo \
4647
--minify \
47-
--themesDir=../.. --source=exampleSite \
48+
--themesDir=../.. --source=$DIR \
4849
--baseURL "$BASE_URL/versions/$NAME/" \
4950
--destination="../public/versions/$NAME"
5051
done

dev.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Theme development config for exampleSite
1+
# Theme development config for documentation site
22
# https://gohugo.io/configuration/build/#cache-busters
33
[build]
44
[build.buildStats]
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)