Files
theme-earth/templates/docs.html
Ryan Wang d56c61a046 Add supports for docsme plugin (#250)
* docsme

Signed-off-by: Ryan Wang <i@ryanc.cc>

* Update

Signed-off-by: Ryan Wang <i@ryanc.cc>

* Add setting options

Signed-off-by: Ryan Wang <i@ryanc.cc>

---------

Signed-off-by: Ryan Wang <i@ryanc.cc>
2025-08-04 14:18:36 +08:00

24 lines
925 B
HTML

<th:block th:if="${theme.config.plugin.docsme.source == 'plugin'}">
<th:block th:replace="~{plugin:plugin-docsme:docs}" />
</th:block>
<th:block th:if="${theme.config.plugin.docsme.source == 'theme'}">
<!doctype html>
<html
xmlns:th="https://www.thymeleaf.org"
th:replace="~{modules/doc-layout :: html(title = ${site.title}, hero = null, content = ~{::content}, head = ~{::head}, footer = null, sidebar = null, contentClass = null)}"
>
<th:block th:fragment="head">
<th:block th:replace="~{plugin:plugin-docsme:modules/style}" />
<th:block th:replace="~{plugin:plugin-docsme:modules/script}" />
</th:block>
<th:block th:fragment="content">
<div class="dm-container">
<th:block
th:replace="~{plugin:plugin-docsme:modules/docs :: docs (footer = null, showHeader = false, showThemeSwitcher = false)}"
/>
</div>
</th:block>
</html>
</th:block>