rolfedh-doc-utils 0.1.17__tar.gz → 0.1.18__tar.gz

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.
Files changed (49) hide show
  1. {rolfedh_doc_utils-0.1.17/rolfedh_doc_utils.egg-info → rolfedh_doc_utils-0.1.18}/PKG-INFO +1 -1
  2. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/doc_utils/unused_attributes.py +27 -1
  3. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/pyproject.toml +1 -1
  4. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18/rolfedh_doc_utils.egg-info}/PKG-INFO +1 -1
  5. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/LICENSE +0 -0
  6. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/README.md +0 -0
  7. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/archive_unused_files.py +0 -0
  8. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/archive_unused_images.py +0 -0
  9. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/check_scannability.py +0 -0
  10. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/doc_utils/__init__.py +0 -0
  11. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/doc_utils/extract_link_attributes.py +0 -0
  12. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/doc_utils/file_utils.py +0 -0
  13. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/doc_utils/format_asciidoc_spacing.py +0 -0
  14. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/doc_utils/replace_link_attributes.py +0 -0
  15. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/doc_utils/scannability.py +0 -0
  16. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/doc_utils/spinner.py +0 -0
  17. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/doc_utils/topic_map_parser.py +0 -0
  18. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/doc_utils/unused_adoc.py +0 -0
  19. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/doc_utils/unused_images.py +0 -0
  20. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/doc_utils/validate_links.py +0 -0
  21. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/doc_utils/version_check.py +0 -0
  22. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/extract_link_attributes.py +0 -0
  23. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/find_unused_attributes.py +0 -0
  24. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/format_asciidoc_spacing.py +0 -0
  25. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/replace_link_attributes.py +0 -0
  26. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/rolfedh_doc_utils.egg-info/SOURCES.txt +0 -0
  27. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/rolfedh_doc_utils.egg-info/dependency_links.txt +0 -0
  28. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/rolfedh_doc_utils.egg-info/entry_points.txt +0 -0
  29. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/rolfedh_doc_utils.egg-info/requires.txt +0 -0
  30. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/rolfedh_doc_utils.egg-info/top_level.txt +0 -0
  31. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/setup.cfg +0 -0
  32. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/setup.py +0 -0
  33. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/tests/test_archive_unused_files.py +0 -0
  34. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/tests/test_archive_unused_images.py +0 -0
  35. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/tests/test_auto_discovery.py +0 -0
  36. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/tests/test_check_scannability.py +0 -0
  37. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/tests/test_cli_entry_points.py +0 -0
  38. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/tests/test_extract_link_attributes.py +0 -0
  39. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/tests/test_file_utils.py +0 -0
  40. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/tests/test_fixture_archive_unused_files.py +0 -0
  41. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/tests/test_fixture_archive_unused_images.py +0 -0
  42. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/tests/test_fixture_check_scannability.py +0 -0
  43. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/tests/test_parse_exclude_list.py +0 -0
  44. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/tests/test_replace_link_attributes.py +0 -0
  45. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/tests/test_symlink_handling.py +0 -0
  46. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/tests/test_topic_map_parser.py +0 -0
  47. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/tests/test_unused_attributes.py +0 -0
  48. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/tests/test_validate_links.py +0 -0
  49. {rolfedh_doc_utils-0.1.17 → rolfedh_doc_utils-0.1.18}/validate_links.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rolfedh-doc-utils
3
- Version: 0.1.17
3
+ Version: 0.1.18
4
4
  Summary: CLI tools for AsciiDoc documentation projects
5
5
  Author: Rolfe Dlugy-Hegwer
6
6
  License: MIT License
@@ -15,6 +15,29 @@ from pathlib import Path
15
15
  from typing import Set, List, Optional
16
16
 
17
17
  def parse_attributes_file(attr_file: str) -> Set[str]:
18
+ # AsciiDoc configuration attributes that control the processor itself
19
+ # These should be ignored as they won't appear in content
20
+ IGNORED_ATTRIBUTES = {
21
+ 'data-uri',
22
+ 'doctype',
23
+ 'experimental',
24
+ 'idprefix',
25
+ 'imagesdir',
26
+ 'includes',
27
+ 'sectanchors',
28
+ 'sectlinks',
29
+ 'source-highlighter',
30
+ 'linkattrs',
31
+ 'toclevels',
32
+ 'idseparator',
33
+ 'icons',
34
+ 'iconsdir',
35
+ 'generated-dir',
36
+ 'code-examples',
37
+ 'doc-guides',
38
+ 'doc-examples',
39
+ }
40
+
18
41
  attributes = set()
19
42
 
20
43
  # Check if file exists
@@ -30,7 +53,10 @@ def parse_attributes_file(attr_file: str) -> Set[str]:
30
53
  for line in f:
31
54
  match = re.match(r'^:([\w-]+):', line.strip())
32
55
  if match:
33
- attributes.add(match.group(1))
56
+ attr_name = match.group(1)
57
+ # Skip ignored configuration attributes
58
+ if attr_name not in IGNORED_ATTRIBUTES:
59
+ attributes.add(attr_name)
34
60
  except PermissionError:
35
61
  raise PermissionError(f"Permission denied reading file: {attr_file}")
36
62
  except UnicodeDecodeError as e:
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rolfedh-doc-utils"
7
- version = "0.1.17"
7
+ version = "0.1.18"
8
8
  description = "CLI tools for AsciiDoc documentation projects"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rolfedh-doc-utils
3
- Version: 0.1.17
3
+ Version: 0.1.18
4
4
  Summary: CLI tools for AsciiDoc documentation projects
5
5
  Author: Rolfe Dlugy-Hegwer
6
6
  License: MIT License