Skip to content
Snippets Groups Projects
Commit e2d25d4e authored by Fabian Nuraddin Alexander Gabel's avatar Fabian Nuraddin Alexander Gabel :speech_balloon:
Browse files

fix img path in preprocessor

parent 07862498
No related branches found
No related tags found
No related merge requests found
Pipeline #104080 passed
#!/bin/bash
# generate namelist of collaborators from topic file
original="./topics/topic-template.md"
filename="topic-template.md"
build_dir="./build"
original='./topics/topic-template.md'
filename='topic-template.md'
build_dir='./build'
baseurl='https://www.mat.tuhh.de'
#make output copy
......@@ -13,6 +13,7 @@
#extract title of topic
title="## `head -n 1 $build_dir/$filename | sed -e "s;#\s*;\[;g" -e "s;\(.*\);\1\](${filename%.md}.html);g"`"
# prepare index
# append research topic to index
echo "Creating index.md ..."
......@@ -31,7 +32,6 @@
#sed -i "s;### Working Groups:\(.*\)$wg\(.*\);### Working Groups:\1\[$fullname\]($baseurl/forschung/$wg)\2;g" $build_dir/$filename #uncomment this line for linking the mat.tuhh.de webpage
done
echo "Replacing collaborator keys..."
namelist=`grep -h -i -m 1 -r "###\s*Collaborators (MAT):" $build_dir/$filename | sed -e 's/^###\s*Collaborators (MAT):\s*//I' -e 's/\s*,\s*/\n/g' | sort -u`
echo "Found the following keys: " $namelist
......@@ -59,4 +59,5 @@
done
# adpat img path (prefix a dot)
sed -i "s;\](/img/;\](./img/;g" $build_dir/$filename
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment