mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-10 12:35:06 +08:00
DOC: Remove commented out code.
This commit is contained in:
@@ -269,10 +269,6 @@ class ApiDocWriter(object):
|
|||||||
|
|
||||||
ad = '.. AUTO-GENERATED FILE -- DO NOT EDIT!\n\n'
|
ad = '.. AUTO-GENERATED FILE -- DO NOT EDIT!\n\n'
|
||||||
|
|
||||||
chap_title = uri_short
|
|
||||||
#ad += (chap_title+'\n'+ self.rst_section_levels[1] * len(chap_title)
|
|
||||||
# + '\n\n')
|
|
||||||
|
|
||||||
# Set the chapter title to read 'module' for all modules except for the
|
# Set the chapter title to read 'module' for all modules except for the
|
||||||
# main packages
|
# main packages
|
||||||
if '.' in uri:
|
if '.' in uri:
|
||||||
@@ -283,14 +279,6 @@ class ApiDocWriter(object):
|
|||||||
|
|
||||||
ad += '\n.. automodule:: ' + uri + '\n'
|
ad += '\n.. automodule:: ' + uri + '\n'
|
||||||
ad += '\n.. currentmodule:: ' + uri + '\n'
|
ad += '\n.. currentmodule:: ' + uri + '\n'
|
||||||
# multi_class = len(classes) > 1
|
|
||||||
# multi_fx = len(functions) > 1
|
|
||||||
# if multi_class:
|
|
||||||
# ad += '\n' + 'Classes' + '\n' + \
|
|
||||||
# self.rst_section_levels[2] * 7 + '\n'
|
|
||||||
# elif len(classes) and multi_fx:
|
|
||||||
# ad += '\n' + 'Class' + '\n' + \
|
|
||||||
# self.rst_section_levels[2] * 5 + '\n'
|
|
||||||
for c in classes:
|
for c in classes:
|
||||||
ad += '\n:class:`' + c + '`\n' \
|
ad += '\n:class:`' + c + '`\n' \
|
||||||
+ self.rst_section_levels[2] * \
|
+ self.rst_section_levels[2] * \
|
||||||
@@ -302,12 +290,6 @@ class ApiDocWriter(object):
|
|||||||
' :show-inheritance:\n' \
|
' :show-inheritance:\n' \
|
||||||
'\n' \
|
'\n' \
|
||||||
' .. automethod:: __init__\n'
|
' .. automethod:: __init__\n'
|
||||||
# if multi_fx:
|
|
||||||
# ad += '\n' + 'Functions' + '\n' + \
|
|
||||||
# self.rst_section_levels[2] * 9 + '\n\n'
|
|
||||||
# elif len(functions) and multi_class:
|
|
||||||
# ad += '\n' + 'Function' + '\n' + \
|
|
||||||
# self.rst_section_levels[2] * 8 + '\n\n'
|
|
||||||
ad += '.. autosummary::\n\n'
|
ad += '.. autosummary::\n\n'
|
||||||
for f in functions:
|
for f in functions:
|
||||||
ad += ' ' + uri + '.' + f + '\n'
|
ad += ' ' + uri + '.' + f + '\n'
|
||||||
|
|||||||
Reference in New Issue
Block a user