Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: hanbollar <[email protected]>
  • Loading branch information
hanbollar committed May 22, 2024
1 parent d55c11a commit 1d248c4
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 4 deletions.
2 changes: 1 addition & 1 deletion all-versions-smoo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ for dir in "${directories[@]}"; do
# Check if smoo.sh exists and is executable
if [[ -x "$versions_dir/$version/smoo.sh" ]]; then
# Execute smoo.sh with the version as a parameter
$versions_dir/$version/smoo.sh "$version"
$versions_dir/$version/smoo.sh
else
echo "Error: smoo.sh is not executable or found"
fi
Expand Down
13 changes: 12 additions & 1 deletion smoo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

version="main"

echo ""
echo ""
echo "SETUP MAIN ACTION for : $version"
echo ""
echo ""

OLDIFS="$IFS"
IFS=$'\n'

Expand All @@ -12,11 +18,16 @@ else
fi
github_base='https://github.com/Volumetrics-io/documentation/edit/main/source'
site_name='MRjs'

saved_version_dir="v-saved/all-saved/$version"
sourceDir="$saved_version_dir/source"
templateHTML="$sourceDir/_template.html"
outputDir="public/v/$version"

echo "saved_version_dir:" $saved_version_dir
echo "sourceDir:" $sourceDir
echo "outputDir:" $outputDir

assetDir="$sourceDir/static"
pagesDir="$sourceDir/pages"
ecsDir="$sourceDir/ecs"
Expand Down Expand Up @@ -44,7 +55,7 @@ current_year=$(date +"%Y")

echo ""
echo ""
echo "RUNNING MAIN ACTION"
echo "RUNNING MAIN ACTION for : $version"
echo ""
echo ""

Expand Down
2 changes: 1 addition & 1 deletion v-saved/all-saved/main/all-versions-smoo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ for dir in "${directories[@]}"; do
# Check if smoo.sh exists and is executable
if [[ -x "$versions_dir/$version/smoo.sh" ]]; then
# Execute smoo.sh with the version as a parameter
$versions_dir/$version/smoo.sh "$version"
$versions_dir/$version/smoo.sh
else
echo "Error: smoo.sh is not executable or found"
fi
Expand Down
13 changes: 12 additions & 1 deletion v-saved/all-saved/main/smoo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

version="main"

echo ""
echo ""
echo "SETUP MAIN ACTION for : $version"
echo ""
echo ""

OLDIFS="$IFS"
IFS=$'\n'

Expand All @@ -12,11 +18,16 @@ else
fi
github_base='https://github.com/Volumetrics-io/documentation/edit/main/source'
site_name='MRjs'

saved_version_dir="v-saved/all-saved/$version"
sourceDir="$saved_version_dir/source"
templateHTML="$sourceDir/_template.html"
outputDir="public/v/$version"

echo "saved_version_dir:" $saved_version_dir
echo "sourceDir:" $sourceDir
echo "outputDir:" $outputDir

assetDir="$sourceDir/static"
pagesDir="$sourceDir/pages"
ecsDir="$sourceDir/ecs"
Expand Down Expand Up @@ -44,7 +55,7 @@ current_year=$(date +"%Y")

echo ""
echo ""
echo "RUNNING MAIN ACTION"
echo "RUNNING MAIN ACTION for : $version"
echo ""
echo ""

Expand Down
13 changes: 13 additions & 0 deletions v-saved/all-saved/v0.6.2/smoo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

version="v0.6.2"

echo ""
echo ""
echo "SETUP MAIN ACTION for : $version"
echo ""
echo ""

OLDIFS="$IFS"
IFS=$'\n'

Expand All @@ -16,6 +22,7 @@ saved_version_dir="v-saved/all-saved/$version"
sourceDir="$saved_version_dir/source"
templateHTML="$sourceDir/_template.html"
outputDir="public/v/$version"
echo "outputDir:" $outputDir

assetDir="$sourceDir/static"
pagesDir="$sourceDir/pages"
Expand All @@ -28,6 +35,12 @@ jsAPIUtilsDir="$sourceDir/js-api-utils"

current_year=$(date +"%Y")

echo ""
echo ""
echo "RUNNING MAIN ACTION for : $version"
echo ""
echo ""

#run main action
mkdir -p "$outputDir"
rm -rf "${outputDir}"/*
Expand Down
13 changes: 13 additions & 0 deletions v-saved/all-saved/v0.6.3/smoo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

version="v0.6.3"

echo ""
echo ""
echo "SETUP MAIN ACTION for : $version"
echo ""
echo ""

OLDIFS="$IFS"
IFS=$'\n'

Expand All @@ -16,6 +22,7 @@ saved_version_dir="v-saved/all-saved/$version"
sourceDir="$saved_version_dir/source"
templateHTML="$sourceDir/_template.html"
outputDir="public/v/$version"
echo "outputDir:" $outputDir

assetDir="$sourceDir/static"
pagesDir="$sourceDir/pages"
Expand All @@ -28,6 +35,12 @@ jsAPIUtilsDir="$sourceDir/js-api-utils"

current_year=$(date +"%Y")

echo ""
echo ""
echo "RUNNING MAIN ACTION for : $version"
echo ""
echo ""

#run main action
mkdir -p "$outputDir"
rm -rf "${outputDir}"/*
Expand Down
15 changes: 15 additions & 0 deletions v-saved/all-saved/v0.6.4/smoo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@

version="v0.6.4"

echo ""
echo ""
echo "SETUP MAIN ACTION for : $version"
echo ""
echo ""

OLDIFS="$IFS"
IFS=$'\n'

if [ "$LOCAL" = "true" ]; then
echo "LOCAL IS TRUE"
base_url="http://localhost:8000/v/$version"
else
echo "LOCAL IS NOT TRUE"
base_url="https://docs.mrjs.io/v/$version"
fi
github_base='https://github.com/Volumetrics-io/documentation/edit/main/source'
Expand All @@ -16,6 +24,7 @@ saved_version_dir="v-saved/all-saved/$version"
sourceDir="$saved_version_dir/source"
templateHTML="$sourceDir/_template.html"
outputDir="public/v/$version"
echo "outputDir:" $outputDir

assetDir="$sourceDir/static"
pagesDir="$sourceDir/pages"
Expand All @@ -29,6 +38,12 @@ jsAPIUtilsDir="$sourceDir/js-api-utils"

current_year=$(date +"%Y")

echo ""
echo ""
echo "RUNNING MAIN ACTION for : $version"
echo ""
echo ""

#run main action
mkdir -p "$outputDir"
rm -rf "${outputDir}"/*
Expand Down

0 comments on commit 1d248c4

Please sign in to comment.