Skip to content

Commit

Permalink
update proper
Browse files Browse the repository at this point in the history
Signed-off-by: hanbollar <[email protected]>
  • Loading branch information
hanbollar committed May 21, 2024
1 parent fd03db1 commit dd08ae0
Show file tree
Hide file tree
Showing 137 changed files with 58 additions and 505 deletions.
34 changes: 17 additions & 17 deletions all-versions-smoo.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
#!/bin/bash

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

# copy what is in the most recent version number to /latest/
rm -rf "v/latest"
cp -r "v/$LATESTV" "v/latest"
latest_v="v0.6.4"

# copy what is in the main source to /main/
rm -rf "$versions_dir/main"
cp -r "./source" "$versions_dir/main"

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

# Set the base directory for versions
version_dir="v"

# Navigate to the version directory
cd "$version_dir"
cd "$versions_dir"

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

echo "Processing version $version..."

# Change to the version directory
cd "$version"

echo "pwd:" $(pwd)

# Check if smoo.sh exists and is executable
if [[ -x "../../smoo.sh" ]]; then
# Execute smoo.sh with the version as a parameter
../../smoo.sh "$version"
else
echo "Error: smoo.sh is not executable or found"
fi
# if [[ -x "../../smoo.sh" ]]; then
# # Execute smoo.sh with the version as a parameter
# ../../smoo.sh "$version"
# else
# echo "Error: smoo.sh is not executable or found"
# fi

# Go back to the version directory
cd ..
Expand Down
4 changes: 2 additions & 2 deletions smoo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ OLDIFS="$IFS"
IFS=$'\n'

if [ "$LOCAL" = "true" ]; then
base_url="http://localhost:8000/v/main"
base_url="http://localhost:8000/v/$version"
else
base_url="https://docs.mrjs.io/v/main"
base_url="https://docs.mrjs.io/v/$version"
fi
github_base='https://github.com/Volumetrics-io/documentation/edit/main/source'
site_name='MRjs'
Expand Down
7 changes: 0 additions & 7 deletions v-saved/all-saved/main/.gitignore

This file was deleted.

41 changes: 0 additions & 41 deletions v-saved/all-saved/main/.markdownlint.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions v-saved/all-saved/main/README.md

This file was deleted.

File renamed without changes.
59 changes: 0 additions & 59 deletions v-saved/all-saved/main/action-build.sh

This file was deleted.

46 changes: 0 additions & 46 deletions v-saved/all-saved/main/all-versions-smoo.sh

This file was deleted.

14 changes: 0 additions & 14 deletions v-saved/all-saved/main/anchorlinks.lua

This file was deleted.

16 changes: 0 additions & 16 deletions v-saved/all-saved/main/colgroups.lua

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit dd08ae0

Please sign in to comment.