| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,10 +33,13 @@ Context: | |||
| 33 | 33 | ||
| 34 | 34 | {% set attribute_name = attribute.path if show_full_path else attribute.name %} | |
| 35 | 35 | ||
| 36 | + {% set object_type = "data" if attribute.parent.is_module else "property" if "property" in attribute.labels else "attribute" %} | ||
| 37 | + {#- Object type in objects inventory. -#} | ||
| 38 | + | ||
| 36 | 39 | {% if not root or config.show_root_heading %} | |
| 37 | 40 | {% filter heading( | |
| 38 | 41 | heading_level, | |
| 39 | - role=("data" if attribute.parent.kind.value == "module" else "attr"), | ||
| 42 | + role=object_type, | ||
| 40 | 43 | id=html_id, | |
| 41 | 44 | class="doc doc-heading", | |
| 42 | 45 | toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-attribute"></code> '|safe if config.show_symbol_type_toc else '') + (config.toc_label if config.toc_label and root else attribute.name), | |
@@ -89,7 +92,7 @@ Context: | |||
| 89 | 92 | ||
| 90 | 93 | {% if config.show_root_toc_entry %} | |
| 91 | 94 | {% filter heading(heading_level, | |
| 92 | - role=("data" if attribute.parent.kind.value == "module" else "attr"), | ||
| 95 | + role=object_type, | ||
| 93 | 96 | id=html_id, | |
| 94 | 97 | toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-attribute"></code> '|safe if config.show_symbol_type_toc else '') + (config.toc_label if config.toc_label and root else attribute_name), | |
| 95 | 98 | hidden=True, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -158,7 +158,7 @@ Context: | |||
| 158 | 158 | ||
| 159 | 159 | {% block inheritance_diagram scoped %} | |
| 160 | 160 | {#- Inheritance diagram block. | |
| 161 | - | ||
| 161 | + | ||
| 162 | 162 | This block renders the inheritance diagram for the class, | |
| 163 | 163 | using Mermaid syntax and a bit of JavaScript to make the nodes clickable, | |
| 164 | 164 | linking to the corresponding class documentation. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,7 +38,7 @@ Context: | |||
| 38 | 38 | {% if config.parameter_headings %} | |
| 39 | 39 | {% filter heading( | |
| 40 | 40 | heading_level + 1, | |
| 41 | - role="param", | ||
| 41 | + role="parameter", | ||
| 42 | 42 | id=html_id ~ "(" ~ parameter.name ~ ")", | |
| 43 | 43 | class="doc doc-heading doc-heading-parameter", | |
| 44 | 44 | toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-parameter"></code> '|safe if config.show_symbol_type_toc else '') + parameter.name, | |
@@ -86,7 +86,7 @@ Context: | |||
| 86 | 86 | {% if config.parameter_headings %} | |
| 87 | 87 | {% filter heading( | |
| 88 | 88 | heading_level + 1, | |
| 89 | - role="param", | ||
| 89 | + role="parameter", | ||
| 90 | 90 | id=html_id ~ "(" ~ parameter.name ~ ")", | |
| 91 | 91 | class="doc doc-heading doc-heading-parameter", | |
| 92 | 92 | toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-parameter"></code> '|safe if config.show_symbol_type_toc else '') + parameter.name, | |
@@ -132,7 +132,7 @@ Context: | |||
| 132 | 132 | {% if config.parameter_headings %} | |
| 133 | 133 | {% filter heading( | |
| 134 | 134 | heading_level + 1, | |
| 135 | - role="param", | ||
| 135 | + role="parameter", | ||
| 136 | 136 | id=html_id ~ "(" ~ parameter.name ~ ")", | |
| 137 | 137 | class="doc doc-heading doc-heading-parameter", | |
| 138 | 138 | toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-parameter"></code> '|safe if config.show_symbol_type_toc else '') + parameter.name, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,7 +42,7 @@ Context: | |||
| 42 | 42 | {% if config.type_parameter_headings %} | |
| 43 | 43 | {% filter heading( | |
| 44 | 44 | heading_level + 1, | |
| 45 | - role="typeparam", | ||
| 45 | + role="typeparameter", | ||
| 46 | 46 | id=obj.path ~ "[" ~ type_parameter.name ~ "]", | |
| 47 | 47 | class="doc doc-heading doc-heading-type_parameter", | |
| 48 | 48 | toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-type_parameter"></code> '|safe if config.show_symbol_type_toc else '') + type_parameter.name, | |
@@ -93,7 +93,7 @@ Context: | |||
| 93 | 93 | {% if config.type_parameter_headings %} | |
| 94 | 94 | {% filter heading( | |
| 95 | 95 | heading_level + 1, | |
| 96 | - role="typeparam", | ||
| 96 | + role="typeparameter", | ||
| 97 | 97 | id=obj.path ~ "[" ~ type_parameter.name ~ "]", | |
| 98 | 98 | class="doc doc-heading doc-heading-type_parameter", | |
| 99 | 99 | toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-type_parameter"></code> '|safe if config.show_symbol_type_toc else '') + type_parameter.name, | |
@@ -156,7 +156,7 @@ Context: | |||
| 156 | 156 | {% if config.type_parameter_headings %} | |
| 157 | 157 | {% filter heading( | |
| 158 | 158 | heading_level + 1, | |
| 159 | - role="typeparam", | ||
| 159 | + role="typeparameter", | ||
| 160 | 160 | id=obj.path ~ "[" ~ type_parameter.name ~ "]", | |
| 161 | 161 | class="doc doc-heading doc-heading-type_parameter", | |
| 162 | 162 | toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-type_parameter"></code> '|safe if config.show_symbol_type_toc else '') + type_parameter.name, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,11 +37,13 @@ Context: | |||
| 37 | 37 | {#- Brief or full function name depending on configuration. -#} | |
| 38 | 38 | {% set symbol_type = "method" if function.parent.is_class else "function" %} | |
| 39 | 39 | {#- Symbol type: method when parent is a class, function otherwise. -#} | |
| 40 | + {% set object_type = symbol_type %} | ||
| 41 | + {#- Object type in objects inventory. -#} | ||
| 40 | 42 | ||
| 41 | 43 | {% if not root or config.show_root_heading %} | |
| 42 | 44 | {% filter heading( | |
| 43 | 45 | heading_level, | |
| 44 | - role="function", | ||
| 46 | + role=object_type, | ||
| 45 | 47 | id=html_id, | |
| 46 | 48 | class="doc doc-heading", | |
| 47 | 49 | toc_label=(('<code class="doc-symbol doc-symbol-toc doc-symbol-' + symbol_type + '"></code> ')|safe if config.show_symbol_type_toc else '') + (config.toc_label if config.toc_label and root else function.name), | |
@@ -106,7 +108,7 @@ Context: | |||
| 106 | 108 | {% if config.show_root_toc_entry %} | |
| 107 | 109 | {% filter heading( | |
| 108 | 110 | heading_level, | |
| 109 | - role="function", | ||
| 111 | + role=object_type, | ||
| 110 | 112 | id=html_id, | |
| 111 | 113 | toc_label=(('<code class="doc-symbol doc-symbol-toc doc-symbol-' + symbol_type + '"></code> ')|safe if config.show_symbol_type_toc else '') + (config.toc_label if config.toc_label and root else function.name), | |
| 112 | 114 | hidden=True, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,7 +35,7 @@ Context: | |||
| 35 | 35 | {% if not root or config.show_root_heading %} | |
| 36 | 36 | {% filter heading( | |
| 37 | 37 | heading_level, | |
| 38 | - role="typealias", | ||
| 38 | + role="type", | ||
| 39 | 39 | id=html_id, | |
| 40 | 40 | class="doc doc-heading", | |
| 41 | 41 | toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-type_alias"></code> '|safe if config.show_symbol_type_toc else '') + type_alias.name, | |
@@ -83,7 +83,7 @@ Context: | |||
| 83 | 83 | {% else %} | |
| 84 | 84 | {% if config.show_root_toc_entry %} | |
| 85 | 85 | {% filter heading(heading_level, | |
| 86 | - role="typealias", | ||
| 86 | + role="type", | ||
| 87 | 87 | id=html_id, | |
| 88 | 88 | toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-type_alias"></code> '|safe if config.show_symbol_type_toc else '') + type_alias.name, | |
| 89 | 89 | hidden=True, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments