rolfedh-doc-utils 0.1.20__py3-none-any.whl → 0.1.21__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.
@@ -175,8 +175,14 @@ def process_file(file_path: Path, dry_run: bool = False, verbose: bool = False)
175
175
 
176
176
  # Check if current line is an include directive
177
177
  elif re.match(r'^include::', current_line):
178
- # Skip special handling if we're inside a conditional block
178
+ # Handle includes inside conditional blocks
179
179
  if in_conditional:
180
+ # Add blank line between consecutive includes within conditional blocks
181
+ if prev_line and re.match(r'^include::', prev_line):
182
+ new_lines.append("")
183
+ changes_made = True
184
+ if verbose:
185
+ messages.append(" Added blank line between includes in conditional block")
180
186
  new_lines.append(current_line)
181
187
  else:
182
188
  # Check if this is an attribute include (contains "attribute" in the path)
doc_utils/version.py CHANGED
@@ -1,7 +1,7 @@
1
1
  """Version information for doc-utils."""
2
2
 
3
3
  # This should match the version in pyproject.toml
4
- __version__ = "0.1.20"
4
+ __version__ = "0.1.21"
5
5
 
6
6
  def get_version():
7
7
  """Return the current version string."""
doc_utils_cli.py CHANGED
@@ -15,7 +15,7 @@ from doc_utils.version_check import check_version_on_startup
15
15
  TOOLS = [
16
16
  {
17
17
  'name': 'validate-links',
18
- 'description': 'Validates all links in documentation with URL transposition [EXPERIMENTAL]',
18
+ 'description': 'Validates all links in documentation with URL transposition',
19
19
  'example': 'validate-links --transpose "https://prod--https://preview"'
20
20
  },
21
21
  {
@@ -30,7 +30,7 @@ TOOLS = [
30
30
  },
31
31
  {
32
32
  'name': 'format-asciidoc-spacing',
33
- 'description': 'Standardizes spacing after headings and around includes [EXPERIMENTAL]',
33
+ 'description': 'Standardizes spacing after headings and around includes',
34
34
  'example': 'format-asciidoc-spacing --dry-run modules/'
35
35
  },
36
36
  {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rolfedh-doc-utils
3
- Version: 0.1.20
3
+ Version: 0.1.21
4
4
  Summary: CLI tools for AsciiDoc documentation projects
5
5
  Author: Rolfe Dlugy-Hegwer
6
6
  License: MIT License
@@ -94,10 +94,10 @@ doc-utils --version # Show version
94
94
 
95
95
  | Tool | Description | Usage |
96
96
  |------|-------------|-------|
97
- | **`validate-links`** [EXPERIMENTAL] | Validates all links in documentation, with URL transposition for preview environments | `validate-links --transpose "https://prod--https://preview"` |
97
+ | **`validate-links`** | Validates all links in documentation, with URL transposition for preview environments | `validate-links --transpose "https://prod--https://preview"` |
98
98
  | **`extract-link-attributes`** | Extracts link/xref macros with attributes into reusable definitions | `extract-link-attributes --dry-run` |
99
99
  | **`replace-link-attributes`** | Resolves Vale LinkAttribute issues by replacing attributes in link URLs | `replace-link-attributes --dry-run` |
100
- | **`format-asciidoc-spacing`** [EXPERIMENTAL] | Standardizes spacing after headings and around includes | `format-asciidoc-spacing --dry-run modules/` |
100
+ | **`format-asciidoc-spacing`** | Standardizes spacing after headings and around includes | `format-asciidoc-spacing --dry-run modules/` |
101
101
  | **`check-scannability`** | Analyzes readability (sentence/paragraph length) | `check-scannability --max-words 25` |
102
102
  | **`archive-unused-files`** | Finds and archives unreferenced .adoc files | `archive-unused-files` (preview)<br>`archive-unused-files --archive` (execute) |
103
103
  | **`archive-unused-images`** | Finds and archives unreferenced images | `archive-unused-images` (preview)<br>`archive-unused-images --archive` (execute) |
@@ -1,7 +1,7 @@
1
1
  archive_unused_files.py,sha256=OJZrkqn70hiOXED218jMYPFNFWnsDpjsCYOmBRxYnHU,2274
2
2
  archive_unused_images.py,sha256=fZeyEZtTd72Gbd3YBXTy5xoshAAM9qb4qFPMjhHL1Fg,1864
3
3
  check_scannability.py,sha256=O6ROr-e624jVPvPpASpsWo0gTfuCFpA2mTSX61BjAEI,5478
4
- doc_utils_cli.py,sha256=3ShuLw--q-LpADHfz80ftEQndgVnXyTkupXnoRMR2UA,4726
4
+ doc_utils_cli.py,sha256=ZM-ZUp6ncJySGc-qVlu9dpjMW5d8S6eDeMFhOF6xqy0,4696
5
5
  extract_link_attributes.py,sha256=wR2SmR2la-jR6DzDbas2PoNONgRZ4dZ6aqwzkwEv8Gs,3516
6
6
  find_unused_attributes.py,sha256=77CxFdm72wj6SO81w-auMdDjnvF83jWy_qaM7DsAtBw,4263
7
7
  format_asciidoc_spacing.py,sha256=nmWpw2dgwhd81LXyznq0rT8w6Z7cNRyGtPJGRyKFRdc,4212
@@ -10,7 +10,7 @@ validate_links.py,sha256=lWuK8sgfiFdfcUdSVAt_5U9JHVde_oa6peSUlBQtsac,6145
10
10
  doc_utils/__init__.py,sha256=qqZR3lohzkP63soymrEZPBGzzk6-nFzi4_tSffjmu_0,74
11
11
  doc_utils/extract_link_attributes.py,sha256=U0EvPZReJQigNfbT-icBsVT6Li64hYki5W7MQz6qqbc,22743
12
12
  doc_utils/file_utils.py,sha256=fpTh3xx759sF8sNocdn_arsP3KAv8XA6cTQTAVIZiZg,4247
13
- doc_utils/format_asciidoc_spacing.py,sha256=QMeEGkbcZnK7MJDWdi6s_ct5LQ5A4zOfDaDwg8yrli0,12528
13
+ doc_utils/format_asciidoc_spacing.py,sha256=1pR0113ZS-BlxMNjTRT6cID_Nd2iAD-EfZ-9RW_3inA,12882
14
14
  doc_utils/replace_link_attributes.py,sha256=gmAs68_njBqEz-Qni-UGgeYEDTMxlTWk_IOm76FONNE,7279
15
15
  doc_utils/scannability.py,sha256=XwlmHqDs69p_V36X7DLjPTy0DUoLszSGqYjJ9wE-3hg,982
16
16
  doc_utils/spinner.py,sha256=lJg15qzODiKoR0G6uFIk2BdVNgn9jFexoTRUMrjiWvk,3554
@@ -19,11 +19,11 @@ doc_utils/unused_adoc.py,sha256=2cbqcYr1os2EhETUU928BlPRlsZVSdI00qaMhqjSIqQ,5263
19
19
  doc_utils/unused_attributes.py,sha256=OHyAdaBD7aNo357B0SLBN5NC_jNY5TWXMwgtfJNh3X8,7621
20
20
  doc_utils/unused_images.py,sha256=nqn36Bbrmon2KlGlcaruNjJJvTQ8_9H0WU9GvCW7rW8,1456
21
21
  doc_utils/validate_links.py,sha256=iBGXnwdeLlgIT3fo3v01ApT5k0X2FtctsvkrE6E3VMk,19610
22
- doc_utils/version.py,sha256=BZlea1i6_Z9BTH1ITRRSnO3AEaAbTNlKLE-J4GL1QIo,203
22
+ doc_utils/version.py,sha256=5Uc0sAUOkXA6R_PvDGjw2MBYptEKdav5XmeRqukMTo0,203
23
23
  doc_utils/version_check.py,sha256=eHJnZmBTbdhhY2fJQW9KnnyD0rWEvCZpMg6oSr0fOmI,7090
24
- rolfedh_doc_utils-0.1.20.dist-info/licenses/LICENSE,sha256=vLxtwMVOJA_hEy8b77niTkdmQI9kNJskXHq0dBS36e0,1075
25
- rolfedh_doc_utils-0.1.20.dist-info/METADATA,sha256=SNhIc-1rGCXJVSJvL827C1bzHCpQu6Dr-3pJnJzeh4U,8203
26
- rolfedh_doc_utils-0.1.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
- rolfedh_doc_utils-0.1.20.dist-info/entry_points.txt,sha256=m3z-u5BsRe5Zt05cJdP5w4R-3d7wfa6yfJ6lHdxJYT8,449
28
- rolfedh_doc_utils-0.1.20.dist-info/top_level.txt,sha256=AeJfm0SrL6JK9YcehGnIi-UeRksDC0YETck667IEzeo,196
29
- rolfedh_doc_utils-0.1.20.dist-info/RECORD,,
24
+ rolfedh_doc_utils-0.1.21.dist-info/licenses/LICENSE,sha256=vLxtwMVOJA_hEy8b77niTkdmQI9kNJskXHq0dBS36e0,1075
25
+ rolfedh_doc_utils-0.1.21.dist-info/METADATA,sha256=7sScDyXWHA7dkN5v2h_K2kx8abo5QbwNcXKmQXMszp0,8173
26
+ rolfedh_doc_utils-0.1.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
+ rolfedh_doc_utils-0.1.21.dist-info/entry_points.txt,sha256=m3z-u5BsRe5Zt05cJdP5w4R-3d7wfa6yfJ6lHdxJYT8,449
28
+ rolfedh_doc_utils-0.1.21.dist-info/top_level.txt,sha256=AeJfm0SrL6JK9YcehGnIi-UeRksDC0YETck667IEzeo,196
29
+ rolfedh_doc_utils-0.1.21.dist-info/RECORD,,