sphinx-cmd 0.4.1__tar.gz → 0.4.2__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 (25) hide show
  1. {sphinx_cmd-0.4.1/sphinx_cmd.egg-info → sphinx_cmd-0.4.2}/PKG-INFO +1 -1
  2. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd/__init__.py +1 -1
  3. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd/commands/mv.py +11 -0
  4. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd/commands/rm.py +2 -0
  5. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2/sphinx_cmd.egg-info}/PKG-INFO +1 -1
  6. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/LICENSE +0 -0
  7. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/MANIFEST.in +0 -0
  8. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/README.md +0 -0
  9. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/pyproject.toml +0 -0
  10. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/setup.cfg +0 -0
  11. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd/cli.py +0 -0
  12. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd/commands/__init__.py +0 -0
  13. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd/config.py +0 -0
  14. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd/py.typed +0 -0
  15. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd.egg-info/SOURCES.txt +0 -0
  16. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd.egg-info/dependency_links.txt +0 -0
  17. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd.egg-info/entry_points.txt +0 -0
  18. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd.egg-info/requires.txt +0 -0
  19. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd.egg-info/top_level.txt +0 -0
  20. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/tests/test_cli.py +0 -0
  21. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/tests/test_config.py +0 -0
  22. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/tests/test_custom_directives.py +0 -0
  23. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/tests/test_integration.py +0 -0
  24. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/tests/test_mv.py +0 -0
  25. {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/tests/test_rm.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sphinx-cmd
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: Command-line tools for Sphinx documentation management
5
5
  Author-email: Jared Dillard <jared.dillard@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/jdillard/sphinx-cmd
@@ -1,4 +1,4 @@
1
1
  # This file makes sphinx_cmd a Python package
2
2
  """Sphinx command-line utilities."""
3
3
 
4
- __version__ = "0.4.1"
4
+ __version__ = "0.4.2"
@@ -83,8 +83,14 @@ def extract_references(
83
83
  else:
84
84
  ref_path = match
85
85
  references[ref_type].append(ref_path)
86
+
86
87
  if verbose:
87
88
  print(f"Found {ref_type} reference: {ref_path}")
89
+ # For references that could be image files or other assets, show absolute path
90
+ if ref_type in ["image", "figure", "include"]:
91
+ ref_full_path = Path(file_path).parent / ref_path
92
+ ref_abs_path = ref_full_path.resolve()
93
+ print(f" Absolute path: {ref_abs_path}")
88
94
 
89
95
  if verbose and not references:
90
96
  print(f"No references found in {file_path}")
@@ -133,6 +139,11 @@ def find_files_referencing(
133
139
  referencing_files.append((file_path, ref_type))
134
140
  if verbose:
135
141
  print(f"Found reference in {file_path} ({ref_type}): {ref}")
142
+ # For references that could be image files or other assets, show absolute path
143
+ if ref_type in ["image", "figure", "include"]:
144
+ ref_full_path = Path(file_path).parent / ref
145
+ ref_abs_path = ref_full_path.resolve()
146
+ print(f" Absolute path: {ref_abs_path}")
136
147
  break
137
148
  except Exception as e:
138
149
  print(f"Warning: Could not analyze {file_path}: {e}")
@@ -55,9 +55,11 @@ def extract_assets(
55
55
  asset_full_path = os.path.normpath(
56
56
  os.path.join(os.path.dirname(file_path), asset_path)
57
57
  )
58
+ asset_abs_path = os.path.abspath(asset_full_path)
58
59
 
59
60
  if verbose:
60
61
  print(f"Found {directive}: {asset_path}")
62
+ print(f" Absolute path: {asset_abs_path}")
61
63
 
62
64
  if directive == "include":
63
65
  if verbose:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sphinx-cmd
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: Command-line tools for Sphinx documentation management
5
5
  Author-email: Jared Dillard <jared.dillard@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/jdillard/sphinx-cmd
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes