File tree Expand file tree Collapse file tree 7 files changed +40
-70
lines changed Expand file tree Collapse file tree 7 files changed +40
-70
lines changed Original file line number Diff line number Diff line change @@ -31,31 +31,26 @@ printf "%s\n" "${directories[@]}"
31
31
32
32
# Example of processing each directory
33
33
for dir in " ${directories[@]} " ; do
34
- echo " hi2.0"
35
- echo $dir
36
- if [ -d " $dir " ]; then
37
- echo " hi2"
38
- version=${dir%/ } # Strip trailing slash to get the version name
39
-
40
- echo " Processing version $version ..."
41
-
42
- # Change to the version directory
43
- # cd "$version"
44
-
45
- echo " pwd:" $( pwd)
46
- echo " smoo.sh is:" " $versions_dir /$version /smoo.sh"
47
-
48
- # Check if smoo.sh exists and is executable
49
- if [[ -x " $versions_dir /$version /smoo.sh" ]]; then
50
- # Execute smoo.sh with the version as a parameter
51
- $versions_dir /$version /smoo.sh " $version "
52
- else
53
- echo " Error: smoo.sh is not executable or found"
54
- fi
55
-
56
- # Go back to the version directory
57
- # cd ..
34
+ version=${dir%/ } # Strip trailing slash to get the version name
35
+
36
+ echo " Processing version $version ..."
37
+
38
+ # Change to the version directory
39
+ # cd "$version"
40
+
41
+ echo " pwd:" $( pwd)
42
+ echo " smoo.sh is:" " $versions_dir /$version /smoo.sh"
43
+
44
+ # Check if smoo.sh exists and is executable
45
+ if [[ -x " $versions_dir /$version /smoo.sh" ]]; then
46
+ # Execute smoo.sh with the version as a parameter
47
+ $versions_dir /$version /smoo.sh " $version "
48
+ else
49
+ echo " Error: smoo.sh is not executable or found"
58
50
fi
51
+
52
+ # Go back to the version directory
53
+ # cd ..
59
54
done
60
55
61
56
# Return to the original directory
Original file line number Diff line number Diff line change @@ -17,10 +17,6 @@ sourceDir="$saved_version_dir/source"
17
17
templateHTML=" $sourceDir /_template.html"
18
18
outputDir=" public/v/$version "
19
19
20
- if [ " $version " != " main" ]; then
21
- outputDir=" ../../$outputDir "
22
- fi
23
-
24
20
assetDir=" $sourceDir /static"
25
21
pagesDir=" $sourceDir /pages"
26
22
ecsDir=" $sourceDir /ecs"
Original file line number Diff line number Diff line change @@ -31,31 +31,26 @@ printf "%s\n" "${directories[@]}"
31
31
32
32
# Example of processing each directory
33
33
for dir in " ${directories[@]} " ; do
34
- echo " hi2.0"
35
- echo $dir
36
- if [ -d " $dir " ]; then
37
- echo " hi2"
38
- version=${dir%/ } # Strip trailing slash to get the version name
39
-
40
- echo " Processing version $version ..."
41
-
42
- # Change to the version directory
43
- # cd "$version"
44
-
45
- echo " pwd:" $( pwd)
46
- echo " smoo.sh is:" " $versions_dir /$version /smoo.sh"
47
-
48
- # Check if smoo.sh exists and is executable
49
- if [[ -x " $versions_dir /$version /smoo.sh" ]]; then
50
- # Execute smoo.sh with the version as a parameter
51
- $versions_dir /$version /smoo.sh " $version "
52
- else
53
- echo " Error: smoo.sh is not executable or found"
54
- fi
55
-
56
- # Go back to the version directory
57
- # cd ..
34
+ version=${dir%/ } # Strip trailing slash to get the version name
35
+
36
+ echo " Processing version $version ..."
37
+
38
+ # Change to the version directory
39
+ # cd "$version"
40
+
41
+ echo " pwd:" $( pwd)
42
+ echo " smoo.sh is:" " $versions_dir /$version /smoo.sh"
43
+
44
+ # Check if smoo.sh exists and is executable
45
+ if [[ -x " $versions_dir /$version /smoo.sh" ]]; then
46
+ # Execute smoo.sh with the version as a parameter
47
+ $versions_dir /$version /smoo.sh " $version "
48
+ else
49
+ echo " Error: smoo.sh is not executable or found"
58
50
fi
51
+
52
+ # Go back to the version directory
53
+ # cd ..
59
54
done
60
55
61
56
# Return to the original directory
Original file line number Diff line number Diff line change @@ -17,10 +17,6 @@ sourceDir="$saved_version_dir/source"
17
17
templateHTML=" $sourceDir /_template.html"
18
18
outputDir=" public/v/$version "
19
19
20
- if [ " $version " != " main" ]; then
21
- outputDir=" ../../$outputDir "
22
- fi
23
-
24
20
assetDir=" $sourceDir /static"
25
21
pagesDir=" $sourceDir /pages"
26
22
ecsDir=" $sourceDir /ecs"
Original file line number Diff line number Diff line change @@ -17,10 +17,6 @@ sourceDir="$saved_version_dir/source"
17
17
templateHTML=" $sourceDir /_template.html"
18
18
outputDir=" public/v/$version "
19
19
20
- if [ " $version " != " main" ]; then
21
- outputDir=" ../../$outputDir "
22
- fi
23
-
24
20
assetDir=" $sourceDir /static"
25
21
pagesDir=" $sourceDir /pages"
26
22
docsDir=" $sourceDir /docs"
@@ -187,7 +183,7 @@ process_markdown "$jsAPIUtilsDir" "js-api-utils" "js-api-utils"
187
183
188
184
# --metadata base-url="$base_url" \
189
185
# --metadata github-path="https://github.com/Volumetrics-io/mrjs/edit/main/README.md" \
190
- pandoc " ${templateDir } /index.md" \
186
+ pandoc " ${sourceDir } /index.md" \
191
187
--template $templateHTML \
192
188
--metadata current-year=" $current_year " \
193
189
--metadata site-name=" $site_name " \
Original file line number Diff line number Diff line change @@ -17,10 +17,6 @@ sourceDir="$saved_version_dir/source"
17
17
templateHTML=" $sourceDir /_template.html"
18
18
outputDir=" public/v/$version "
19
19
20
- if [ " $version " != " main" ]; then
21
- outputDir=" ../../$outputDir "
22
- fi
23
-
24
20
assetDir=" $sourceDir /static"
25
21
pagesDir=" $sourceDir /pages"
26
22
docsDir=" $sourceDir /docs"
@@ -187,7 +183,7 @@ process_markdown "$jsAPIUtilsDir" "js-api-utils" "js-api-utils"
187
183
188
184
# --metadata base-url="$base_url" \
189
185
# --metadata github-path="https://github.com/Volumetrics-io/mrjs/edit/main/README.md" \
190
- pandoc " ${templateDir } /index.md" \
186
+ pandoc " ${sourceDir } /index.md" \
191
187
--template $templateHTML \
192
188
--metadata current-year=" $current_year " \
193
189
--metadata site-name=" $site_name " \
Original file line number Diff line number Diff line change @@ -17,10 +17,6 @@ sourceDir="$saved_version_dir/source"
17
17
templateHTML=" $sourceDir /_template.html"
18
18
outputDir=" public/v/$version "
19
19
20
- if [ " $version " != " main" ]; then
21
- outputDir=" ../../$outputDir "
22
- fi
23
-
24
20
assetDir=" $sourceDir /static"
25
21
pagesDir=" $sourceDir /pages"
26
22
ecsDir=" $sourceDir /ecs"
You can’t perform that action at this time.
0 commit comments