mkdocstrings-github 0.6.1__py3-none-any.whl → 0.6.2__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.
- {mkdocstrings_github-0.6.1.dist-info → mkdocstrings_github-0.6.2.dist-info}/METADATA +2 -2
- {mkdocstrings_github-0.6.1.dist-info → mkdocstrings_github-0.6.2.dist-info}/RECORD +5 -5
- {mkdocstrings_github-0.6.1.dist-info → mkdocstrings_github-0.6.2.dist-info}/WHEEL +1 -1
- mkdocstrings_handlers/github/handler.py +8 -2
- {mkdocstrings_github-0.6.1.dist-info → mkdocstrings_github-0.6.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mkdocstrings-github
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.2
|
|
4
4
|
Summary: A GitHub Action handler for mkdocstrings
|
|
5
5
|
Author-email: Mark Hu <watermarkhu@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -22,7 +22,7 @@ Classifier: Topic :: Utilities
|
|
|
22
22
|
Classifier: Typing :: Typed
|
|
23
23
|
Requires-Python: <3.15,>=3.10
|
|
24
24
|
Requires-Dist: gitpython<4,>=3.1.45
|
|
25
|
-
Requires-Dist: mkdocstrings<1
|
|
25
|
+
Requires-Dist: mkdocstrings<2,>=1
|
|
26
26
|
Requires-Dist: ruamel-yaml<1,>=0.18.16
|
|
27
27
|
Requires-Dist: typing-extensions>=4.0; python_version < '3.11'
|
|
28
28
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
mkdocstrings_handlers/github/__init__.py,sha256=0WdFUIq4Xu2ZFtlZNIYCQSoqcx3Ot9Wv41_X_dwbFww,248
|
|
2
2
|
mkdocstrings_handlers/github/config.py,sha256=r7efiI-vKbVEeD6utrc55h4RP6VIlabqDebhiIIx_ZA,7120
|
|
3
|
-
mkdocstrings_handlers/github/handler.py,sha256=
|
|
3
|
+
mkdocstrings_handlers/github/handler.py,sha256=4El8kAupC4np2lwzvvMHi9AyHzeT4D6f8eUJO0RfKxY,8781
|
|
4
4
|
mkdocstrings_handlers/github/objects.py,sha256=v1GchB9fzqasnXbVEOXoDzOR2iVTwcfPQ9mFT4sdjgs,7625
|
|
5
5
|
mkdocstrings_handlers/github/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
mkdocstrings_handlers/github/rendering.py,sha256=pFk621Fqp_R6ZS2dJ0zwEEez0Urqpekial6kqKYDag8,3371
|
|
@@ -12,7 +12,7 @@ mkdocstrings_handlers/github/templates/material/outputs.html.jinja,sha256=Z9QD1K
|
|
|
12
12
|
mkdocstrings_handlers/github/templates/material/secrets.html.jinja,sha256=jQ_HaG2ivbZTH74pyV4BAFGQu5Vn03kA_vaEbTSABds,2839
|
|
13
13
|
mkdocstrings_handlers/github/templates/material/style.css,sha256=Nfmds-xHtPJ_IzOv5svA7ih5talHDTiQryN_n0DGdZs,1553
|
|
14
14
|
mkdocstrings_handlers/github/templates/material/workflow.html.jinja,sha256=5dLdHRSQyulyFAVCVZAR_pkw-WXxCtM20cj6RS7IH1Q,4206
|
|
15
|
-
mkdocstrings_github-0.6.
|
|
16
|
-
mkdocstrings_github-0.6.
|
|
17
|
-
mkdocstrings_github-0.6.
|
|
18
|
-
mkdocstrings_github-0.6.
|
|
15
|
+
mkdocstrings_github-0.6.2.dist-info/METADATA,sha256=-q58ad0sFPB7UkECg2UhNPKaCDRnYSU34mqQOlmIrLc,4052
|
|
16
|
+
mkdocstrings_github-0.6.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
17
|
+
mkdocstrings_github-0.6.2.dist-info/licenses/LICENSE,sha256=5enZtJ4zSp0Ps3jTqFQ4kadcx62BhgTaDNPrXWb3g3E,1069
|
|
18
|
+
mkdocstrings_github-0.6.2.dist-info/RECORD,,
|
|
@@ -179,7 +179,10 @@ class GitHubHandler(BaseHandler):
|
|
|
179
179
|
self.env.globals["repository_name"] = self.get_repository_name()
|
|
180
180
|
|
|
181
181
|
def collect(self, identifier: str, options: GitHubOptions) -> Workflow | Action | None:
|
|
182
|
-
|
|
182
|
+
working_tree_dir = self.repo.working_tree_dir
|
|
183
|
+
if working_tree_dir is None:
|
|
184
|
+
raise CollectionError("Repository working tree directory is not available.")
|
|
185
|
+
path = Path(working_tree_dir) / identifier
|
|
183
186
|
|
|
184
187
|
if path.suffix in (".yml", ".yaml"):
|
|
185
188
|
if not path.is_file():
|
|
@@ -199,12 +202,15 @@ class GitHubHandler(BaseHandler):
|
|
|
199
202
|
)
|
|
200
203
|
return data
|
|
201
204
|
|
|
202
|
-
def render(
|
|
205
|
+
def render(
|
|
206
|
+
self, data: Workflow | Action, options: GitHubOptions, *, locale: str | None = None
|
|
207
|
+
) -> str:
|
|
203
208
|
"""Render a template using provided data and configuration options.
|
|
204
209
|
|
|
205
210
|
Arguments:
|
|
206
211
|
data: The collected data to render.
|
|
207
212
|
options: The handler's configuration options.
|
|
213
|
+
locale: The locale to use for rendering (unused in this handler).
|
|
208
214
|
|
|
209
215
|
Returns:
|
|
210
216
|
The rendered template as HTML.
|
{mkdocstrings_github-0.6.1.dist-info → mkdocstrings_github-0.6.2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|