Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
research-topics-mat-tuhh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fabian Nuraddin Alexander Gabel
research-topics-mat-tuhh
Commits
e2d25d4e
Commit
e2d25d4e
authored
3 years ago
by
Fabian Nuraddin Alexander Gabel
Browse files
Options
Downloads
Patches
Plain Diff
fix img path in preprocessor
parent
07862498
No related branches found
No related tags found
No related merge requests found
Pipeline
#104080
passed
3 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
preprocMd.sh
+6
-5
6 additions, 5 deletions
preprocMd.sh
with
6 additions
and
5 deletions
preprocMd.sh
+
6
−
5
View file @
e2d25d4e
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment