Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
CIM
CIMpy
Commits
5c64e631
Commit
5c64e631
authored
Sep 14, 2020
by
Jonathan Klimt
Browse files
Fixed Inheritance Diagram
parent
0c72a469
Changes
2
Hide whitespace changes
Inline
Side-by-side
documentation/docu.sh
View file @
5c64e631
python3 ../setup.py develop
sphinx-apidoc
-F
-H
"cimpy"
-o
"../documentation"
"../"
# This is broken
# python3 set_inheritance_diagram.py
python3 set_inheritance_diagram.py
cd
../documentation
make html
documentation/set_inheritance_diagram.py
View file @
5c64e631
...
...
@@ -3,7 +3,7 @@ import os
from
tempfile
import
mkstemp
from
shutil
import
move
,
copy
directory
=
os
.
path
.
abspath
(
os
.
path
.
join
(
'..'
,
'documentation
-build
'
))
directory
=
os
.
path
.
abspath
(
os
.
path
.
join
(
'..'
,
'documentation'
))
# if 'conf.py' in os.listdir(directory):
# conf_file = os.path.abspath(os.path.join(directory, 'conf.py'))
...
...
@@ -32,7 +32,7 @@ for file in os.listdir(directory):
if
'automodule'
in
line
:
name
=
line
.
split
(
'::'
)[
1
]
elif
'show-inheritance'
in
line
:
new_file
.
write
(
'Inheritance Diagram:
\n
'
)
new_file
.
write
(
'
\n
Inheritance Diagram:
\n
'
)
new_file
.
write
(
'""""""""""""""""""""
\n
'
)
new_file
.
write
(
'.. inheritance-diagram:: '
+
name
)
new_file
.
write
(
' :parts: 1'
)
...
...
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