File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -146,12 +146,16 @@ Configuration values and events
146146 The default value is ``None ``.
147147 Example usage with a tuple that defines an arbitrary order:
148148
149+ .. code-block :: python
150+
149151 sections_order = (" Public methods" , " Attributes" , " Private methods" )
150152 autodocsumm_section_sorter = lambda title : sections_order.index(title)
151153
152154 An example for cases that only ensures that "Constructors" are always listed
153155 first and "Attributes" while not failing when encountering undefined section
154156 weights:
155157
158+ .. code-block :: python
159+
156160 section_weights = {" Attributes" : 100 , " Constructors" : - 100 }
157161 autodocsumm_section_sorter = lambda title : sections_weights.get(title, 0 )
You can’t perform that action at this time.
0 commit comments