Skip to content

Commit 9912628

Browse files
committed
fix RoomConfig attributes display in docs
1 parent 04bbea6 commit 9912628

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

templates/docusaurus/module.html.jinja2

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55

66
{% block module_info %}
77
{% if module.docstring and ".. include::" not in module.docstring %}
8-
{{ module.docstring | safe }}
8+
{{ module.docstring
9+
| replace('\n ', '\n ')
10+
| replace('\n ', '\n- ')
11+
| safe
12+
}}
913
{% endif %}
1014
{% endblock %}
1115

@@ -89,7 +93,11 @@ class {{ cls.qualname }}{{ class_bases(cls) }}:
8993
```python
9094
{% if doc.kind == "class" %}{{ class(doc) }}{% elif doc.kind == "function" %}{{ function(doc) }}{% else %}{{ variable(doc) }}{% endif %}
9195
```
92-
{{ doc.docstring | safe }}
96+
{{ doc.docstring
97+
| replace('\n ', '\n ')
98+
| replace('\n ', '\n- ')
99+
| safe
100+
}}
93101
{% enddefaultmacro %}
94102

95103
{% defaultmacro is_public(doc) %}

0 commit comments

Comments
 (0)