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
56298028
Commit
56298028
authored
3 years ago
by
Fabian Nuraddin Alexander Gabel
Browse files
Options
Downloads
Patches
Plain Diff
replace title and filename directives
parent
6ccfc404
No related branches found
Branches containing commit
No related tags found
2 merge requests
!82
Resolve "use ssio directives to produce webpage"
,
!77
Resolve "tuhh-deployment"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/replace_ssi_marker.sh
+3
-0
3 additions, 0 deletions
bin/replace_ssi_marker.sh
static/ssi/topic_template.shtml
+1
-1
1 addition, 1 deletion
static/ssi/topic_template.shtml
with
4 additions
and
1 deletion
bin/replace_ssi_marker.sh
+
3
−
0
View file @
56298028
...
...
@@ -24,8 +24,11 @@ echo -e "Including .html-files from $RESEARCH_TOPICS ..."
# replace "MARKER" in .html files with research topics
for
f
in
$RESEARCH_TOPICS
/
*
.html
do
title
=
`
grep
'<h1'
$f
|
sed
-e
"s;<h1 id=
\"
.*
\"
>
\(
.*
\)
</h1>;
\1
;"
`
filename
=
$(
basename
--
"
$f
"
)
echo
"found
$f
"
sed
-e
"/TOPIC-CONTENT-MARKER/r
$f
"
\
-e
"s/TOPIC-FILE-MARKER/
$filename
/ "
\
-e
"s/TOPIC-TITLE-MARKER/
$title
/ "
\
-e
'/TOPIC-CONTENT-MARKER/d'
$RESEARCH_STATIC
/ssi/topic_template.shtml
>
"
$RESEARCH_BUILD
/
${
filename
%.html
}
"
.html
done
This diff is collapsed.
Click to expand it.
static/ssi/topic_template.shtml
+
1
−
1
View file @
56298028
<!--#set var="GERMAN_PAGE" value="TOPIC-FILE-MARKER" -->
<!--#set var="TITLE" value="TOPIC-
FI
LE-MARKER" -->
<!--#set var="TITLE" value="TOPIC-
TIT
LE-MARKER" -->
<!--#set var="HEAD_TITLE" value="$TITLE" -->
<!--#include virtual="/include/html/header.html" -->
<!--#include virtual="/include/html/brcr_begin.html" -->
...
...
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