From c2447c0837629117f03d7f2494f451f4585c8b89 Mon Sep 17 00:00:00 2001 From: "Konstantin Kirik (snegovick)" Date: Tue, 9 Dec 2025 00:14:36 +0300 Subject: Add mksectionindex.py script to create man section html index, integrate this script into man to html pipeline --- man/lib/mksectionindex.py | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 man/lib/mksectionindex.py (limited to 'man/lib/mksectionindex.py') diff --git a/man/lib/mksectionindex.py b/man/lib/mksectionindex.py new file mode 100644 index 00000000..480011fe --- /dev/null +++ b/man/lib/mksectionindex.py @@ -0,0 +1,36 @@ +import os +import sys + +if __name__ == "__main__": + prefix = sys.argv[1] + section = sys.argv[2] + index_file = """ + + + + +""" + + index_file += f"Section {section} index" + index_file += f""" + + +

Section {section} index

+
+"""
+
+    for f in os.listdir():
+        index_file += f"{f}\n"
+
+    index_file += "
" + print(index_file) -- cgit v1.2.3