Skip to content

Commit f89861c

Browse files
committed
Make documentation heading clickable
1 parent 4fe21b0 commit f89861c

File tree

3 files changed

+23
-15
lines changed

3 files changed

+23
-15
lines changed

doc-tool/resources/_includes/toolbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% include "scala-logo.svg" %}
44
</a>
55
<div id="project-details">
6-
<h1 id="project-name">{{ site.project }} Documentation</h1>
6+
<h1 id="project-name"><a href="{{ site.baseurl }}/docs/">{{ site.project }} Documentation</a></h1>
77
<h2 id="project-version">{{ site.version }}</h2>
88
</div>
99

doc-tool/resources/css/toolbar.css

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,31 @@ div#toolbar > div#project-details:before {
4848
}
4949

5050
div#toolbar > div#project-details > h1#project-name {
51-
font-size: 20px;
52-
font-weight: 300;
53-
margin-bottom: 3px;
51+
font-size: 20px;
52+
font-weight: 300;
53+
margin-bottom: 3px;
54+
}
55+
56+
div#toolbar > div#project-details > h1#project-name > a {
57+
color: #fff;
58+
}
59+
60+
div#toolbar > div#project-details > h1#project-name > a:hover,
61+
div#toolbar > div#project-details > h1#project-name > a:focus {
62+
text-decoration: none;
63+
color: rgba(255, 255, 255, 0.8);
5464
}
5565

5666
div#toolbar > div#project-details > h2#project-version {
57-
font-size: 12px;
58-
font-weight: 200;
59-
margin-left: 1px;
67+
font-size: 12px;
68+
font-weight: 200;
69+
margin-left: 1px;
6070
}
6171

6272
div#toolbar > a#github-link {
63-
color: #fff;
64-
position: absolute;
65-
top: 7px;
66-
right: 15px;
67-
font-size: 40px;
73+
color: #fff;
74+
position: absolute;
75+
top: 7px;
76+
right: 15px;
77+
font-size: 40px;
6878
}

docs/sidebar.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
sidebar:
22
- title: Blog
33
url: blog/index.html
4-
- title: Docs
5-
url: docs/index.html
64
- title: Usage
75
subsection:
86
- title: cbt-projects
@@ -54,4 +52,4 @@ sidebar:
5452
- title: Resources
5553
subsection:
5654
- title: Talks
57-
url: docs/resources/talks.html
55+
url: docs/resources/talks.html

0 commit comments

Comments
 (0)