Skip to content

Commit

Permalink
fix: fix linebreaks part in template
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeX4 committed Sep 16, 2023
1 parent 69e8d57 commit 87b49b7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ python ./gen.py
```

最后编译得到的文件位于 `./dist`.

如果你有安装 nodejs, 则你可以通过 `npx serve ./dist` 快速地在本地开启一个 web 静态服务器预览结果.
14 changes: 14 additions & 0 deletions templates/func_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,20 @@ <h3 id="parameters-{{ param['name'] }}"><code>{{ param['name'] }}</code>
</div>
</h3>
{{ param['details'] }}
{% if param['strings'] %}
<ul class="type-args">
{% for string in param['strings'] %}
<li>
<div class="break-box">
<div><code class="typ-str">&quot;<!-- -->{{ string['string'] | safe }}<!-- -->&quot;</code></div>
<div>
{{ string['details'] | safe }}
</div>
</div>
</li>
{% endfor %}
</ul>
{% endif %}
{% if param['default'] %}
<p>默认:{{ param['default'] | safe }}</p>
{% endif %}
Expand Down

0 comments on commit 87b49b7

Please sign in to comment.