Skip to content

Commit beeeb05

Browse files
docs: add how to get help directive
Fixes #562
1 parent 06aade6 commit beeeb05

8 files changed

Lines changed: 65 additions & 2 deletions

File tree

docs/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
<script src="site/components/docs/docs-values.js"></script>
3939
<script src="site/components/authorization/authorization.js"></script>
4040
<script src="site/components/faq/faq.js"></script>
41+
<script src="site/components/how-to-get-help/how-to-get-help-directive.js"></script>
4142
<script src="site/components/language-switcher/language-switcher-directive.js"></script>
4243
<script src="site/components/subpage/subpage-directive.js"></script>
4344
<script src="site/components/header/header-directive.js"></script>

docs/site/components/faq/faq.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@
1616
header-templateUrl="faq-header.html"
1717
title="FAQ">
1818
<btf-markdown ng-include="'faq.md'"></btf-markdown>
19+
<div how-to-get-help></div>
1920
</div>
21+

docs/site/components/faq/faq.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
angular
2-
.module('gcloud.faq', ['ngRoute', 'gcloud.subpage', 'btford.markdown'])
2+
.module('gcloud.faq', [
3+
'btford.markdown',
4+
'ngRoute',
5+
'gcloud.how-to-get-help',
6+
'gcloud.subpage'
7+
])
38
.config(function($routeProvider) {
49
'use strict';
510

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
angular
2+
.module('gcloud.how-to-get-help', [])
3+
.directive('howToGetHelp', function() {
4+
'use strict';
5+
6+
return {
7+
templateUrl: 'site/components/how-to-get-help/how-to-get-help.html',
8+
};
9+
});
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<div class="how-to-get-help--container subtle padding">
2+
<h1 class="warning">I still need help!</h1>
3+
4+
<p>
5+
Have a question you don't see? Hope is not lost! Follow these tips to find a quick resolution to your issue.
6+
</p>
7+
8+
<h3>Ask the Community</h3>
9+
<p>
10+
If you have a question about how to use gcloud-node in your project or are stuck in the Developer's console and don't know where to turn, it's possible your questions have already been addressed by the community.
11+
</p>
12+
13+
<p>
14+
First, check out the <a href="http://stackoverflow.com/questions/tagged/gcloud-node"><code>gcloud-node</code> tag on StackOverflow</a>.
15+
</p>
16+
<p>
17+
Next, try <a href="https://github.com/GoogleCloudPlatform/gcloud-node/issues?&q=">searching through our issues on GitHub</a>.
18+
</p>
19+
<p>
20+
Still nothing?
21+
</p>
22+
23+
<h3>Ask the Developers</h3>
24+
<p>
25+
If you're experiencing a bug with the code, or have an idea for how it can be improved, <em>please</em> <a href="https://github.com/GoogleCloudPlatform/gcloud-node/issues/new">create a new issue on GitHub</a> so we can talk about it.
26+
</p>
27+
</div>

docs/site/components/troubleshooting/troubleshooting.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
header-templateUrl="troubleshooting-header.html"
1717
title="Troubleshooting">
1818
<btf-markdown ng-include="'troubleshooting.md'"></btf-markdown>
19+
<div how-to-get-help></div>
1920
</div>

docs/site/components/troubleshooting/troubleshooting.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
angular
2-
.module('gcloud.troubleshooting', ['ngRoute', 'gcloud.subpage', 'btford.markdown'])
2+
.module('gcloud.troubleshooting', [
3+
'btford.markdown',
4+
'ngRoute',
5+
'gcloud.how-to-get-help',
6+
'gcloud.subpage'
7+
])
38
.config(function($routeProvider) {
49
'use strict';
510

docs/site/css/main.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,13 @@ ul {
209209
margin: 10px 0;
210210
}
211211

212+
.subtle {
213+
background-color: #f8f8f8;
214+
}
215+
216+
.warning {
217+
color: #DB4437;
218+
}
212219

213220

214221
/* Header
@@ -688,6 +695,12 @@ ul {
688695
display: block;
689696
}
690697

698+
/*
699+
How to Get Help Directive
700+
*/
701+
.how-to-get-help--container {
702+
margin-top: 2em;
703+
}
691704

692705
/* Docs Content
693706
========================================================================== */

0 commit comments

Comments
 (0)