Skip to content

Commit

Permalink
add "Click to Edit" button
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Dec 11, 2014
1 parent a1858f5 commit 5ee9afa
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
15 changes: 14 additions & 1 deletion docs/site/components/faq/faq.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
<div subpage title="Frequently Asked Questions">
<script id="faq-header.html" type="text/ng-template">
<header header title="Frequently Asked Questions">
<div class="versions header--gh-edit-btn">
<a href="https://github.com/GoogleCloudPlatform/gcloud-node/edit/master/docs/faq.md" class="v-btn">
<img src="site/img/icon-link-github.svg" />
Edit on GitHub
</a>
</div>
</header>
</script>

<div subpage
header-templateUrl="faq-header.html"
title="Frequently Asked Questions">
<btf-markdown ng-include="'faq.md'"></btf-markdown>
</div>
15 changes: 14 additions & 1 deletion docs/site/components/troubleshooting/troubleshooting.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
<div subpage title="Troubleshooting">
<script id="troubleshooting-header.html" type="text/ng-template">
<header header title="Troubleshooting">
<div class="versions header--gh-edit-btn">
<a href="https://github.com/GoogleCloudPlatform/gcloud-node/edit/master/docs/troubleshooting.md" class="v-btn">
<img src="site/img/icon-link-github.svg" />
Edit on GitHub
</a>
</div>
</header>
</script>

<div subpage
header-templateUrl="troubleshooting-header.html"
title="Troubleshooting">
<btf-markdown ng-include="'troubleshooting.md'"></btf-markdown>
</div>
7 changes: 7 additions & 0 deletions docs/site/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,13 @@ h2, h3 {
top: 7em;
}

/*
GitHub Edit Heade Button
*/
.header--gh-edit-btn {
top: 8em;
}

/*
Content
*/
Expand Down

0 comments on commit 5ee9afa

Please sign in to comment.