mark the generated index as an orphan

develop
myk002 2022-07-22 15:21:16 -07:00
parent e8ffa55dfe
commit f9c8d36e03
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 1 additions and 2 deletions

@ -135,12 +135,11 @@ def get_open_mode():
def generate_tag_indices():
os.makedirs('docs/tags', mode=0o755, exist_ok=True)
with open('docs/tags/index.rst', get_open_mode()) as topidx:
#topidx.write(':orphan:\n\n')
topidx.write(':orphan:\n\n')
for tag_tuple in get_tags():
tag = tag_tuple[0]
with open(('docs/tags/{name}.rst').format(name=tag),
get_open_mode()) as tagidx:
#tagidx.write(':orphan:\n\n')
tagidx.write('TODO: add links to the tools that have this tag')
topidx.write(('.. _tag/{name}:\n\n').format(name=tag))
topidx.write(('{name}\n').format(name=tag))