rolfedh-doc-utils 0.1.5__py3-none-any.whl → 0.1.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rolfedh_doc_utils-0.1.5.dist-info → rolfedh_doc_utils-0.1.6.dist-info}/METADATA +24 -6
- {rolfedh_doc_utils-0.1.5.dist-info → rolfedh_doc_utils-0.1.6.dist-info}/RECORD +6 -6
- {rolfedh_doc_utils-0.1.5.dist-info → rolfedh_doc_utils-0.1.6.dist-info}/entry_points.txt +1 -0
- {rolfedh_doc_utils-0.1.5.dist-info → rolfedh_doc_utils-0.1.6.dist-info}/top_level.txt +1 -0
- {rolfedh_doc_utils-0.1.5.dist-info → rolfedh_doc_utils-0.1.6.dist-info}/WHEEL +0 -0
- {rolfedh_doc_utils-0.1.5.dist-info → rolfedh_doc_utils-0.1.6.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rolfedh-doc-utils
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: CLI tools for AsciiDoc documentation projects
|
|
5
5
|
Author: Rolfe Dlugy-Hegwer
|
|
6
6
|
License: MIT License
|
|
@@ -99,6 +99,7 @@ The following CLI tools are installed:
|
|
|
99
99
|
* `archive-unused-files`
|
|
100
100
|
* `archive-unused-images`
|
|
101
101
|
* `find-unused-attributes`
|
|
102
|
+
* `format-asciidoc-spacing`
|
|
102
103
|
|
|
103
104
|
These tools can be run from any directory.
|
|
104
105
|
|
|
@@ -132,7 +133,7 @@ Scans `.adoc` files in the current directory to report:
|
|
|
132
133
|
* Paragraphs with too many sentences (default: 3 sentences)
|
|
133
134
|
* Supports exclusion of files and directories
|
|
134
135
|
|
|
135
|
-
➡️ See [
|
|
136
|
+
➡️ See [Scannability Checker for AsciiDoc Files](https://github.com/rolfedh/doc-utils/blob/main/check_scannability.md) for details.
|
|
136
137
|
|
|
137
138
|
---
|
|
138
139
|
|
|
@@ -144,7 +145,7 @@ Works with both:
|
|
|
144
145
|
- **OpenShift-docs style** repositories (uses `_topic_maps/*.yml` files)
|
|
145
146
|
- **Traditional AsciiDoc** repositories (uses `master.adoc` files)
|
|
146
147
|
|
|
147
|
-
➡️ See [
|
|
148
|
+
➡️ See [Archive Unused AsciiDoc Files](https://github.com/rolfedh/doc-utils/blob/main/archive_unused_files.md).
|
|
148
149
|
|
|
149
150
|
---
|
|
150
151
|
|
|
@@ -152,7 +153,7 @@ Works with both:
|
|
|
152
153
|
|
|
153
154
|
Finds unused image files (e.g., `.png`, `.jpg`, `.jpeg`, `.gif`, `.svg`) in the current directory and optionally archives and deletes them.
|
|
154
155
|
|
|
155
|
-
➡️ See [
|
|
156
|
+
➡️ See [Archive Unused Images](https://github.com/rolfedh/doc-utils/blob/main/archive_unused_images.md).
|
|
156
157
|
|
|
157
158
|
---
|
|
158
159
|
|
|
@@ -160,7 +161,22 @@ Finds unused image files (e.g., `.png`, `.jpg`, `.jpeg`, `.gif`, `.svg`) in the
|
|
|
160
161
|
|
|
161
162
|
Scans an attributes file (e.g., `attributes.adoc`) for unused attribute definitions across all `.adoc` files in the current directory.
|
|
162
163
|
|
|
163
|
-
➡️ See [
|
|
164
|
+
➡️ See [Find Unused AsciiDoc Attributes](https://github.com/rolfedh/doc-utils/blob/main/find_unused_attributes.md).
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
### `format-asciidoc-spacing`
|
|
169
|
+
|
|
170
|
+
Ensures proper spacing in AsciiDoc files by adding blank lines after headings and around `include::` directives.
|
|
171
|
+
|
|
172
|
+
Formatting rules:
|
|
173
|
+
- Adds blank line after headings (`=`, `==`, `===`, etc.)
|
|
174
|
+
- Adds blank lines before and after `include::` directives
|
|
175
|
+
- Preserves existing spacing where appropriate
|
|
176
|
+
|
|
177
|
+
Implemented as a Python script (`format-asciidoc-spacing.py`).
|
|
178
|
+
|
|
179
|
+
➡️ See [AsciiDoc Spacing Formatter](https://github.com/rolfedh/doc-utils/blob/main/format_asciidoc_spacing.md).
|
|
164
180
|
|
|
165
181
|
## Best Practices for Safe Usage
|
|
166
182
|
|
|
@@ -191,6 +207,7 @@ To run the tools after installation:
|
|
|
191
207
|
check-scannability --help
|
|
192
208
|
archive-unused-files --help
|
|
193
209
|
find-unused-attributes attributes.adoc
|
|
210
|
+
format-asciidoc-spacing --help
|
|
194
211
|
```
|
|
195
212
|
|
|
196
213
|
Or run them directly from source:
|
|
@@ -199,6 +216,7 @@ Or run them directly from source:
|
|
|
199
216
|
python3 check_scannability.py
|
|
200
217
|
python3 archive_unused_files.py
|
|
201
218
|
python3 find_unused_attributes.py attributes.adoc
|
|
219
|
+
python3 format-asciidoc-spacing.py
|
|
202
220
|
```
|
|
203
221
|
|
|
204
222
|
### Directory/File Exclusion
|
|
@@ -278,7 +296,7 @@ Contributions are welcome! Please ensure:
|
|
|
278
296
|
- Code follows PEP 8 style guidelines
|
|
279
297
|
- Documentation is updated as needed
|
|
280
298
|
|
|
281
|
-
See [
|
|
299
|
+
See [Contributing Guidelines](https://github.com/rolfedh/doc-utils/blob/main/CONTRIBUTING.md) for more details.
|
|
282
300
|
|
|
283
301
|
## License
|
|
284
302
|
|
|
@@ -9,9 +9,9 @@ doc_utils/topic_map_parser.py,sha256=tKcIO1m9r2K6dvPRGue58zqMr0O2zKU1gnZMzEE3U6o
|
|
|
9
9
|
doc_utils/unused_adoc.py,sha256=2cbqcYr1os2EhETUU928BlPRlsZVSdI00qaMhqjSIqQ,5263
|
|
10
10
|
doc_utils/unused_attributes.py,sha256=HBgmHelqearfWl3TTC2bZGiJytjLADIgiGQUNKqXXPg,1847
|
|
11
11
|
doc_utils/unused_images.py,sha256=nqn36Bbrmon2KlGlcaruNjJJvTQ8_9H0WU9GvCW7rW8,1456
|
|
12
|
-
rolfedh_doc_utils-0.1.
|
|
13
|
-
rolfedh_doc_utils-0.1.
|
|
14
|
-
rolfedh_doc_utils-0.1.
|
|
15
|
-
rolfedh_doc_utils-0.1.
|
|
16
|
-
rolfedh_doc_utils-0.1.
|
|
17
|
-
rolfedh_doc_utils-0.1.
|
|
12
|
+
rolfedh_doc_utils-0.1.6.dist-info/licenses/LICENSE,sha256=vLxtwMVOJA_hEy8b77niTkdmQI9kNJskXHq0dBS36e0,1075
|
|
13
|
+
rolfedh_doc_utils-0.1.6.dist-info/METADATA,sha256=JoFOMLPMcQiGaSXBwqXLVZP5jLahLSP0s8_go98X4N8,8787
|
|
14
|
+
rolfedh_doc_utils-0.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
15
|
+
rolfedh_doc_utils-0.1.6.dist-info/entry_points.txt,sha256=dA-u4qlxKcewUAOFgaeW1NUIrkhsVknuwFuGTn1-84w,271
|
|
16
|
+
rolfedh_doc_utils-0.1.6.dist-info/top_level.txt,sha256=WrYqTa4wbjRPMUl2hgJBfP734XsXLkhbnzUublx8S0s,119
|
|
17
|
+
rolfedh_doc_utils-0.1.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|