You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: audit-cli/README.md
+22-19Lines changed: 22 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,9 @@ With `-v` flag, also shows:
223
223
224
224
#### `analyze includes`
225
225
226
-
Analyze `include` directive relationships in RST files to understand file dependencies.
226
+
Analyze `include` directive and `toctree` relationships in RST files to understand file dependencies.
227
+
228
+
This command recursively follows both `.. include::` directives and `.. toctree::` entries to show all files that are referenced from a starting file. This provides a complete picture of file dependencies including both content includes and table of contents structure.
227
229
228
230
**Use Cases:**
229
231
@@ -232,6 +234,7 @@ This command helps writers:
232
234
- Identify circular include dependencies (files included multiple times)
233
235
- Document file relationships for maintenance
234
236
- Plan refactoring of complex include structures
237
+
- Understand table of contents structure and page hierarchies
235
238
236
239
**Basic Usage:**
237
240
@@ -283,35 +286,35 @@ times (e.g., file A includes file C, and file B also includes file C), the file
283
286
However, the tree view will show it in all locations where it appears, with subsequent occurrences marked as circular
284
287
includes in verbose mode.
285
288
286
-
#### `analyze references`
289
+
#### `analyze file-references`
287
290
288
-
Find all files that reference a target file through RST directives. This performs reverse dependency analysis, showing which files reference the target file through `include`, `literalinclude`, or `io-code-block` directives.
291
+
Find all files that reference a target file through RST directives. This performs reverse dependency analysis, showing which files reference the target file through `include`, `literalinclude`, `io-code-block`, or `toctree` directives.
289
292
290
-
The command searches all RST files (both `.rst` and `.txt` extensions) in the source directory tree.
293
+
The command searches all RST files (`.rst` and `.txt` extensions) and YAML files (`.yaml` and `.yml` extensions) in the source directory tree. YAML files are included because extract and release files contain RST directives within their content blocks.
291
294
292
295
**Use Cases:**
293
296
294
297
This command helps writers:
295
298
- Understand the impact of changes to a file (what pages will be affected)
296
299
- Find all usages of an include file across the documentation
297
300
- Track where code examples are referenced
298
-
- Identify orphaned files (files with no references)
301
+
- Identify orphaned files (files with no references, including toctree entries)
299
302
- Plan refactoring by understanding file dependencies
0 commit comments