mkdocstrings-github 0.3.0__tar.gz → 0.4.0__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 (104) hide show
  1. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/.github/workflows/docs.yaml +1 -2
  2. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/.github/workflows/qualify.yaml +2 -2
  3. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/.github/workflows/release.yaml +3 -3
  4. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/PKG-INFO +4 -3
  5. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/README.md +1 -0
  6. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/docs/usage/index.md +0 -3
  7. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/docs/usage/signatures.md +10 -11
  8. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/pyproject.toml +5 -4
  9. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/src/mkdocstrings_handlers/github/config.py +0 -5
  10. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/src/mkdocstrings_handlers/github/handler.py +12 -76
  11. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/uv.lock +169 -264
  12. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/.github/CODEOWNERS +0 -0
  13. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/.github/CONTRIBUTING.md +0 -0
  14. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/.github/FUNDING.yml +0 -0
  15. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/.github/renovate.json5 +0 -0
  16. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/.github/workflows/example_workflow.yml +0 -0
  17. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/.gitignore +0 -0
  18. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/.gitmodules +0 -0
  19. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/.pre-commit-config.yaml +0 -0
  20. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/LICENSE +0 -0
  21. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/action.yaml +0 -0
  22. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/docs/changelog.md +0 -0
  23. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/docs/contributing.md +0 -0
  24. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/docs/credits.md +0 -0
  25. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/docs/favicon.png +0 -0
  26. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/docs/index.md +0 -0
  27. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/docs/license-page.md +0 -0
  28. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/docs/logo.png +0 -0
  29. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/docs/overrides/main.html +0 -0
  30. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/docs/overrides/partials/toc-item.html +0 -0
  31. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/docs/stylesheets/extra.css +0 -0
  32. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/docs/usage/general.md +0 -0
  33. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/docs/usage/headings.md +0 -0
  34. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/docs/usage/parameters.md +0 -0
  35. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/logo.png +0 -0
  36. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/mkdocs.yml +0 -0
  37. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/src/mkdocstrings_handlers/github/__init__.py +0 -0
  38. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/src/mkdocstrings_handlers/github/objects.py +0 -0
  39. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/src/mkdocstrings_handlers/github/py.typed +0 -0
  40. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/src/mkdocstrings_handlers/github/rendering.py +0 -0
  41. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/src/mkdocstrings_handlers/github/templates/material/action.html.jinja +0 -0
  42. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/src/mkdocstrings_handlers/github/templates/material/heading.html.jinja +0 -0
  43. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/src/mkdocstrings_handlers/github/templates/material/inputs.html.jinja +0 -0
  44. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/src/mkdocstrings_handlers/github/templates/material/outputs.html.jinja +0 -0
  45. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/src/mkdocstrings_handlers/github/templates/material/secrets.html.jinja +0 -0
  46. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/src/mkdocstrings_handlers/github/templates/material/style.css +0 -0
  47. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/src/mkdocstrings_handlers/github/templates/material/workflow.html.jinja +0 -0
  48. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/__init__.py +0 -0
  49. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/conftest.py +0 -0
  50. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/docs/.gitkeep +0 -0
  51. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/helpers.py +0 -0
  52. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/__init__.py +0 -0
  53. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/.gitignore +0 -0
  54. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/0a37a4286738a72a224871dbd1bcd3c662e768f800a8e2b92c410d672c1d19fc.html +0 -0
  55. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/0c67cdd8572de4a97d061f099552f428affde9f418d962c119559531a92f57aa.html +0 -0
  56. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/0ef4f0725dafdff18802cd0dd8839c35562755c90458f0dd3ef7743e87efdd89.html +0 -0
  57. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/1322d6390dbc167e4d2734b6ff7ac30265a52feb242ece864fd08dd36a88214a.html +0 -0
  58. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/1bb484ae2f4d2bfc6473c265761d6ba4f76c5be5dbd3a9059758e67589f4b320.html +0 -0
  59. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/22929d6c2b70b481583d7b07fd7bff72dba985a465d42ad4ee5a7f557429102f.html +0 -0
  60. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/24dfcb59a486346316de8203f742d4f3dd9129f9a57252c37741ad27d0eaddd7.html +0 -0
  61. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/2500c66e16468b20050dd9b8b152a48644d008c0316e444f47afc7bc5117e004.html +0 -0
  62. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/27b0437dc257c9970044eb25da334453829a4ae0450e98cf7a965aff5ad7fcba.html +0 -0
  63. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/28df0ab9fe5662687b72cbb8b2c8e2e18b98beb5a114a505ad845c91b8955a2e.html +0 -0
  64. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/293f8ca976970a4fb9549b1bd3b6f6be8a13bd86d9c34bb98813def62a5777aa.html +0 -0
  65. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/2eb63f18b2d0aaf8000ffcc081c80067937fc7cacea496c2871198aa3bc12a14.html +0 -0
  66. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/36d5597971381260ce0cd98b6ba1c3973134add32288bf34f47290fdbe55b0ec.html +0 -0
  67. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/37c546e4aceaf4af0a681bdaa444b8be901c78713e762fd96d2237b8a78811c5.html +0 -0
  68. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/3cb099624d882a4cde3ef6fdbea56c9aced9331dca1e19c7bc311c2611782e0d.html +0 -0
  69. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/459e6df9404add89f3e159d2b0fdfc81e7f0545da8efaa690de8c06aebd1d2bf.html +0 -0
  70. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/50af1499553795c8cd859a1c9aa5ba162ef1c3dd9fa466668fc2da5bb002a61c.html +0 -0
  71. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/572198cee6d40e3c875970ee6b4c654b3edae54c5a00ee4792df2b0d5a161796.html +0 -0
  72. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/5a2f11e94bc00c7a5122364dcffcdc9bd5c514a773fbf4d1b04fa7e96ba2cfa5.html +0 -0
  73. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/5a75c7bf0d0c9f0d6e193263fe59288ec69ef2d93ec6f8bab8e240b2b58b3dd3.html +0 -0
  74. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/5f0693318b13614e630f852af6ad9165a3793e2e011d4de786b84e178eb411bc.html +0 -0
  75. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/757b79d7975f29e7b7eeda8c910578cb858a867dc4c647c4b5bc9a4c45dbf62e.html +0 -0
  76. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/78f74a133e98bd757a1bd1c4667dc3a5d7cc40cc78daf596187999cb083ec6c4.html +0 -0
  77. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/78feb92e4171bf067dd1615523e5c9cac0de998bb7102ee70da2e145d1262339.html +0 -0
  78. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/84f918940f7b729b21a97d971a27bf994b2deb8ee5d9909481d98f702dfec96a.html +0 -0
  79. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/856a4ff20ee15b09367d852d57cdb6a3376b799760365dbf7677c216156a7b4d.html +0 -0
  80. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/8df27f9a94e16efe5686ebeded8a93bd5b071f4d39fe47224ce218a6b1e58b90.html +0 -0
  81. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/93bf082d40ca4b6730a503aa4d265901a8cfed7ed1a6e9bb6e584c2c3ebd18af.html +0 -0
  82. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/98e4b6474a6f67576ae40a75e152e6bd8c3e743259ad7f1d08890def2ff858d1.html +0 -0
  83. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/98ed5c777c164326632ca657e3cb87ae3f9b75bf9793ab2db4ab90ee7874621c.html +0 -0
  84. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/ac47b3b933709154de762d06903d78925cea9f1ec93865386d669680cf17e4a8.html +0 -0
  85. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/b972a05ffc5672d471d5b1e84b01470a3363a25f9d9adbc8d82f4b9fd21a94a1.html +0 -0
  86. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/bbea0ecf08aec9444ed75cbffd5424aa19e285ac64a53d1bb50f6130230b3c97.html +0 -0
  87. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/c2181f9e06dd6b7437f14e815c4fd32ec304e4474c93e86c02b43f41367a79ff.html +0 -0
  88. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/c3d75cc820623b26630624895fbc53ff7ea764ede141a2751387fca0bddb0c42.html +0 -0
  89. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/c50b7f91aafff5caf0fe0ff96a922b499617966705cde0d3622191f51f523b38.html +0 -0
  90. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/c8c895c400f0532aa3afe641f79ed14bc399b504169242c0a9f77572c185def2.html +0 -0
  91. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/cdad9a8909ec6448ff4392f523d4c7d41dcba61fc635e7e744026f901df04913.html +0 -0
  92. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/cdf58c1c57a805ff06487f8361728c09ddf37f7ef3235ad26effab9f1f07f5a4.html +0 -0
  93. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/d0d656ae32436d7b190665f98f3fe2d7a6250ee7ff4e1fb1bcd9a1364d3da2cb.html +0 -0
  94. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/d2e25cb02f371db9bd247a36766f7887ef1d2adad97ba1102ab1d98cf3128dc3.html +0 -0
  95. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/dbb6b804e35c3cf48b6ea556486a82cf6f34af4d7cc455bfc02995969f45d09f.html +0 -0
  96. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/de1ce14a6155d8b1e4185e0eed7490872ef3af13b459ce5430ee5fc070f549d5.html +0 -0
  97. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/df4a79ccbc4e4aa4c1a3135f1b42ce67cbebdf65acec195630d961605206c078.html +0 -0
  98. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/f0d6c0adbfcc02896663bc47e38910252279cabfe89c8c196c23f02b7d65d77d.html +0 -0
  99. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/f575eacc0b72560cfc4e759f838f4ba8fc6ad1ee88d56fa707a1a840baf3e679.html +0 -0
  100. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/f64c666c9ace98f632d96aea732c4da55112d9c496baef00eb997c68c2c09264.html +0 -0
  101. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/snapshots/external/f90542b4e3cbaf7e9820cdad6bbe707e3210983c911f11584cfae580e5cf6a04.html +0 -0
  102. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/test_handler.py +0 -0
  103. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/test_render_action.py +0 -0
  104. {mkdocstrings_github-0.3.0 → mkdocstrings_github-0.4.0}/test/test_render_workflow.py +0 -0
@@ -44,7 +44,7 @@ jobs:
44
44
  ref: ${{ inputs.ref }}
45
45
 
46
46
  - name: Install the latest version of uv
47
- uses: astral-sh/setup-uv@v6
47
+ uses: astral-sh/setup-uv@v7
48
48
  with:
49
49
  version: "latest"
50
50
 
@@ -61,7 +61,6 @@ jobs:
61
61
  shell: bash
62
62
  env:
63
63
  PUSH_DEPLOY: ${{ fromJson(inputs.push) && '--push' || '' }}
64
- GH_TOKEN: ${{ github.token }}
65
64
  VERSION: ${{ inputs.version }}
66
65
  run: |
67
66
  if [[ $VERSION =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
@@ -73,7 +73,7 @@ jobs:
73
73
  submodules: true
74
74
 
75
75
  - name: Set up uv
76
- uses: astral-sh/setup-uv@v6
76
+ uses: astral-sh/setup-uv@v7
77
77
  with:
78
78
  version: "latest"
79
79
 
@@ -146,7 +146,7 @@ jobs:
146
146
  pull-requests: write
147
147
  steps:
148
148
  - name: Checkout
149
- uses: actions/checkout@v4
149
+ uses: actions/checkout@v5
150
150
  with:
151
151
  fetch-depth: 2
152
152
 
@@ -50,7 +50,7 @@ jobs:
50
50
  git checkout -B ${{ github.ref_name }} ${{ github.sha }}
51
51
 
52
52
  - name: Set up uv
53
- uses: astral-sh/setup-uv@v6
53
+ uses: astral-sh/setup-uv@v7
54
54
  with:
55
55
  version: "latest"
56
56
 
@@ -127,7 +127,7 @@ jobs:
127
127
  ref: ${{ needs.release.outputs.next-tag }}
128
128
 
129
129
  - name: Install the latest version of uv
130
- uses: astral-sh/setup-uv@v6
130
+ uses: astral-sh/setup-uv@v7
131
131
  with:
132
132
  version: "latest"
133
133
 
@@ -162,7 +162,7 @@ jobs:
162
162
  fetch-depth: 0 # Required to push to the documentation branch
163
163
 
164
164
  - name: Install the latest version of uv
165
- uses: astral-sh/setup-uv@v6
165
+ uses: astral-sh/setup-uv@v7
166
166
  with:
167
167
  version: "latest"
168
168
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mkdocstrings-github
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: A GitHub Action handler for mkdocstrings
5
5
  Author-email: Mark Hu <watermarkhu@gmail.com>
6
6
  License: MIT
@@ -14,15 +14,15 @@ Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
15
  Classifier: Programming Language :: Python :: 3.12
16
16
  Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
17
18
  Classifier: Topic :: Documentation
18
19
  Classifier: Topic :: Software Development
19
20
  Classifier: Topic :: Software Development :: Documentation
20
21
  Classifier: Topic :: Utilities
21
22
  Classifier: Typing :: Typed
22
- Requires-Python: <3.14,>=3.10
23
+ Requires-Python: <3.15,>=3.10
23
24
  Requires-Dist: gitpython~=3.1.45
24
25
  Requires-Dist: mkdocstrings~=0.29
25
- Requires-Dist: pygithub~=2.8.1
26
26
  Requires-Dist: typing-extensions>=4.0; python_version < '3.11'
27
27
  Description-Content-Type: text/markdown
28
28
 
@@ -37,6 +37,7 @@ Description-Content-Type: text/markdown
37
37
  [![Qualify](https://github.com/watermarkhu/mkdocstrings-github/actions/workflows/qualify.yaml/badge.svg?branch=main)](https://github.com/watermarkhu/mkdocstrings-github/actions/workflows/qualify.yaml)
38
38
  [![documentation](https://img.shields.io/badge/docs-mkdocs-708FCC.svg?style=flat)](https://watermarkhu.nl/mkdocstrings-github)
39
39
  [![pypi version](https://img.shields.io/pypi/v/mkdocstrings-github.svg)](https://pypi.org/project/mkdocstrings-github/)
40
+ [![codecov](https://codecov.io/github/watermarkhu/mkdocstrings-github/graph/badge.svg?token=M6XW8UeURE)](https://codecov.io/github/watermarkhu/mkdocstrings-github)
40
41
 
41
42
  <!-- --8<-- [end:header] -->
42
43
  <!-- --8<-- [start:install] -->
@@ -9,6 +9,7 @@
9
9
  [![Qualify](https://github.com/watermarkhu/mkdocstrings-github/actions/workflows/qualify.yaml/badge.svg?branch=main)](https://github.com/watermarkhu/mkdocstrings-github/actions/workflows/qualify.yaml)
10
10
  [![documentation](https://img.shields.io/badge/docs-mkdocs-708FCC.svg?style=flat)](https://watermarkhu.nl/mkdocstrings-github)
11
11
  [![pypi version](https://img.shields.io/pypi/v/mkdocstrings-github.svg)](https://pypi.org/project/mkdocstrings-github/)
12
+ [![codecov](https://codecov.io/github/watermarkhu/mkdocstrings-github/graph/badge.svg?token=M6XW8UeURE)](https://codecov.io/github/watermarkhu/mkdocstrings-github)
12
13
 
13
14
  <!-- --8<-- [end:header] -->
14
15
  <!-- --8<-- [start:install] -->
@@ -100,9 +100,6 @@ plugins:
100
100
 
101
101
  Some options are **global only**, and go directly under the handler's name.
102
102
 
103
- ::: mkdocstrings_handlers.github.config.GitHubConfig.hostname
104
- handler: python
105
-
106
103
  ::: mkdocstrings_handlers.github.config.GitHubConfig.repo
107
104
  handler: python
108
105
 
@@ -70,22 +70,21 @@
70
70
 
71
71
  !!! info
72
72
 
73
- To automatically grab the latest `major` or `semver` release, *mkdocstrings-github* needs to access GitHub to get the releases. Authentication is set by either the environment variable `GH_TOKEN`, or via [`.netrc`](https://pygithub.readthedocs.io/en/stable/examples/Authentication.html#netrc-authentication). If both aren't available, a final attempt is made via the GitHub CLI with [`gh auth token`](https://cli.github.com/manual/gh_auth_token).
73
+ To automatically grab the latest `major` or `semver` release, *mkdocstrings-github* uses local git tags matching the patterns `vX` (major) and `vX.Y.Z` (semver). Make sure your repository has appropriate tags if you wish to use these versioning options.
74
74
 
75
- When building your documentation in GitHub Actions, make sure that the build step has the environment variable `GH_TOKEN` set.
75
+ When building your documentation in GitHub Actions, make sure that the checkout will have access to the git tags associated with the action/workflow versions. This is best done by specifying a checkout filter:
76
76
 
77
- ```yaml title="Example build step"
77
+ ```yaml title="Example checkout"
78
+ ...
79
+ - name: checkout
80
+ uses: actions/checkout@v5
81
+ with:
82
+ filter: tree:0
78
83
  ...
79
84
  - name: build step
80
- env:
81
- GH_TOKEN: ${{ github.token }}
82
- run: |
83
- mkdocs build
85
+ run: mkdocs build
84
86
  ```
85
-
86
- !!! info
87
-
88
- For GitHub Enterprise instances, you can set either the [`hostname`][mkdocstrings_handlers.github.config.GitHubConfig.hostname] configuration option or the `GH_HOST` environment variable to your GitHub hostname.
87
+ -
89
88
 
90
89
  ??? preview
91
90
 
@@ -1,13 +1,13 @@
1
1
  [project]
2
2
  name = "mkdocstrings-github"
3
- version = "0.3.0"
3
+ version = "0.4.0"
4
4
  description = "A GitHub Action handler for mkdocstrings"
5
5
  authors = [
6
6
  { name = "Mark Hu", email = "watermarkhu@gmail.com" }
7
7
  ]
8
8
  license = { text = "MIT" }
9
9
  readme = "README.md"
10
- requires-python = ">=3.10, <3.14"
10
+ requires-python = ">=3.10, <3.15"
11
11
  classifiers = [
12
12
  "Development Status :: 4 - Beta",
13
13
  "Intended Audience :: Developers",
@@ -18,6 +18,7 @@ classifiers = [
18
18
  "Programming Language :: Python :: 3.11",
19
19
  "Programming Language :: Python :: 3.12",
20
20
  "Programming Language :: Python :: 3.13",
21
+ "Programming Language :: Python :: 3.14",
21
22
  "Topic :: Documentation",
22
23
  "Topic :: Software Development",
23
24
  "Topic :: Software Development :: Documentation",
@@ -26,7 +27,6 @@ classifiers = [
26
27
  ]
27
28
 
28
29
  dependencies = [
29
- "pygithub~=2.8.1",
30
30
  "gitpython~=3.1.45",
31
31
  "mkdocstrings~=0.29",
32
32
  "typing-extensions>=4.0; python_version < '3.11'",
@@ -37,7 +37,7 @@ dev = [
37
37
  "ty~=0.0.1a19",
38
38
  "ruff~=0.14.0",
39
39
  "prek>=0.2.1",
40
- "pydantic~=2.10",
40
+ "pydantic~=2.12",
41
41
  "pytest~=8.4.1",
42
42
  "pytest-cov~=7.0.0",
43
43
  "beautifulsoup4>=4.13.3",
@@ -54,6 +54,7 @@ docs = [
54
54
  "griffe-pydantic~=1.1.7",
55
55
  ]
56
56
 
57
+
57
58
  [build-system]
58
59
  requires = ["hatchling"]
59
60
  build-backend = "hatchling.build"
@@ -171,11 +171,6 @@ class GitHubOptions(BaseModel):
171
171
  class GitHubConfig(BaseModel):
172
172
  """Configuration options for the GitHub handler."""
173
173
 
174
- hostname: str = Field(
175
- default="github.com",
176
- description="The hostname of the GitHub instance to use. This is only needed for GitHub Enterprise installations.",
177
- )
178
-
179
174
  repo: str = Field(
180
175
  default="",
181
176
  description="""The GitHub repository in the format *owner/repo*.
@@ -4,7 +4,6 @@ from __future__ import annotations
4
4
 
5
5
  import os
6
6
  import re
7
- import subprocess
8
7
  import sys
9
8
  from pathlib import Path
10
9
  from typing import TYPE_CHECKING, Any, ClassVar, Mapping
@@ -18,7 +17,6 @@ from mkdocstrings import (
18
17
  get_logger,
19
18
  )
20
19
 
21
- from github import Auth, Github
22
20
  from mkdocstrings_handlers.github import rendering
23
21
  from mkdocstrings_handlers.github.config import GitHubConfig, GitHubOptions
24
22
  from mkdocstrings_handlers.github.objects import Action, Workflow
@@ -108,82 +106,20 @@ class GitHubHandler(BaseHandler):
108
106
  self.actions[action_file] = action
109
107
 
110
108
  def get_releases(self) -> None:
111
- gh_host = os.environ.get("GH_HOST", self.config.hostname)
112
- if gh_host.startswith(("http://", "https://")):
113
- base_url = gh_host
114
- elif "/api/" in gh_host:
115
- # If protocol is missing, default to https
116
- base_url = f"https://{gh_host}"
117
- elif gh_host.startswith("api."):
118
- base_url = f"https://{gh_host}"
119
- else:
120
- base_url = f"https://api.{gh_host}"
121
-
122
- _logger.debug(f"Using GitHub API base URL: {base_url}")
109
+ # Get all tags from the local git repository
110
+ try:
111
+ tags = [tag.name for tag in self.repo.tags]
112
+ except Exception as e:
113
+ _logger.warning(f"Could not get git tags from repository: {e}")
114
+ return
123
115
 
124
- if (token_key := "GH_TOKEN") in os.environ:
125
- gh = Github(base_url=base_url, auth=Auth.Token(os.environ[token_key]))
126
- _logger.debug(f"Using GitHub authentication from environment variable {token_key}")
127
- elif (token_key := "GITHUB_TOKEN") in os.environ:
128
- gh = Github(base_url=base_url, auth=Auth.Token(os.environ[token_key]))
129
- _logger.debug(f"Using GitHub authentication from environment variable {token_key}")
130
- else:
131
- try:
132
- gh = Github(base_url=base_url, auth=Auth.NetrcAuth())
133
- _logger.debug("Using GitHub authentication from .netrc")
134
- except RuntimeError:
135
- try:
136
- token = subprocess.check_output(
137
- ["gh", "auth", "token"], text=True, env=os.environ
138
- ).strip()
139
- if token:
140
- gh = Github(base_url=base_url, auth=Auth.Token(token))
141
- _logger.debug("Using GitHub authentication from gh cli.")
142
- else:
143
- raise RuntimeError("No token from gh auth token")
144
- except Exception:
145
- _logger.warning(
146
- "Could not authenticate with GitHub to get releases. "
147
- "Consider setting .netrc, environment variable GH_TOKEN, "
148
- "or using GitHub CLI (`gh auth login`) to get GitHub releases.",
149
- )
150
- gh = Github(base_url=base_url)
151
-
152
- # Determine owner and repo name
153
- if "/" in self.config.repo:
154
- owner, repo_name = self.config.repo.split("/", 1)
155
- else:
156
- # Try each remote to find a valid GitHub owner/repo
157
- owner = None
158
- repo_name = None
159
- for remote in self.repo.remotes:
160
- for url in remote.urls:
161
- match = re.search(
162
- r"(?P<host>[\w\.-]+)[/:](?P<owner>[^/]+)/(?P<repo>[^/.]+?)(?:\.git)?$",
163
- url,
164
- )
165
- if match:
166
- owner = match.group("owner")
167
- repo_name = match.group("repo")
168
- break
169
- if owner and repo_name:
170
- break
171
- if not (owner and repo_name):
172
- raise PluginError(
173
- f"Could not determine GitHub repository owner/name from config.repo='{self.config.repo}' or any git remote URL."
174
- )
175
- self.config.repo = f"{owner}/{repo_name}"
176
-
177
- # Get releases
178
- gh_repo = gh.get_repo(f"{owner}/{repo_name}")
179
- releases = list(gh_repo.get_releases())
180
- for release in releases:
181
- tag = release.tag_name
116
+ # Find matching tags
117
+ for tag in tags:
182
118
  if not self.semver and SEMVER_PATTERN.match(tag):
183
- _logger.info(f"Using GitHub release tag '{tag}' for semver.")
119
+ _logger.info(f"Using git tag '{tag}' for semver.")
184
120
  self.semver = tag
185
121
  if not self.major and MAJOR_PATTERN.match(tag):
186
- _logger.info(f"Using GitHub release tag '{tag}' for major.")
122
+ _logger.info(f"Using git tag '{tag}' for major.")
187
123
  self.major = tag
188
124
  if self.semver and self.major:
189
125
  break
@@ -196,8 +132,8 @@ class GitHubHandler(BaseHandler):
196
132
  else: # not self.major
197
133
  messages = ("'vX'", "'major'")
198
134
  _logger.warning(
199
- f"Could not find suitable GitHub releases for repo '{self.config.repo}'. "
200
- f"Make sure there are releases with tags matching {messages[0]}, "
135
+ f"Could not find suitable git tags in repository. "
136
+ f"Make sure there are tags matching {messages[0]}, "
201
137
  f"if you wish to use option signature_version {messages[1]}.",
202
138
  )
203
139