Skip to content

Commit 5ee9afa

Browse files
add "Click to Edit" button
1 parent a1858f5 commit 5ee9afa

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

docs/site/components/faq/faq.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1-
<div subpage title="Frequently Asked Questions">
1+
<script id="faq-header.html" type="text/ng-template">
2+
<header header title="Frequently Asked Questions">
3+
<div class="versions header--gh-edit-btn">
4+
<a href="https://github.com/GoogleCloudPlatform/gcloud-node/edit/master/docs/faq.md" class="v-btn">
5+
<img src="site/img/icon-link-github.svg" />
6+
Edit on GitHub
7+
</a>
8+
</div>
9+
</header>
10+
</script>
11+
12+
<div subpage
13+
header-templateUrl="faq-header.html"
14+
title="Frequently Asked Questions">
215
<btf-markdown ng-include="'faq.md'"></btf-markdown>
316
</div>
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1-
<div subpage title="Troubleshooting">
1+
<script id="troubleshooting-header.html" type="text/ng-template">
2+
<header header title="Troubleshooting">
3+
<div class="versions header--gh-edit-btn">
4+
<a href="https://github.com/GoogleCloudPlatform/gcloud-node/edit/master/docs/troubleshooting.md" class="v-btn">
5+
<img src="site/img/icon-link-github.svg" />
6+
Edit on GitHub
7+
</a>
8+
</div>
9+
</header>
10+
</script>
11+
12+
<div subpage
13+
header-templateUrl="troubleshooting-header.html"
14+
title="Troubleshooting">
215
<btf-markdown ng-include="'troubleshooting.md'"></btf-markdown>
316
</div>

docs/site/css/main.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,13 @@ h2, h3 {
11071107
top: 7em;
11081108
}
11091109

1110+
/*
1111+
GitHub Edit Heade Button
1112+
*/
1113+
.header--gh-edit-btn {
1114+
top: 8em;
1115+
}
1116+
11101117
/*
11111118
Content
11121119
*/

0 commit comments

Comments
 (0)