Skip to content

Commit 7ce1a14

Browse files
update dokka page header
1 parent f2617e0 commit 7ce1a14

File tree

3 files changed

+47
-32
lines changed

3 files changed

+47
-32
lines changed

dokka/templates/base.ftl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,25 @@
2828
</script>
2929
<#-- Resources (scripts, stylesheets) are handled by Dokka. Use customStyleSheets and customAssets to change them. -->
3030
<@resources/>
31+
<#-- Custom styles -->
32+
<style>
33+
:root {
34+
--dokka-logo-image-url: url('/images/logo.png');
35+
--dokka-logo-height: 24px;
36+
--dokka-logo-width: 24px;
37+
}
38+
</style>
3139
</head>
3240
<body>
41+
<!-- Google Analytics -->
42+
<script>
43+
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
44+
ga('create', 'UA-180275463-1', 'auto');
45+
ga('send', 'pageview');
46+
</script>
47+
<script async src='https://www.google-analytics.com/analytics.js'></script>
48+
<!-- End Google Analytics -->
49+
3350
<div class="root">
3451
<@header.display/>
3552
<div id="container">

dokka/templates/includes/header.ftl

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
11
<#import "source_set_selector.ftl" as source_set_selector>
22
<#macro display>
33
<nav class="navigation" id="navigation-wrapper">
4-
<div class="navigation--inner">
5-
<div class="navigation-title">
6-
<button class="menu-toggle" id="menu-toggle" type="button">toggle menu</button>
7-
<div class="library-name">
8-
<@template_cmd name="pathToRoot">
9-
<a class="library-name--link" href="${pathToRoot}index.html">
10-
<@template_cmd name="projectName">
11-
${projectName}
12-
</@template_cmd>
13-
</a>
14-
</@template_cmd>
15-
</div>
16-
<div class="library-version">
17-
<#-- This can be handled by the versioning plugin -->
18-
<@version/>
19-
</div>
20-
</div>
21-
<@source_set_selector.display/>
22-
</div>
23-
<div class="navigation-controls">
24-
<#if homepageLink?has_content>
25-
<a class="navigation-controls--btn navigation-controls--homepage" id="homepage-link" href="${homepageLink}"></a>
26-
</#if>
27-
<button class="navigation-controls--btn navigation-controls--theme" id="theme-toggle-button" type="button">switch theme</button>
28-
<div class="navigation-controls--btn navigation-controls--search" id="searchBar" role="button">search in API</div>
4+
<div class="navigation--inner">
5+
<div class="navigation-title">
6+
<button class="menu-toggle" id="menu-toggle" type="button">toggle menu</button>
7+
<div class="library-name">
8+
<@template_cmd name="pathToRoot">
9+
<a class="library-name--link" href="${pathToRoot}index.html">
10+
<@template_cmd name="projectName">
11+
${projectName}
12+
</@template_cmd>
13+
</a>
14+
</@template_cmd>
15+
</div>
16+
<div class="library-version">
17+
<#-- This can be handled by the versioning plugin -->
18+
<@version/>
19+
</div>
2920
</div>
21+
<@source_set_selector.display/>
22+
</div>
23+
<div class="navigation-controls">
24+
<a class="navigation-controls--btn navigation-controls--homepage" id="homepage-link" href="/" target="_blank"></a>
25+
<button class="navigation-controls--btn navigation-controls--theme" id="theme-toggle-button" type="button">switch theme</button>
26+
<div class="navigation-controls--btn navigation-controls--search" id="searchBar" role="button">search in API</div>
27+
</div>
3028
</nav>
3129
</#macro>
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<#macro display>
2-
<#if sourceSets?has_content>
3-
<div class="filter-section" id="filter-section">
4-
<#list sourceSets as ss>
5-
<button class="platform-tag platform-selector ${ss.platform}-like" data-active="" data-filter="${ss.filter}">${ss.name}</button>
6-
</#list>
7-
</div>
8-
</#if>
2+
<#if sourceSets?has_content>
3+
<div class="filter-section" id="filter-section">
4+
<#list sourceSets as ss>
5+
<button class="platform-tag platform-selector ${ss.platform}-like" data-active="" data-filter="${ss.filter}">${ss.name}</button>
6+
</#list>
7+
</div>
8+
</#if>
99
</#macro>

0 commit comments

Comments
 (0)