readmd.md update3
This commit is contained in:
parent
a048c2f5d7
commit
dd36e32da4
|
@ -129,28 +129,28 @@ PERLSCRIPT
|
||||||
# Process content with the perl script
|
# Process content with the perl script
|
||||||
cat "$temp_file" | perl "$perl_script" > "${temp_file}.new"
|
cat "$temp_file" | perl "$perl_script" > "${temp_file}.new"
|
||||||
content=$(cat "${temp_file}.new")
|
content=$(cat "${temp_file}.new")
|
||||||
|
|
||||||
# Clean up temporary files
|
# Clean up temporary files
|
||||||
rm "$temp_file" "${temp_file}.new" "$perl_script"
|
rm "$temp_file" "${temp_file}.new" "$perl_script"
|
||||||
|
|
||||||
# Now copy all the images referenced in HTML tags
|
# Now copy all the images referenced in HTML tags
|
||||||
for img_src in $(grep -o '<img [^>]*src="[^"]*"' "./$rel_path" | sed -E 's/.*src="([^"]*)".*/\1/'); do
|
for img_src in $(grep -o '<img [^>]*src="[^"]*"' "./$rel_path" | sed -E 's/.*src="([^"]*)".*/\1/'); do
|
||||||
# Skip URLs
|
# Skip URLs
|
||||||
if [[ $img_src == http* ]]; then
|
if [[ $img_src == http* ]]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Determine the absolute path of the image
|
# Determine the absolute path of the image
|
||||||
if [[ $img_src == /* ]]; then
|
if [[ $img_src == /* ]]; then
|
||||||
abs_img_path="./$img_src"
|
abs_img_path="./$img_src"
|
||||||
else
|
else
|
||||||
abs_img_path="$base_dir/$img_src"
|
abs_img_path="$base_dir/$img_src"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Extract just the filename
|
# Extract just the filename
|
||||||
img_filename=$(basename "$img_src")
|
img_filename=$(basename "$img_src")
|
||||||
wiki_img_path="images/$img_filename"
|
wiki_img_path="images/$img_filename"
|
||||||
|
|
||||||
# Copy the image to wiki repository if it exists
|
# Copy the image to wiki repository if it exists
|
||||||
if [ -f "$abs_img_path" ]; then
|
if [ -f "$abs_img_path" ]; then
|
||||||
echo "Copying image: $abs_img_path -> ./wiki/$wiki_img_path"
|
echo "Copying image: $abs_img_path -> ./wiki/$wiki_img_path"
|
||||||
|
|
|
@ -13,7 +13,6 @@ This benchmark compares the performance of phasicFlow with a well-stablished com
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<img src="./images/phasicFlow_snapshot.png" style="width: 400px;" />
|
<img src="./images/phasicFlow_snapshot.png" style="width: 400px;" />
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
Loading…
Reference in New Issue