mirror of
https://github.com/django-components/django-components.git
synced 2025-08-31 19:27:19 +00:00
Deployed 8cd4b03
to dev with MkDocs 1.6.1 and mike 2.1.3
This commit is contained in:
parent
e29034ce6a
commit
d31968a8e2
9 changed files with 110 additions and 121 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -593,30 +593,19 @@ def _format_tag_signature(tag_spec: TagSpec) -> str:
|
|||
{% endcomponent %}
|
||||
```
|
||||
"""
|
||||
params: List[str] = [tag_spec.tag]
|
||||
|
||||
if tag_spec.positional_only_args:
|
||||
params.extend([*tag_spec.positional_only_args, "/"])
|
||||
|
||||
optional_kwargs = set(tag_spec.optional_kwargs or [])
|
||||
|
||||
params.extend([f"{name}=None" if name in optional_kwargs else name for name in tag_spec.pos_or_keyword_args or []])
|
||||
|
||||
if tag_spec.positional_args_allow_extra:
|
||||
params.append("[arg, ...]")
|
||||
|
||||
if tag_spec.keywordonly_args is True:
|
||||
params.append("**kwargs")
|
||||
elif tag_spec.keywordonly_args:
|
||||
params.extend(
|
||||
[f"{name}=None" if name in optional_kwargs else name for name in (tag_spec.keywordonly_args or [])]
|
||||
)
|
||||
# The signature returns a string like:
|
||||
# `(arg: Any, **kwargs: Any) -> None`
|
||||
params_str = str(tag_spec.signature)
|
||||
# Remove the return type annotation, the `-> None` part
|
||||
params_str = params_str.rsplit("->", 1)[0]
|
||||
# Remove brackets around the params, to end up only with `arg: Any, **kwargs: Any`
|
||||
params_str = params_str.strip()[1:-1]
|
||||
|
||||
if tag_spec.flags:
|
||||
params.extend([f"[{name}]" for name in tag_spec.flags])
|
||||
params_str += " " + " ".join([f"[{name}]" for name in tag_spec.flags])
|
||||
|
||||
# Create the function signature
|
||||
full_tag = f"{{% {' '.join(params)} %}}"
|
||||
full_tag = "{% " + tag_spec.tag + " " + params_str + " %}"
|
||||
if tag_spec.end_tag:
|
||||
full_tag += f"\n{{% {tag_spec.end_tag} %}}"
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
106
dev/sitemap.xml
106
dev/sitemap.xml
|
@ -2,214 +2,214 @@
|
|||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/SUMMARY/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/migrating_from_safer_staticfiles/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/release_notes/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/advanced/authoring_component_libraries/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/advanced/component_registry/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/advanced/hooks/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/advanced/html_tragments/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/advanced/provide_inject/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/advanced/rendering_js_css/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/advanced/tag_formatter/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/advanced/typing_and_validation/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/access_component_input/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/autodiscovery/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/component_context_scope/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/components_as_views/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/components_in_python/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/defining_js_css_html_files/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/html_attributes/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/single_file_components/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/slots/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/subclassing_components/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/template_tag_syntax/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/getting_started/adding_js_and_css/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/getting_started/adding_slots/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/getting_started/components_in_templates/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/getting_started/parametrising_components/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/getting_started/your_first_component/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/guides/devguides/dependency_mgmt/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/guides/devguides/slot_rendering/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/guides/devguides/slots_and_blocks/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/guides/setup/dev_server_setup/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/guides/setup/logging_and_debugging/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/guides/setup/syntax_highlight/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/code_of_conduct/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/community/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/compatibility/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/contributing/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/development/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/installation/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/license/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/security_notes/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/welcome/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/api/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/commands/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/components/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/exceptions/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/middlewares/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/settings/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/tag_formatters/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/template_tags/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/template_vars/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/urls/</loc>
|
||||
<lastmod>2025-01-09</lastmod>
|
||||
<lastmod>2025-01-14</lastmod>
|
||||
</url>
|
||||
</urlset>
|
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
[
|
||||
{
|
||||
"version": "dev",
|
||||
"title": "dev (ba0f9e6)",
|
||||
"title": "dev (8cd4b03)",
|
||||
"aliases": []
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue