mirror of
https://github.com/uutils/coreutils.git
synced 2025-08-22 11:34:58 +00:00
12 lines
No EOL
437 B
Python
12 lines
No EOL
437 B
Python
# Simple script to create the correct SUMMARY.md and other files
|
|
# for the mdbook documentation.
|
|
# Note: This will overwrite the existing files!
|
|
|
|
import os
|
|
|
|
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") |