mkdocs-document-dates 1.9.2__py3-none-any.whl → 1.9.4__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.
@@ -51,13 +51,35 @@ def setup_logging():
51
51
  print(f"Failed to setup logging: {e}", file=sys.stderr)
52
52
  return False
53
53
 
54
+ # 添加调试函数
55
+ def debug_info():
56
+ info = {
57
+ 'cwd': os.getcwd(),
58
+ 'python_path': sys.executable,
59
+ 'env_path': os.environ.get('PATH', ''),
60
+ 'script_path': __file__,
61
+ 'timestamp': datetime.now().isoformat()
62
+ }
63
+
64
+ # 保存调试信息到固定位置
65
+ debug_file = Path('/tmp/mkdocs_hook_debug.json')
66
+ try:
67
+ with open(debug_file, 'w') as f:
68
+ json.dump(info, f, indent=2)
69
+
70
+ # 同时输出到 stderr(git 会显示这些信息)
71
+ print("Hook debug info:", file=sys.stderr)
72
+ for k, v in info.items():
73
+ print(f"{k}: {v}", file=sys.stderr)
74
+ except Exception as e:
75
+ print(f"Debug error: {e}", file=sys.stderr)
76
+
54
77
  if __name__ == "__main__":
55
78
  try:
56
- log_debug("Hook started")
79
+ debug_info() # 添加调试信息
57
80
  update_dates_cache()
58
- log_debug("Hook completed")
59
81
  except Exception as e:
60
- log_debug(f"Hook error: {e}")
82
+ print(f"Hook error: {e}", file=sys.stderr)
61
83
  sys.exit(1)
62
84
 
63
85
  def find_mkdocs_projects():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: mkdocs-document-dates
3
- Version: 1.9.2
3
+ Version: 1.9.4
4
4
  Summary: A MkDocs plugin for displaying accurate document creation and last modification dates.
5
5
  Home-page: https://github.com/jaywhj/mkdocs-document-dates
6
6
  Author: Aaron Wang
@@ -1,7 +1,7 @@
1
1
  mkdocs_document_dates/__init__.py,sha256=CZ37u8DC6kbkupKFk-VKyfKZZFAJ4rOD0aPzOzVoATc,58
2
2
  mkdocs_document_dates/plugin.py,sha256=zgZ9QrbfsMDAv80P11I_99urSvFolJq93Ow7P-pfS_A,9753
3
3
  mkdocs_document_dates/styles.py,sha256=ujhlKgDWsOo5sHiYtf3XekuGg4C5Yjol8RzP3W9Wzjo,578
4
- mkdocs_document_dates/hooks/pre-commit,sha256=22kOemtPRUflmAWyELUTzH7F8IWxJXkujqzPzSIlS_M,4289
4
+ mkdocs_document_dates/hooks/pre-commit,sha256=k9HOjyfAsywkc4CugqzssLe6l9KyBn1VLk4ckCalEPg,5004
5
5
  mkdocs_document_dates/lang/__init__.py,sha256=M1BLjCOA3HHKeAitk45YAgzxxNpnxFUvVAk6-FO_QSA,690
6
6
  mkdocs_document_dates/lang/ar.py,sha256=BsZlxz54U_spOZ5SBiKt73ywoLKbR54cZNkKAs86OxM,632
7
7
  mkdocs_document_dates/lang/de.py,sha256=B0Ffrn4lVSvcxFpGho7SiMm16GXYEmpjcVAR-k4UgSI,585
@@ -13,9 +13,9 @@ mkdocs_document_dates/lang/ko.py,sha256=GwY6yrKYAOj6S6feq9yqNxr2XpyGHC0XeenO541v
13
13
  mkdocs_document_dates/lang/ru.py,sha256=fK5s4mQKCoP6KI3jf6eqqmqB3YVn39q81U7Cw1QWNNg,721
14
14
  mkdocs_document_dates/lang/zh.py,sha256=OrLElrSTZhHSwxBzuUtUj7NpQb7wm0s83viimpk2ynM,519
15
15
  mkdocs_document_dates/lang/zh_tw.py,sha256=t3qu-a7UOzgcmYDkLFiosJZCcpfMU4xiKTJfu1ZHoHA,519
16
- mkdocs_document_dates-1.9.2.dist-info/LICENSE,sha256=1YKfCs5WKSk-bON8a68WZE5to1B2klCrHBYiuaVCThM,514
17
- mkdocs_document_dates-1.9.2.dist-info/METADATA,sha256=E1grgaApE5eo0n__gieLFCmdyK9bL7ZvFLt_-oeIbKs,3908
18
- mkdocs_document_dates-1.9.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
19
- mkdocs_document_dates-1.9.2.dist-info/entry_points.txt,sha256=gI-OFLGjDG6-oLEfyevl3Gwwj2GcqVFQeX3bvL1IF8o,83
20
- mkdocs_document_dates-1.9.2.dist-info/top_level.txt,sha256=yWkKQdNuAJJVqUQ9uLa5xD4x_Gux4IfOUpy8Ryagdwc,22
21
- mkdocs_document_dates-1.9.2.dist-info/RECORD,,
16
+ mkdocs_document_dates-1.9.4.dist-info/LICENSE,sha256=1YKfCs5WKSk-bON8a68WZE5to1B2klCrHBYiuaVCThM,514
17
+ mkdocs_document_dates-1.9.4.dist-info/METADATA,sha256=-1NyXVR3FMfVE8OQhwrqpeOOCFD3slRl5hphFS6rEEg,3908
18
+ mkdocs_document_dates-1.9.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
19
+ mkdocs_document_dates-1.9.4.dist-info/entry_points.txt,sha256=gI-OFLGjDG6-oLEfyevl3Gwwj2GcqVFQeX3bvL1IF8o,83
20
+ mkdocs_document_dates-1.9.4.dist-info/top_level.txt,sha256=yWkKQdNuAJJVqUQ9uLa5xD4x_Gux4IfOUpy8Ryagdwc,22
21
+ mkdocs_document_dates-1.9.4.dist-info/RECORD,,