Skip to content

Commit

Permalink
refactor: Use more explicit template debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Feb 13, 2022
1 parent b91f15b commit f2122d7
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ log.debug() }}
{{ log.debug("Rendering " + attribute.path) }}
{% if config.show_if_no_docstring or attribute.has_docstrings %}

<div class="doc doc-object doc-attribute">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ log.debug() }}
{{ log.debug("Rendering children of " + obj.path) }}
{% if obj.members %}

<div class="doc doc-children">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ log.debug() }}
{{ log.debug("Rendering " + class.path) }}
{% if config.show_if_no_docstring or class.has_docstrings %}

<div class="doc doc-object doc-class">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ log.debug() }}
{{ log.debug("Rendering docstring") }}
{% if docstring_sections %}
{% for section in docstring_sections %}
{% if section.kind.value == "text" %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ log.debug() }}
{{ log.debug("Rendering admonition") }}
<details class="{{ section.value.kind }}">
<summary>{{ section.title|convert_markdown(heading_level, html_id, strip_paragraph=True) }}</summary>
{{ section.value.contents|convert_markdown(heading_level, html_id) }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ log.debug() }}
{{ log.debug("Rendering attributes section") }}
{% if config.docstring_section_style == "table" %}
<p><strong>{{ section.title or "Attributes:" }}</strong></p>
<table>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ log.debug() }}
{{ log.debug("Rendering examples section") }}
<p><strong>{{ section.title or "Examples:" }}</strong></p>
{% for section_type, sub_section in section.value %}
{% if section_type == "markdown" %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ log.debug() }}
{{ log.debug("Rendering other parameters section") }}
{% if config.docstring_section_style == "table" %}
<p><strong>{{ section.title or "Other Parameters:" }}</strong></p>
<table>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ log.debug() }}
{{ log.debug("Rendering parameters section") }}
{% if config.docstring_section_style == "table" %}
<p><strong>{{ section.title or "Parameters:" }}</strong></p>
<table>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ log.debug() }}
{{ log.debug("Rendering raises section") }}
{% if config.docstring_section_style == "table" %}
<p><strong>{{ section.title or "Raises:" }}</strong></p>
<table>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ log.debug() }}
{{ log.debug("Rendering receives section") }}
{% if config.docstring_section_style == "table" %}
{% set name_column = section.value|selectattr("name")|any %}
<p><strong>{{ section.title or "Receives:" }}</strong></p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ log.debug() }}
{{ log.debug("Rendering returns section") }}
{% if config.docstring_section_style == "table" %}
{% set name_column = section.value|selectattr("name")|any %}
<p><strong>{{ section.title or "Returns:" }}</strong></p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ log.debug() }}
{{ log.debug("Rendering warns section") }}
{% if config.docstring_section_style == "table" %}
<p><strong>{{ section.title or "Warns:" }}</strong></p>
<table>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ log.debug() }}
{{ log.debug("Rendering yields section") }}
{% if config.docstring_section_style == "table" %}
{% set name_column = section.value|selectattr("name")|any %}
<p><strong>{{ section.title or "Yields:" }}</strong></p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ log.debug() }}
{{ log.debug("Rendering " + function.path) }}
{% if config.show_if_no_docstring or function.has_docstrings %}

<div class="doc doc-object doc-function">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ log.debug() }}
{{ log.debug("Rendering " + module.path) }}
{% if config.show_if_no_docstring or module.has_docstrings %}

<div class="doc doc-object doc-module">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ log.debug() }}
{{ log.debug("Rendering signature of " + function.path) }}
{%- if config.show_signature -%}
{%- with -%}

Expand Down

0 comments on commit f2122d7

Please sign in to comment.