-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add initial support for the ReadTheDocs theme
- Loading branch information
Showing
7 changed files
with
158 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/mkdocstrings/templates/python/readthedocs/exceptions.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{ log.debug() }} | ||
<table class="field-list"> | ||
<colgroup> | ||
<col class="field-name" /> | ||
<col class="field-body" /> | ||
</colgroup> | ||
<tbody valign="top"> | ||
<tr class="field"> | ||
<th class="field-name">Exceptions:</th> | ||
<td class="field-body"> | ||
<ul class="first simple"> | ||
{% for exception in exceptions %} | ||
<li>{{ ("`" + exception.annotation + "` – " + exception.description)|convert_markdown }}</li> | ||
{% endfor %} | ||
</ul> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> |
19 changes: 19 additions & 0 deletions
19
src/mkdocstrings/templates/python/readthedocs/parameters.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{ log.debug() }} | ||
<table class="field-list"> | ||
<colgroup> | ||
<col class="field-name" /> | ||
<col class="field-body" /> | ||
</colgroup> | ||
<tbody valign="top"> | ||
<tr class="field"> | ||
<th class="field-name">Parameters:</th> | ||
<td class="field-body"> | ||
<ul class="first simple"> | ||
{% for parameter in parameters %} | ||
<li>{{ ("**" + parameter.name + "** (`" + parameter.annotation + "`) – " + parameter.description)|convert_markdown }}</li> | ||
{% endfor %} | ||
</ul> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{ log.debug() }} | ||
<table class="field-list"> | ||
<colgroup> | ||
<col class="field-name" /> | ||
<col class="field-body" /> | ||
</colgroup> | ||
<tbody valign="top"> | ||
<tr class="field"> | ||
<th class="field-name">Returns:</th> | ||
<td class="field-body"> | ||
<ul class="first simple"> | ||
<li>{{ ("`" + return.annotation + "` – " + return.description)|convert_markdown }}</li> | ||
</ul> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> |