Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
Signed-off-by: hanbollar <github@hannahbollar.com>
  • Loading branch information
hanbollar committed May 22, 2024
1 parent dcab1ce commit d55c11a
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 70 deletions.
43 changes: 19 additions & 24 deletions all-versions-smoo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,26 @@ printf "%s\n" "${directories[@]}"

# Example of processing each directory
for dir in "${directories[@]}"; do
echo "hi2.0"
echo $dir
if [ -d "$dir" ]; then
echo "hi2"
version=${dir%/} # Strip trailing slash to get the version name

echo "Processing version $version..."

# Change to the version directory
# cd "$version"

echo "pwd:" $(pwd)
echo "smoo.sh is:" "$versions_dir/$version/smoo.sh"

# 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"
else
echo "Error: smoo.sh is not executable or found"
fi

# Go back to the version directory
# cd ..
version=${dir%/} # Strip trailing slash to get the version name

echo "Processing version $version..."

# Change to the version directory
# cd "$version"

echo "pwd:" $(pwd)
echo "smoo.sh is:" "$versions_dir/$version/smoo.sh"

# 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"
else
echo "Error: smoo.sh is not executable or found"
fi

# Go back to the version directory
# cd ..
done

# Return to the original directory
Expand Down
4 changes: 0 additions & 4 deletions smoo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ sourceDir="$saved_version_dir/source"
templateHTML="$sourceDir/_template.html"
outputDir="public/v/$version"

if [ "$version" != "main" ]; then
outputDir="../../$outputDir"
fi

assetDir="$sourceDir/static"
pagesDir="$sourceDir/pages"
ecsDir="$sourceDir/ecs"
Expand Down
43 changes: 19 additions & 24 deletions v-saved/all-saved/main/all-versions-smoo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,26 @@ printf "%s\n" "${directories[@]}"

# Example of processing each directory
for dir in "${directories[@]}"; do
echo "hi2.0"
echo $dir
if [ -d "$dir" ]; then
echo "hi2"
version=${dir%/} # Strip trailing slash to get the version name

echo "Processing version $version..."

# Change to the version directory
# cd "$version"

echo "pwd:" $(pwd)
echo "smoo.sh is:" "$versions_dir/$version/smoo.sh"

# 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"
else
echo "Error: smoo.sh is not executable or found"
fi

# Go back to the version directory
# cd ..
version=${dir%/} # Strip trailing slash to get the version name

echo "Processing version $version..."

# Change to the version directory
# cd "$version"

echo "pwd:" $(pwd)
echo "smoo.sh is:" "$versions_dir/$version/smoo.sh"

# 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"
else
echo "Error: smoo.sh is not executable or found"
fi

# Go back to the version directory
# cd ..
done

# Return to the original directory
Expand Down
4 changes: 0 additions & 4 deletions v-saved/all-saved/main/smoo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ sourceDir="$saved_version_dir/source"
templateHTML="$sourceDir/_template.html"
outputDir="public/v/$version"

if [ "$version" != "main" ]; then
outputDir="../../$outputDir"
fi

assetDir="$sourceDir/static"
pagesDir="$sourceDir/pages"
ecsDir="$sourceDir/ecs"
Expand Down
6 changes: 1 addition & 5 deletions v-saved/all-saved/v0.6.2/smoo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ sourceDir="$saved_version_dir/source"
templateHTML="$sourceDir/_template.html"
outputDir="public/v/$version"

if [ "$version" != "main" ]; then
outputDir="../../$outputDir"
fi

assetDir="$sourceDir/static"
pagesDir="$sourceDir/pages"
docsDir="$sourceDir/docs"
Expand Down Expand Up @@ -187,7 +183,7 @@ process_markdown "$jsAPIUtilsDir" "js-api-utils" "js-api-utils"

# --metadata base-url="$base_url" \
# --metadata github-path="https://github.com/Volumetrics-io/mrjs/edit/main/README.md" \
pandoc "${templateDir}/index.md" \
pandoc "${sourceDir}/index.md" \
--template $templateHTML \
--metadata current-year="$current_year" \
--metadata site-name="$site_name" \
Expand Down
6 changes: 1 addition & 5 deletions v-saved/all-saved/v0.6.3/smoo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ sourceDir="$saved_version_dir/source"
templateHTML="$sourceDir/_template.html"
outputDir="public/v/$version"

if [ "$version" != "main" ]; then
outputDir="../../$outputDir"
fi

assetDir="$sourceDir/static"
pagesDir="$sourceDir/pages"
docsDir="$sourceDir/docs"
Expand Down Expand Up @@ -187,7 +183,7 @@ process_markdown "$jsAPIUtilsDir" "js-api-utils" "js-api-utils"

# --metadata base-url="$base_url" \
# --metadata github-path="https://github.com/Volumetrics-io/mrjs/edit/main/README.md" \
pandoc "${templateDir}/index.md" \
pandoc "${sourceDir}/index.md" \
--template $templateHTML \
--metadata current-year="$current_year" \
--metadata site-name="$site_name" \
Expand Down
4 changes: 0 additions & 4 deletions v-saved/all-saved/v0.6.4/smoo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ sourceDir="$saved_version_dir/source"
templateHTML="$sourceDir/_template.html"
outputDir="public/v/$version"

if [ "$version" != "main" ]; then
outputDir="../../$outputDir"
fi

assetDir="$sourceDir/static"
pagesDir="$sourceDir/pages"
ecsDir="$sourceDir/ecs"
Expand Down

0 comments on commit d55c11a

Please sign in to comment.