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.
- {sphinx_cmd-0.4.1/sphinx_cmd.egg-info → sphinx_cmd-0.4.2}/PKG-INFO +1 -1
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd/__init__.py +1 -1
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd/commands/mv.py +11 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd/commands/rm.py +2 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2/sphinx_cmd.egg-info}/PKG-INFO +1 -1
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/LICENSE +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/MANIFEST.in +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/README.md +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/pyproject.toml +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/setup.cfg +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd/cli.py +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd/commands/__init__.py +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd/config.py +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd/py.typed +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd.egg-info/SOURCES.txt +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd.egg-info/dependency_links.txt +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd.egg-info/entry_points.txt +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd.egg-info/requires.txt +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/sphinx_cmd.egg-info/top_level.txt +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/tests/test_cli.py +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/tests/test_config.py +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/tests/test_custom_directives.py +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/tests/test_integration.py +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/tests/test_mv.py +0 -0
- {sphinx_cmd-0.4.1 → sphinx_cmd-0.4.2}/tests/test_rm.py +0 -0
|
@@ -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:
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|