Skip to content

Commit f90418b

Browse files
committed
Merge pull request #356 from stephenplusplus/spp--docs-report-issue-button
docs: add Report an Issue button
2 parents a2d7095 + 76ff002 commit f90418b

7 files changed

Lines changed: 110 additions & 57 deletions

File tree

docs/site/components/docs/docs.html

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
<script id="docs-header.html" type="text/ng-template">
22
<header header title="Node.js">
3-
<div class="versions" ng-show="showReference">
4-
<span class="v-current">{{version}} <i ng-if="isLatestVersion">(Latest version)</i></span>
5-
<a href="#/docs/history" class="v-btn">
6-
<img src="site/img/icon-arrow-bullet.svg" />
7-
See version History
8-
</a>
3+
<div class="row row--right">
4+
<div class="col margin-vertical">
5+
<a href="https://github.com/GoogleCloudPlatform/gcloud-node/issues/new"
6+
class="v-btn">
7+
<img src="site/img/icon-link-github.svg" />
8+
Report an Issue
9+
</a>
10+
</div>
11+
<div class="col margin-vertical">
12+
<a href="#/docs/history" ng-show="showReference"
13+
class="v-btn">
14+
<img src="site/img/icon-arrow-bullet.svg" />
15+
Version History (<i>{{version}}</i>)
16+
</a>
17+
</div>
918
</div>
1019
</header>
1120
</script>

docs/site/components/docs/docs.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ angular
329329
$scope.module = $routeParams.module;
330330
$scope.methods = methods;
331331
$scope.version = $routeParams.version;
332-
$scope.isLatestVersion = $scope.version == versions[0];
333332
$scope.versions = versions;
334333
$scope.links = links;
335334
})

docs/site/components/faq/faq.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
<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>
2+
<header header title="FAQ">
3+
<div class="row row--right">
4+
<div class="col margin-vertical">
5+
<a href="https://github.com/GoogleCloudPlatform/gcloud-node/edit/master/docs/faq.md"
6+
class="v-btn">
7+
<img src="site/img/icon-link-github.svg" />
8+
Edit on GitHub
9+
</a>
10+
</div>
811
</div>
912
</header>
1013
</script>
1114

1215
<div subpage
1316
header-templateUrl="faq-header.html"
14-
title="Frequently Asked Questions">
17+
title="FAQ">
1518
<btf-markdown ng-include="'faq.md'"></btf-markdown>
1619
</div>
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<header class="docs-header">
2-
<h1 class="page-title">{{title}}</h1>
3-
<div ng-transclude></div>
2+
<div class="row">
3+
<div class="col-60 margin-vertical">
4+
<h1 class="page-title">{{title}}</h1>
5+
</div>
6+
<div class="col-40">
7+
<div ng-transclude></div>
8+
</div>
9+
</div>
410
</header>

docs/site/components/troubleshooting/troubleshooting.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
<script id="troubleshooting-header.html" type="text/ng-template">
22
<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>
3+
<div class="row row--right">
4+
<div class="col margin-vertical">
5+
<a href="https://github.com/GoogleCloudPlatform/gcloud-node/edit/master/docs/troubleshooting.md"
6+
class="v-btn">
7+
<img src="site/img/icon-link-github.svg" />
8+
Edit on GitHub
9+
</a>
10+
</div>
811
</div>
912
</header>
1013
</script>

docs/site/css/main.css

Lines changed: 61 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,63 @@ a {
149149
cursor: pointer;
150150
}
151151

152+
153+
/* Grid
154+
========================================================================== */
155+
156+
.row:after {
157+
content: '';
158+
display: table;
159+
clear: both;
160+
}
161+
162+
.row--right,
163+
[class*='col'] {
164+
float: none;
165+
}
166+
167+
@media only screen and (min-width: 45em) {
168+
.row--right {
169+
float: right;
170+
}
171+
172+
[class*='col'] {
173+
float: left;
174+
}
175+
176+
.col-10 { width: 10%; }
177+
.col-20 { width: 20%; }
178+
.col-25 { width: 25%; }
179+
.col-30 { width: 30%; }
180+
.col-33 { width: 33%; }
181+
.col-40 { width: 40%; }
182+
.col-50 { width: 50%; }
183+
.col-60 { width: 60%; }
184+
.col-66 { width: 66%; }
185+
.col-70 { width: 70%; }
186+
.col-75 { width: 75%; }
187+
.col-80 { width: 80%; }
188+
.col-90 { width: 90%; }
189+
}
190+
191+
192+
/* Utilities
193+
========================================================================== */
194+
195+
.padding {
196+
padding: 10px;
197+
}
198+
199+
.margin {
200+
margin: 10px;
201+
}
202+
203+
.margin-vertical {
204+
margin: 10px 0;
205+
}
206+
207+
208+
152209
/* Header
153210
========================================================================== */
154211

@@ -681,8 +738,6 @@ a {
681738
*/
682739

683740
.versions {
684-
display: inline-block;
685-
margin-top: 2em;
686741
}
687742

688743
.versions span,
@@ -700,6 +755,7 @@ a {
700755
}
701756

702757
.v-btn {
758+
margin: 0.5em 0;
703759
padding: 0.5em;
704760
border: 1px solid rgba(0,0,0,0.2);
705761
background: rgba(0,0,0,0.07);
@@ -1002,27 +1058,14 @@ a {
10021058
}
10031059

10041060
@media only screen and (min-width: 45em) {
1005-
1006-
/*
1007-
Docs Header
1008-
*/
1009-
1010-
.versions {
1011-
position: absolute;
1012-
top: 6em;
1013-
right: 2em;
1014-
margin: 0;
1015-
}
1016-
10171061
.v-btn {
10181062
font-size: 0.7em;
10191063
line-height: normal;
1064+
margin-left: .5em;
10201065
}
1021-
10221066
}
10231067

10241068
@media only screen and (min-width: 50em) {
1025-
10261069
/*
10271070
Header
10281071
*/
@@ -1115,13 +1158,6 @@ a {
11151158
top: 7em;
11161159
}
11171160

1118-
/*
1119-
GitHub Edit Heade Button
1120-
*/
1121-
.header--gh-edit-btn {
1122-
top: 8em;
1123-
}
1124-
11251161
/*
11261162
Content
11271163
*/
@@ -1173,15 +1209,12 @@ a {
11731209
font-size: 0.9em;
11741210
}
11751211

1176-
.col {
1212+
.quote-box {
11771213
width: 46%;
1178-
}
1179-
1180-
.col-left {
11811214
float: left;
11821215
}
11831216

1184-
.col-right {
1217+
.quote-box--supplementary {
11851218
float: right;
11861219
}
11871220

docs/site/home.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ <h1 class="logo"><img src="site/img/logo-full.svg" alt="Google Cloud Platform" /
55
<article class="main" role="main">
66
<section class="hero-banner">
77
<div class="container clearfix">
8-
<div class="col col-left">
8+
<div class="quote-box">
99
<h1>gcloud</h1>
1010
<p>Google Cloud Client Library for Node.js
1111
- an idiomatic, intuitive, and natural way for Node.js developers to
1212
integrate with Google Cloud Platform services, like Cloud Datastore
1313
and Cloud Storage.</p>
14-
</div><!-- end of .col.col-left -->
14+
</div>
1515

16-
<div class="col col-right">
16+
<div class="quote-box--supplementary">
1717
<h2>One-line npm install</h2>
1818
<pre>$ npm install --save gcloud</pre>
19-
</div><!-- end of .col.col-right -->
19+
</div>
2020
</div><!-- end of .container -->
2121
</section><!-- end of .hero-banner -->
2222

@@ -59,7 +59,7 @@ <h2>One-line npm install</h2>
5959

6060
<section class="block about">
6161
<div class="container clearfix">
62-
<div class="col col-left">
62+
<div class="quote-box">
6363
<h3 class="block-title">What is it?</h3>
6464

6565
<p><code>gcloud</code> is a client library for accessing Google
@@ -77,9 +77,9 @@ <h3 class="block-title">What is it?</h3>
7777
to go. Better yet, if you are running on a Google Compute Engine
7878
instance, the one-line install is enough!</p>
7979

80-
</div><!-- end of .col.col-left -->
80+
</div>
8181

82-
<div class="col col-right">
82+
<div class="quote-box--supplementary">
8383
<h4>Retrieve Datastore Entities</h4>
8484

8585
<div hljs language="js">
@@ -95,7 +95,7 @@ <h4>Retrieve Datastore Entities</h4>
9595
console.log(err, entity);
9696
});</div>
9797

98-
</div><!-- end of .col.col-right -->
98+
</div>
9999
</div><!-- end of .container -->
100100
</section><!-- end of .featuring -->
101101

0 commit comments

Comments
 (0)