tool docs are no longer toc-orphaned

develop
myk002 2022-09-23 15:58:31 -07:00
parent 3dfb85522a
commit 8546b2963c
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 0 additions and 2 deletions

@ -73,13 +73,11 @@ def write_tool_docs():
the original documentation.
"""
for k in doc_all_dirs():
header = ':orphan:\n'
label = ('.. _{name}:\n\n').format(name=k[0])
include = ('.. include:: /{path}\n\n').format(path=k[1])
os.makedirs(os.path.join('docs/tools', os.path.dirname(k[0])),
mode=0o755, exist_ok=True)
with write_file_if_changed('docs/tools/{}.rst'.format(k[0])) as outfile:
outfile.write(header)
if k[0] != 'search':
outfile.write(label)
outfile.write(include)