Commit 5c64e631 authored by Jonathan Klimt's avatar Jonathan Klimt
Browse files

Fixed Inheritance Diagram

parent 0c72a469
python3 ../setup.py develop python3 ../setup.py develop
sphinx-apidoc -F -H "cimpy" -o "../documentation" "../" sphinx-apidoc -F -H "cimpy" -o "../documentation" "../"
# This is broken python3 set_inheritance_diagram.py
# python3 set_inheritance_diagram.py
cd ../documentation cd ../documentation
make html make html
...@@ -3,7 +3,7 @@ import os ...@@ -3,7 +3,7 @@ import os
from tempfile import mkstemp from tempfile import mkstemp
from shutil import move, copy 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): # if 'conf.py' in os.listdir(directory):
# conf_file = os.path.abspath(os.path.join(directory, 'conf.py')) # conf_file = os.path.abspath(os.path.join(directory, 'conf.py'))
...@@ -32,7 +32,7 @@ for file in os.listdir(directory): ...@@ -32,7 +32,7 @@ for file in os.listdir(directory):
if 'automodule' in line: if 'automodule' in line:
name = line.split('::')[1] name = line.split('::')[1]
elif 'show-inheritance' in line: elif 'show-inheritance' in line:
new_file.write('Inheritance Diagram:\n') new_file.write('\nInheritance Diagram:\n')
new_file.write('""""""""""""""""""""\n') new_file.write('""""""""""""""""""""\n')
new_file.write('.. inheritance-diagram:: ' + name) new_file.write('.. inheritance-diagram:: ' + name)
new_file.write(' :parts: 1') new_file.write(' :parts: 1')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment