Skip to content

Commit 2c99ce3

Browse files
committed
Remove search button
1 parent 77b2613 commit 2c99ce3

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<#--
2+
This is a modified version of Dokka's header.ftl, removing the search button.
3+
https://github.com/Kotlin/dokka/blob/83b0f8ad9ad920df0d842caa9c43d69e6e2c44f6/dokka-subprojects/plugin-base/src/main/resources/dokka/templates/includes/header.ftl
4+
-->
5+
<#import "source_set_selector.ftl" as source_set_selector>
6+
<#macro display>
7+
<header class="navigation theme-dark" id="navigation-wrapper" role="banner">
8+
<@template_cmd name="pathToRoot">
9+
<a class="library-name--link" href="${pathToRoot}index.html" tabindex="1">
10+
<@template_cmd name="projectName">
11+
${projectName}
12+
</@template_cmd>
13+
</a>
14+
</@template_cmd>
15+
<button class="navigation-controls--btn navigation-controls--btn_toc ui-kit_mobile-only" id="toc-toggle"
16+
type="button">Toggle table of contents
17+
</button>
18+
<div class="navigation-controls--break ui-kit_mobile-only"></div>
19+
<div class="library-version" id="library-version">
20+
<#-- This can be handled by the versioning plugin -->
21+
<@version/>
22+
</div>
23+
<div class="navigation-controls">
24+
<@source_set_selector.display/>
25+
<#if homepageLink?has_content>
26+
<a class="navigation-controls--btn navigation-controls--btn_homepage" id="homepage-link"
27+
href="${homepageLink}"></a>
28+
</#if>
29+
<button class="navigation-controls--btn navigation-controls--btn_theme" id="theme-toggle-button"
30+
type="button">Switch theme
31+
</button>
32+
</div>
33+
</header>
34+
</#macro>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<#--
2+
This is an unmodified version of Dokka's source_set_selector.ftl
3+
https://github.com/Kotlin/dokka/blob/83b0f8ad9ad920df0d842caa9c43d69e6e2c44f6/dokka-subprojects/plugin-base/src/main/resources/dokka/templates/includes/source_set_selector.ftl
4+
-->
5+
<#macro display>
6+
<#if sourceSets?has_content>
7+
<ul class="filter-section filter-section_loading" id="filter-section" aria-label="Platform filter">
8+
<#list sourceSets as ss>
9+
<button class="platform-tag platform-selector ${ss.platform}-like" data-active="" aria-pressed="true"
10+
data-filter="${ss.filter}">${ss.name}</button>
11+
</#list>
12+
<div class="dropdown filter-section--dropdown" data-role="dropdown" id="filter-section-dropdown">
13+
<button class="button button_dropdown filter-section--dropdown-toggle" role="combobox"
14+
data-role="dropdown-toggle"
15+
aria-controls="platform-tags-listbox"
16+
aria-haspopup="listbox"
17+
aria-expanded="false"
18+
aria-label="Toggle source sets"
19+
></button>
20+
<ul role="listbox" id="platform-tags-listbox" class="dropdown--list" data-role="dropdown-listbox" aria-label="Platform filter">
21+
<div class="dropdown--header"><span>Platform filter</span>
22+
<button class="button" data-role="dropdown-toggle" aria-label="Close platform filter">
23+
<i class="ui-kit-icon ui-kit-icon_cross"></i>
24+
</button>
25+
</div>
26+
<#list sourceSets as ss>
27+
<li role="option" class="dropdown--option platform-selector-option ${ss.platform}-like" tabindex="0">
28+
<label class="checkbox">
29+
<input type="checkbox" class="checkbox--input" id="${ss.filter}"
30+
data-filter="${ss.filter}"/>
31+
<span class="checkbox--icon"></span>
32+
${ss.name}
33+
</label>
34+
</li>
35+
</#list>
36+
</ul>
37+
<div class="dropdown--overlay"></div>
38+
</div>
39+
</ul>
40+
</#if>
41+
</#macro>

0 commit comments

Comments
 (0)