Almost completed refactoring of source docstrings for new doc system
This commit is contained in:
parent
2208a3030c
commit
9fbfc8f8d0
18 changed files with 331 additions and 332 deletions
|
|
@ -185,6 +185,8 @@ def create_toctree():
|
|||
with open(_TOC_FILE, "w") as fil:
|
||||
fil.write("# Toc\n")
|
||||
|
||||
fil.write("- [API root](api/evennia-api.rst)")
|
||||
|
||||
for ref in sorted(toc_map.values()):
|
||||
|
||||
if ref == "toc":
|
||||
|
|
@ -193,6 +195,7 @@ def create_toctree():
|
|||
linkname = ref.replace("-", " ")
|
||||
fil.write(f"\n- [{linkname}]({ref})")
|
||||
|
||||
|
||||
# we add a self-reference so the toc itself is also a part of a toctree
|
||||
fil.write("\n\n```toctree::\n :hidden:\n\n toc\n```")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue