mirror of
https://github.com/uutils/coreutils.git
synced 2025-08-23 03:55:03 +00:00
docs: remove custom files
This commit is contained in:
parent
e3558ff3a8
commit
9618a2f21d
105 changed files with 115 additions and 521 deletions
|
@ -4,17 +4,9 @@
|
|||
|
||||
import os
|
||||
|
||||
with open('src/utils/index.md', 'w') as index:
|
||||
with open('src/SUMMARY.md', 'w') as summary:
|
||||
summary.write("# Summary\n\n")
|
||||
summary.write("[Introduction](index.md)\n")
|
||||
summary.write("* [Contributing](contributing.md)\n")
|
||||
summary.write("* [Utils](utils/index.md)\n")
|
||||
index.write("# Utils\n\n")
|
||||
for d in sorted(os.listdir('../src/uu')):
|
||||
with open(f"src/utils/{d}.md", 'w') as f:
|
||||
f.write(f"# {d}\n\n")
|
||||
f.write(f"{{{{ #include ../../_generated/{d}-help.md }}}}\n")
|
||||
print(f"Created docs/src/utils/{d}.md")
|
||||
summary.write(f" * [{d}](utils/{d}.md)\n")
|
||||
index.write(f"* [{d}](./{d}.md)\n")
|
||||
with open('src/SUMMARY.md', 'w') as summary:
|
||||
summary.write("# Summary\n\n")
|
||||
summary.write("[Introduction](index.md)\n")
|
||||
summary.write("* [Contributing](contributing.md)\n")
|
||||
for d in sorted(os.listdir('../src/uu')):
|
||||
summary.write(f"* [{d}](utils/{d}.md)\n")
|
Loading…
Add table
Add a link
Reference in a new issue