Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
8dead24a
Commit
8dead24a
authored
2 years ago
by
Timo Koch
Committed by
Mathis Kelm
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[doxygen] Add filter for lines that should only be displayed in Doxygen
parent
92cfcd64
No related branches found
No related tags found
1 merge request
!3474
[python] update readme for new setup
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/doxygen/markdown-filter.py
+7
-1
7 additions, 1 deletion
doc/doxygen/markdown-filter.py
with
7 additions
and
1 deletion
doc/doxygen/markdown-filter.py
+
7
−
1
View file @
8dead24a
...
...
@@ -34,6 +34,12 @@ def _is_main_readme_file(path) -> bool:
return
path
==
MAIN_README
def
_enable_doxygen_only_content
(
line
:
str
)
->
str
:
if
line
.
startswith
(
"
<!--DOXYGEN_ONLY
"
):
return
line
.
replace
(
"
<!--DOXYGEN_ONLY
"
,
""
).
replace
(
"
-->
"
,
""
)
return
line
assert
len
(
sys
.
argv
[
1
])
>
1
filePath
=
abspath
(
sys
.
argv
[
1
])
...
...
@@ -49,7 +55,7 @@ if _is_main_readme_file(filePath):
# correctly (may be fixed in the most recent Doxygen version)
result_lines
=
[]
for
line
in
result
.
split
(
"
\n
"
):
result_lines
.
append
(
_add_header_label
(
line
))
result_lines
.
append
(
_
enable_doxygen_only_content
(
_
add_header_label
(
line
))
)
# Print the final result for Doxygen to pick it up
print
(
"
\n
"
.
join
(
result_lines
))
This diff is collapsed.
Click to expand it.
Timo Koch
@timok
mentioned in commit
96b1b72b
·
2 years ago
mentioned in commit
96b1b72b
mentioned in commit 96b1b72b0e76555b97b5a3a77706e997be4640df
Toggle commit list
Timo Koch
@timok
mentioned in commit
379a442d
·
2 years ago
mentioned in commit
379a442d
mentioned in commit 379a442db7a903ecb4821646f6c80fb5aa325762
Toggle commit list
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