Skip to content

Commit dd08ae0

Browse files
committed
update proper
Signed-off-by: hanbollar <[email protected]>
1 parent fd03db1 commit dd08ae0

File tree

137 files changed

+58
-505
lines changed

Some content is hidden

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

137 files changed

+58
-505
lines changed

all-versions-smoo.sh

100644100755
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
#!/bin/bash
22

3-
# copy what is in the main source to /main/
4-
rm -rf "v/main"
5-
cp -r "source" "v/main"
3+
# Set the base directory for versions
4+
versions_dir="./v-saved/all-saved"
65

7-
# copy what is in the most recent version number to /latest/
8-
rm -rf "v/latest"
9-
cp -r "v/$LATESTV" "v/latest"
6+
latest_v="v0.6.4"
7+
8+
# copy what is in the main source to /main/
9+
rm -rf "$versions_dir/main"
10+
cp -r "./source" "$versions_dir/main"
1011

1112
# setup to run all of `smoo.sh`es for each sub-directory:
1213
# -- for each folder in v, run smoo.sh and pass in the proper
1314
# versioning info 'vX.Y.Z' s.t. they go to the right public
1415
# folder
1516

16-
# Set the base directory for versions
17-
version_dir="v"
18-
1917
# Navigate to the version directory
20-
cd "$version_dir"
18+
cd "$versions_dir"
2119

2220
# Loop through each version subdirectory and execute smoo.sh
2321
for dir in */ ; do
24-
if [[ -d "$dir" && "$dir" != "main/" && "$dir" != "latest/" ]]; then
22+
if [[ -d "$dir" ]]; then
2523
version=${dir%/} # Strip trailing slash to get the version name
2624

2725
echo "Processing version $version..."
2826

2927
# Change to the version directory
3028
cd "$version"
3129

30+
echo "pwd:" $(pwd)
31+
3232
# Check if smoo.sh exists and is executable
33-
if [[ -x "../../smoo.sh" ]]; then
34-
# Execute smoo.sh with the version as a parameter
35-
../../smoo.sh "$version"
36-
else
37-
echo "Error: smoo.sh is not executable or found"
38-
fi
33+
# if [[ -x "../../smoo.sh" ]]; then
34+
# # Execute smoo.sh with the version as a parameter
35+
# ../../smoo.sh "$version"
36+
# else
37+
# echo "Error: smoo.sh is not executable or found"
38+
# fi
3939

4040
# Go back to the version directory
4141
cd ..

smoo.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ OLDIFS="$IFS"
66
IFS=$'\n'
77

88
if [ "$LOCAL" = "true" ]; then
9-
base_url="http://localhost:8000/v/main"
9+
base_url="http://localhost:8000/v/$version"
1010
else
11-
base_url="https://docs.mrjs.io/v/main"
11+
base_url="https://docs.mrjs.io/v/$version"
1212
fi
1313
github_base='https://github.com/Volumetrics-io/documentation/edit/main/source'
1414
site_name='MRjs'

v-saved/all-saved/main/.gitignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

v-saved/all-saved/main/.markdownlint.yaml

Lines changed: 0 additions & 41 deletions
This file was deleted.

v-saved/all-saved/main/README.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

v-saved/all-saved/main/action-build.sh

Lines changed: 0 additions & 59 deletions
This file was deleted.

v-saved/all-saved/main/all-versions-smoo.sh

Lines changed: 0 additions & 46 deletions
This file was deleted.

v-saved/all-saved/main/anchorlinks.lua

Lines changed: 0 additions & 14 deletions
This file was deleted.

v-saved/all-saved/main/colgroups.lua

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)