aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/resources/dokka/templates/includes
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2022-04-15 21:39:31 +0300
committerGitHub <noreply@github.com>2022-04-15 21:39:31 +0300
commit8305eaffbc51fccc72183b4fe64f4c9db047fb82 (patch)
tree67ec0b826c50dcfc538f488a2ff759a1cd66120d /plugins/base/src/main/resources/dokka/templates/includes
parent48b5918c2d465b482de4f070879b5ad93cc248b3 (diff)
downloaddokka-8305eaffbc51fccc72183b4fe64f4c9db047fb82.tar.gz
dokka-8305eaffbc51fccc72183b4fe64f4c9db047fb82.tar.bz2
dokka-8305eaffbc51fccc72183b4fe64f4c9db047fb82.zip
Decompose `base.ftl` template (#2432)
Diffstat (limited to 'plugins/base/src/main/resources/dokka/templates/includes')
-rw-r--r--plugins/base/src/main/resources/dokka/templates/includes/footer.ftl7
-rw-r--r--plugins/base/src/main/resources/dokka/templates/includes/header.ftl24
-rw-r--r--plugins/base/src/main/resources/dokka/templates/includes/page_metadata.ftl6
-rw-r--r--plugins/base/src/main/resources/dokka/templates/includes/source_set_selector.ftl9
4 files changed, 46 insertions, 0 deletions
diff --git a/plugins/base/src/main/resources/dokka/templates/includes/footer.ftl b/plugins/base/src/main/resources/dokka/templates/includes/footer.ftl
new file mode 100644
index 00000000..461a8162
--- /dev/null
+++ b/plugins/base/src/main/resources/dokka/templates/includes/footer.ftl
@@ -0,0 +1,7 @@
+<#macro display>
+ <div class="footer">
+ <span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>${footerMessage}</span><span
+ class="pull-right"><span>Generated by </span><a
+ href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span>
+ </div>
+</#macro> \ No newline at end of file
diff --git a/plugins/base/src/main/resources/dokka/templates/includes/header.ftl b/plugins/base/src/main/resources/dokka/templates/includes/header.ftl
new file mode 100644
index 00000000..a7ba81ba
--- /dev/null
+++ b/plugins/base/src/main/resources/dokka/templates/includes/header.ftl
@@ -0,0 +1,24 @@
+<#import "source_set_selector.ftl" as source_set_selector>
+<#macro display>
+<div class="navigation-wrapper" id="navigation-wrapper">
+ <div id="leftToggler"><span class="icon-toggler"></span></div>
+ <div class="library-name">
+ <@template_cmd name="pathToRoot">
+ <a href="${pathToRoot}index.html">
+ <@template_cmd name="projectName">
+ <span>${projectName}</span>
+ </@template_cmd>
+ </a>
+ </@template_cmd>
+ </div>
+ <div>
+ <#-- This can be handled by a versioning plugin -->
+ <@version/>
+ </div>
+ <div class="pull-right d-flex">
+ <@source_set_selector.display/>
+ <button id="theme-toggle-button"><span id="theme-toggle"></span></button>
+ <div id="searchBar"></div>
+ </div>
+</div>
+</#macro> \ No newline at end of file
diff --git a/plugins/base/src/main/resources/dokka/templates/includes/page_metadata.ftl b/plugins/base/src/main/resources/dokka/templates/includes/page_metadata.ftl
new file mode 100644
index 00000000..f897c104
--- /dev/null
+++ b/plugins/base/src/main/resources/dokka/templates/includes/page_metadata.ftl
@@ -0,0 +1,6 @@
+<#macro display>
+ <title>${pageName}</title>
+ <@template_cmd name="pathToRoot">
+ <link href="${pathToRoot}images/logo-icon.svg" rel="icon" type="image/svg">
+ </@template_cmd>
+</#macro> \ No newline at end of file
diff --git a/plugins/base/src/main/resources/dokka/templates/includes/source_set_selector.ftl b/plugins/base/src/main/resources/dokka/templates/includes/source_set_selector.ftl
new file mode 100644
index 00000000..13650ee5
--- /dev/null
+++ b/plugins/base/src/main/resources/dokka/templates/includes/source_set_selector.ftl
@@ -0,0 +1,9 @@
+<#macro display>
+ <#if sourceSets??>
+ <div class="filter-section" id="filter-section">
+ <#list sourceSets as ss>
+ <button class="platform-tag platform-selector ${ss.platform}-like" data-active="" data-filter="${ss.filter}">${ss.name}</button>
+ </#list>
+ </div>
+ </#if>
+</#macro> \ No newline at end of file