Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 119ed59

Browse files
committed
Modified the generation of example index rest files so that a shorter, neater alternative title is given for the examples. The original titles are retained within each example rest file to provided proper context for the document.
1 parent 8e41c36 commit 119ed59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/sphinxext/gen_rst.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def generate_example_rst(app):
111111
rstfile = '%s.rst'%basename
112112
outrstfile = os.path.join(rstdir, rstfile)
113113

114-
fhsubdirIndex.write(' %s\n'%rstfile)
114+
fhsubdirIndex.write(' %s <%s>\n'%(os.path.basename(basename),rstfile))
115115

116116
if not out_of_date(fullpath, outrstfile):
117117
continue

0 commit comments

Comments
 (0)