Skip to content

Commit 3ec4ccf

Browse files
committed
template.py: remove URL replacement
This is already done by Jekyll, no need to process twice. Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
1 parent b23a464 commit 3ec4ccf

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

template.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,6 @@ def render_file(args, env, state, file):
8181
input = in_stream.read()
8282
template = env.from_string(input)
8383

84-
if (args.__getattribute__("docsite")):
85-
s = StringIO(input)
86-
lines = input.split('\n')
87-
88-
i = 0
89-
for line in s:
90-
lines[i] = line.replace("https://docs.sel4.systems/Tutorials/", "/Tutorials/")
91-
i = i + 1
92-
93-
new_text = ''.join(lines)
94-
template = env.from_string(str(new_text))
95-
9684
out_stream.write(template.render(context.get_context(args, state)))
9785

9886

0 commit comments

Comments
 (0)