Skip to content

Commit 5d3aa26

Browse files
committed
update main docs as well
1 parent 9912628 commit 5d3aa26

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ instance/
7474
/doc
7575
/docusaurus
7676

77+
*.DS_Store
78+
7779
# PyBuilder
7880
.pybuilder/
7981
target/

templates/doc/module.html.jinja2

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,11 @@ See https://pdoc.dev/docs/pdoc/render_helpers.html#DefaultMacroExtension for an
209209
{% enddefaultmacro %}
210210
{% defaultmacro docstring(var) %}
211211
{% if var.docstring %}
212-
<div class="docstring">{{ var.docstring | to_markdown | to_html | linkify(namespace=var.qualname) }}</div>
212+
{% set processed_docstring = var.docstring
213+
| replace('\n ', '\n ')
214+
| replace('\n ', '\n- ')
215+
%}
216+
<div class="docstring">{{ processed_docstring | to_markdown | to_html | linkify(namespace=var.qualname) }}</div>
213217
{% endif %}
214218
{% enddefaultmacro %}
215219
{% defaultmacro nav_members(members) %}

0 commit comments

Comments
 (0)