(app, docname, source)
| 330 | |
| 331 | # Handling for HuggingFace Hub jinja templates |
| 332 | def handle_jinja_templates(app, docname, source): |
| 333 | if "huggingface_hub/templates" in docname: |
| 334 | # Replace Jinja templates with quoted strings |
| 335 | source[0] = re.sub(r"(\{\{.*?\}\})", r'"\1"', source[0]) |
| 336 | |
| 337 | |
| 338 | # The name of the Pygments (syntax highlighting) style to use. |
nothing calls this directly
no outgoing calls
no test coverage detected