From fa17ab3e15d98660ccdd505fb051ca7fa834791d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 22 Oct 2024 18:33:39 +0200 Subject: Adding upstream version 0.47+dfsg. Signed-off-by: Daniel Baumann --- docs/theme/Autodoc.jinja | 127 ------------------------------------------- docs/theme/Callout.jinja | 45 --------------- docs/theme/ExampleTabs.jinja | 27 --------- docs/theme/Footer.jinja | 10 ---- docs/theme/Header.jinja | 17 ------ docs/theme/Layout.jinja | 25 --------- docs/theme/MetaTags.jinja | 22 -------- docs/theme/NavBar.jinja | 3 - docs/theme/NavGlobal.jinja | 3 - docs/theme/NavLocal.jinja | 5 -- docs/theme/NavMobile.jinja | 18 ------ docs/theme/NavTop.jinja | 17 ------ docs/theme/Page.jinja | 19 ------- docs/theme/PageSingle.jinja | 10 ---- docs/theme/PrevNext.jinja | 26 --------- docs/theme/SocialCard.jinja | 61 --------------------- docs/theme/Source.jinja | 24 -------- docs/theme/Source.js | 123 ----------------------------------------- docs/theme/Test.jinja | 6 -- docs/theme/ThemeSwitch.jinja | 36 ------------ docs/theme/ThemeSwitch.js | 41 -------------- docs/theme/Toc.jinja | 45 --------------- docs/theme/TocPage.jinja | 21 ------- docs/theme/TocPage.js | 97 --------------------------------- 24 files changed, 828 deletions(-) delete mode 100644 docs/theme/Autodoc.jinja delete mode 100644 docs/theme/Callout.jinja delete mode 100644 docs/theme/ExampleTabs.jinja delete mode 100644 docs/theme/Footer.jinja delete mode 100644 docs/theme/Header.jinja delete mode 100644 docs/theme/Layout.jinja delete mode 100644 docs/theme/MetaTags.jinja delete mode 100644 docs/theme/NavBar.jinja delete mode 100644 docs/theme/NavGlobal.jinja delete mode 100644 docs/theme/NavLocal.jinja delete mode 100644 docs/theme/NavMobile.jinja delete mode 100644 docs/theme/NavTop.jinja delete mode 100644 docs/theme/Page.jinja delete mode 100644 docs/theme/PageSingle.jinja delete mode 100644 docs/theme/PrevNext.jinja delete mode 100644 docs/theme/SocialCard.jinja delete mode 100644 docs/theme/Source.jinja delete mode 100644 docs/theme/Source.js delete mode 100644 docs/theme/Test.jinja delete mode 100644 docs/theme/ThemeSwitch.jinja delete mode 100644 docs/theme/ThemeSwitch.js delete mode 100644 docs/theme/Toc.jinja delete mode 100644 docs/theme/TocPage.jinja delete mode 100644 docs/theme/TocPage.js (limited to 'docs/theme') diff --git a/docs/theme/Autodoc.jinja b/docs/theme/Autodoc.jinja deleted file mode 100644 index e1a967c..0000000 --- a/docs/theme/Autodoc.jinja +++ /dev/null @@ -1,127 +0,0 @@ -{#def - obj: dict | None = None, - name: str = "", - level: int = 2, - members: bool = True, -#} - -{% set obj = obj or autodoc(name) %} - - - {{ obj.symbol }} - {{ name or obj.name }} - {% if obj.label -%} - - {{ obj.label }} - - {%- endif %} - - -{%- if obj.short_description -%} -
- {{ obj.short_description | markdown | utils.widont }} -
-{% endif -%} - -{%- if obj.signature -%} -
-{% filter markdown -%} -```python -{{ obj.signature }} -``` -{%- endfilter %} -
-{%- endif %} - -{% if obj.bases -%} -
-

Bases: - {%- for base in obj.bases %} {{ base }}{% if not loop.last %}, {% endif %} - {%- endfor %} -

-
-{%- endif %} - -{% if obj.params -%} - - - - -{%- for param in obj.params %} - - - - -{%- endfor %} - -
ArgumentDescription
{{ param.name }}{{ param.description | markdown | utils.widont }}
-{%- endif %} - -{%- if obj.description -%} -
- {{ obj.description | markdown | utils.widont }} -
-{% endif -%} - -{% if obj.examples -%} -
-

Example:

- -{% for ex in obj.examples -%} -
-{% if ex.description %}{{ ex.description | markdown | utils.widont }}{% endif %} -{% if ex.snippet %}{{ ex.snippet }}{% endif %} -
-{% endfor -%} -
-{%- endif %} - -{% if obj.returns -%} -
  • -

    Returns:

    - - {% if ex.returns -%} -

    {{ obj.returns }}

    - {%- endif %} - {% if ex.many_returns -%} -
      - {% for return in ex.many_returns %} -
    • {{ return }}
    • - {%- endfor %} -
    - {%- endif %} -
  • -{%- endif %} - -{% if obj.raises -%} -
    -

    Raises:

    - -
      - {% for raises in obj.raises -%} -
    • {{ raises.description | markdown | utils.widont }}
        - {% endfor -%} -
      -
    • -{%- endif %} - -{% if members -%} - {% if obj.attrs or obj.properties-%} -
      - {% for attr in obj.attrs -%} - - {% endfor %} - {% for attr in obj.properties %} - - {%- endfor %} -
      - {%- endif %} - - {% if obj.methods -%} -
      - {% for method in obj.methods %} - - {%- endfor %} -
      - {%- endif %} -{%- endif %} \ No newline at end of file diff --git a/docs/theme/Callout.jinja b/docs/theme/Callout.jinja deleted file mode 100644 index 4279b3a..0000000 --- a/docs/theme/Callout.jinja +++ /dev/null @@ -1,45 +0,0 @@ -{#def title="", type="info", icon="", open=True #} - -{% set icons = { - "note": "sticky_note", - "info": "info", - "tip": "check_circle", - "alert": "release_alert", - "warning": "warning", - "danger": "release_alert", - "error": "release_alert", - "internal": "rocket_launch", - "todo": "checklist", -} %} - -{% if icon != False %} - {% set icon = icon or icons.get(type) %} -{% endif %} - -{% do attrs.set(class="type-" + type or "none") %} - -{% if title -%} - -
      - - {% if icon -%} - {{ icon }} - {% endif -%} - {{ title }} - keyboard_arrow_down - -
      {{content}}
      -
      - -{%- else -%} - - - -{%- endif %} diff --git a/docs/theme/ExampleTabs.jinja b/docs/theme/ExampleTabs.jinja deleted file mode 100644 index 0853ec5..0000000 --- a/docs/theme/ExampleTabs.jinja +++ /dev/null @@ -1,27 +0,0 @@ -{#def prefix, panels={} #} - -
      - - - {%- for text in panels.keys() %} - {{ text }} - {%- endfor %} - - {%- for name in panels.values() %} - - {%- endfor %} - -
      diff --git a/docs/theme/Footer.jinja b/docs/theme/Footer.jinja deleted file mode 100644 index a9e9c5a..0000000 --- a/docs/theme/Footer.jinja +++ /dev/null @@ -1,10 +0,0 @@ - diff --git a/docs/theme/Header.jinja b/docs/theme/Header.jinja deleted file mode 100644 index 1b719cf..0000000 --- a/docs/theme/Header.jinja +++ /dev/null @@ -1,17 +0,0 @@ -{#def title="", section="" #} - -{% set section = section or page.section if section != false else None %} -{% set title = title or page.title %} - -
      -
      - {% if section -%} -
      {{ section }}
      - {%- endif %} -

      {{ title | utils.widont }}

      -
      -

      {{ content | utils.widont }}

      -
      diff --git a/docs/theme/Layout.jinja b/docs/theme/Layout.jinja deleted file mode 100644 index e76046f..0000000 --- a/docs/theme/Layout.jinja +++ /dev/null @@ -1,25 +0,0 @@ -{#def title="", description="" #} - - - - - - - - - - - -{{ catalog.render_assets() }} -{% if page.prev_page and page.prev_page.url -%} - -{% endif -%} -{% if page.next_page and page.next_page.url -%} - -{% endif -%} - - - -{{ content }} - - diff --git a/docs/theme/MetaTags.jinja b/docs/theme/MetaTags.jinja deleted file mode 100644 index 2639afb..0000000 --- a/docs/theme/MetaTags.jinja +++ /dev/null @@ -1,22 +0,0 @@ -{#def page #} - -{% set DEFAULT_TITLE = "JinjaX Documentation" %} -{% set title = (page.title + " | " + DEFAULT_TITLE) if page.title else DEFAULT_TITLE %} -{% set description = page.description %} - -{{ title }} - - - - - -{% if description -%} - - -{%- endif %} - - - - - - diff --git a/docs/theme/NavBar.jinja b/docs/theme/NavBar.jinja deleted file mode 100644 index 50f8ca2..0000000 --- a/docs/theme/NavBar.jinja +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/docs/theme/NavGlobal.jinja b/docs/theme/NavGlobal.jinja deleted file mode 100644 index 1171db0..0000000 --- a/docs/theme/NavGlobal.jinja +++ /dev/null @@ -1,3 +0,0 @@ -
      - -
      diff --git a/docs/theme/NavLocal.jinja b/docs/theme/NavLocal.jinja deleted file mode 100644 index 2af7606..0000000 --- a/docs/theme/NavLocal.jinja +++ /dev/null @@ -1,5 +0,0 @@ -
      -
      - -
      -
      diff --git a/docs/theme/NavMobile.jinja b/docs/theme/NavMobile.jinja deleted file mode 100644 index 4126fb0..0000000 --- a/docs/theme/NavMobile.jinja +++ /dev/null @@ -1,18 +0,0 @@ -{% do attrs.set(id="navMobile", class="cd-nav-mobile", data_component="NavMobile") %} - - -
      -
      - - -
      diff --git a/docs/theme/NavTop.jinja b/docs/theme/NavTop.jinja deleted file mode 100644 index 8518391..0000000 --- a/docs/theme/NavTop.jinja +++ /dev/null @@ -1,17 +0,0 @@ -
      -
      -
      -
      diff --git a/docs/theme/Page.jinja b/docs/theme/Page.jinja deleted file mode 100644 index 8fec014..0000000 --- a/docs/theme/Page.jinja +++ /dev/null @@ -1,19 +0,0 @@ - - -
      - -
      {{ content }}
      - -
      - - -
      -
      diff --git a/docs/theme/PageSingle.jinja b/docs/theme/PageSingle.jinja deleted file mode 100644 index d89fd49..0000000 --- a/docs/theme/PageSingle.jinja +++ /dev/null @@ -1,10 +0,0 @@ - - -
      {{ content }}
      - -