Skip to content

Commit 5f65acb

Browse files
Add usage description to subheadings fix script
1 parent 2e4f1a3 commit 5f65acb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

fixes/fix-subheadings.py

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#!/usr/bin/python
22
# Vladimir Slavik, Red Hat, 2018
33

4+
# Replace [discrete]\n== subheading with .subheading, including some common variations of that format.
5+
# Usage: python fix-subheadings.py target-directory
6+
7+
# Automatically recurses into subdirectories and changes all *.adoc files; for recursion rules see python os.path.walk docs
8+
9+
# To change "[discrete] == headings" to ".headings" in all files in a target directory, go to the
10+
# directory with the script and use ./fix-subheadings.py target-directory-path (where you replace
11+
# target-directory-path with the path to the target directory)
12+
413
from __future__ import print_function
514

615
from os.path import walk, isfile, join

0 commit comments

Comments
 (0)