Skip to content

Commit

Permalink
mark the generated index as an orphan
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Jul 22, 2022
1 parent e8ffa55 commit f9c8d36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit f9c8d36

Please sign in to comment.