Skip to content

Commit ea072e1

Browse files
committed
Add edit on github button
1 parent 8c46251 commit ea072e1

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

docs/_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
title: Dotty Documentation
2+
repository_url: "http://github.com/lampepfl/dotty"
23
baseurl: ""
34
theme: minima
45
gems:

docs/_layouts/default.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
</a>
1717
<div id="content">
1818
<h1>{{ page.title }}</h1>
19+
<div class="edit-docs">
20+
<a href="{{site.repository_url}}/edit/master/docs/{{page.path}}">[edit on github]</a>
21+
</div>
1922
{{ content }}
2023
</div>
2124
<div id="toc">

docs/css/main.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ div#container {
7070
}
7171

7272
div#content {
73+
position: relative;
7374
margin-top: $distance-top;
7475
width: $content-width - $toc-width;
7576
float: right;
@@ -150,6 +151,12 @@ div#container {
150151
}
151152
}
152153

154+
div.edit-docs {
155+
position: absolute;
156+
top: 8px;
157+
right: 0;
158+
}
159+
153160
h1#search {
154161
margin-top: 50px;
155162
}

0 commit comments

Comments
 (0)