We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9aa3ec3 commit d267293Copy full SHA for d267293
sphinx_runpython/gdot/sphinx_gdot_extension.py
@@ -155,7 +155,11 @@ def run(self):
155
content = "\n".join(self.content)
156
if script or script == "":
157
env = info.get("env")
158
- cache_key = hashlib.sha256(f"{content}:{process}".encode()).hexdigest()
+ doc_prefix = docname.split("/")[-1] if docname else ""
159
+ cache_key = (
160
+ f"{doc_prefix}:"
161
+ + hashlib.sha256(f"{content}:{process}".encode()).hexdigest()
162
+ )
163
if env is not None:
164
if not hasattr(env, "gdot_script_cache"):
165
env.gdot_script_cache = {}
0 commit comments