Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
2a70def8
Commit
2a70def8
authored
Apr 03, 2020
by
Martin Utz
Committed by
Timo Koch
Apr 03, 2020
Browse files
[examples] Fix generate_example_docs.py to avoid trailing whitespaces
parent
140a7b7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/1ptracer/README.md
View file @
2a70def8
...
...
@@ -120,13 +120,13 @@ simulations are solved sequentially in the main file (`main.cc`).
|
[
:arrow_right: Click to continue with part 1 of the documentation
](
doc/1pmodel.md
)
|
|---:|
## Part 2: Tracer transport simulation setup
|
[
:arrow_right: Click to continue with part 2 of the documentation
](
doc/tracermodel.md
)
|
|---:|
## Part 3: Main program flow
|
[
:arrow_right: Click to continue with part 3 of the documentation
](
doc/main.md
)
|
...
...
examples/generate_example_docs.py
View file @
2a70def8
...
...
@@ -34,7 +34,7 @@ class Navigation:
self
.
snippets
[
mainpage
]
=
{
"header"
:
""
,
"footer"
:
""
}
makeHead
=
lambda
t
:
"
\n
## {}
\n\n
"
.
format
(
t
)
makeEntry
=
lambda
i
,
l
:
"| [:arrow_right: Click to continue with part {} of the documentation]({}) |
\n
|---:|
\n\n
"
.
format
(
i
,
l
)
self
.
snippets
[
mainpage
][
"footer"
]
=
"
"
.
join
(
self
.
snippets
[
mainpage
][
"footer"
]
=
""
.
join
(
[
makeHead
(
title
)
+
makeEntry
(
index
+
1
,
self
.
getRelPath
(
mainpage
,
subpage
))
for
index
,
(
subpage
,
title
)
in
enumerate
(
zip
(
subpages
,
subtitles
))]
).
rstrip
(
"
\n
"
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment