diff options
author | Vadim Mishenev <vad-mishenev@yandex.ru> | 2022-04-15 21:39:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-15 21:39:31 +0300 |
commit | 8305eaffbc51fccc72183b4fe64f4c9db047fb82 (patch) | |
tree | 67ec0b826c50dcfc538f488a2ff759a1cd66120d /plugins/base/src/main/resources/dokka/templates/base.ftl | |
parent | 48b5918c2d465b482de4f070879b5ad93cc248b3 (diff) | |
download | dokka-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/base.ftl')
-rw-r--r-- | plugins/base/src/main/resources/dokka/templates/base.ftl | 39 |
1 files changed, 6 insertions, 33 deletions
diff --git a/plugins/base/src/main/resources/dokka/templates/base.ftl b/plugins/base/src/main/resources/dokka/templates/base.ftl index fb8fabd9..78ce21e2 100644 --- a/plugins/base/src/main/resources/dokka/templates/base.ftl +++ b/plugins/base/src/main/resources/dokka/templates/base.ftl @@ -1,10 +1,12 @@ +<#import "includes/page_metadata.ftl" as page_metadata> +<#import "includes/header.ftl" as header> +<#import "includes/footer.ftl" as footer> <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8"> - <title>${pageName}</title> + <@page_metadata.display/> <@template_cmd name="pathToRoot"> - <link href="${pathToRoot}images/logo-icon.svg" rel="icon" type="image/svg"> <script>var pathToRoot = "${pathToRoot}";</script> </@template_cmd> <#-- This script doesn't need to be there but it is nice to have @@ -19,43 +21,14 @@ if(savedDarkMode === true){ <@resources/> </head> <body> -<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"> - <#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> - <button id="theme-toggle-button"><span id="theme-toggle"></span></button> - <div id="searchBar"></div> - </div> -</div> + <@header.display/> <div id="container"> <div id="leftColumn"> <div id="sideMenu"></div> </div> <div id="main"> <@content/> - <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> + <@footer.display/> </div> </div> </body> |