Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
mantidproject
mantid
Commits
a83c7899
Commit
a83c7899
authored
13 years ago
by
Janik Zikovsky
Browse files
Options
Downloads
Patches
Plain Diff
Refs #3867: make wiki docs for python easier for me
parent
ea4ac05f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Mantid/Build/sip_strip_docstring.py
+9
-1
9 additions, 1 deletion
Code/Mantid/Build/sip_strip_docstring.py
Code/Mantid/MantidQt/mantidqt.rhel5.sip
+0
-1
0 additions, 1 deletion
Code/Mantid/MantidQt/mantidqt.rhel5.sip
with
9 additions
and
2 deletions
Code/Mantid/Build/sip_strip_docstring.py
+
9
−
1
View file @
a83c7899
...
...
@@ -23,7 +23,7 @@ def process_sip(filename):
root
=
os
.
path
.
split
(
os
.
path
.
abspath
(
filename
))[
0
]
# Read and split into a buncha lines
lines
=
open
(
filename
,
'
r
'
).
read
().
split
(
'
\n
'
)
lines
=
open
(
filename
,
'
r
'
).
read
().
split
lines
(
)
in_docstring
=
False
outlines
=
[]
wikilines
=
[]
...
...
@@ -36,10 +36,18 @@ def process_sip(filename):
else
:
# Save the docstring
wikilines
.
append
(
"
"
+
lines
[
i
])
# Class-separator line = this is the second line of a new class docstring
if
line
.
startswith
(
"
===
"
):
# Make a wiki-markup header
wikilines
[
-
1
]
=
"
"
wikilines
[
-
2
]
=
"
=== %s ===
"
%
(
wikilines
[
-
2
].
strip
())
else
:
# Not in a docstring.
if
line
.
startswith
(
"
%docstring
"
):
in_docstring
=
True
# Add a blank line separating doc strings if not present
if
len
(
wikilines
)
>
0
and
wikilines
[
-
1
].
strip
()
!=
""
:
wikilines
.
append
(
"
"
)
# Copy to output
if
not
in_docstring
:
outlines
.
append
(
lines
[
i
])
...
...
This diff is collapsed.
Click to expand it.
Code/Mantid/MantidQt/mantidqt.rhel5.sip
+
0
−
1
View file @
a83c7899
...
...
@@ -227,4 +227,3 @@ private:
}; // end namespace
}; // end namespace
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