Skip to content

Commit

Permalink
link and image fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jba committed Sep 26, 2016
1 parent a8286b8 commit add5c73
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 61 deletions.
75 changes: 14 additions & 61 deletions json/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<div class="container clearfix">
<div class="quote-box">
<h1>google-cloud</h1>
<p>Google Cloud Client Library for Go
<p>Google Cloud Client Libraries for Go
- an idiomatic, intuitive, and natural way for Go developers to
integrate with Google Cloud Platform services, like Cloud Datastore
and Cloud Storage.</p>
</div>

<div class="quote-box--supplementary">
<pre class="skip-highlight"><code class="subtle--blue">$</code> npm install <code class="subtle--blue">--save</code> <strong>google-cloud</strong></pre>
<pre class="skip-highlight"><code class="subtle--blue">$</code> go get <strong>cloud.google.com/go</strong></pre>
</div>
</div><!-- end of .container -->
</section><!-- end of .hero-banner -->
Expand All @@ -19,7 +19,7 @@ <h1>google-cloud</h1>
<ul class="featuring-links">
<li>
<a href="#/docs/{{home.module.name}}/{{home.module.version}}/{{home.module.service}}" title="google-cloud docs" class="btn btn-docs">
<img src="src/images/icon-lang-go-cta.svg" alt="Go icon" />
<img src="src/images/godoc.ico" alt="Godoc icon" />
Read the Docs
</a>
</li>
Expand Down Expand Up @@ -50,21 +50,18 @@ <h1>google-cloud</h1>
<div class="quote-box">
<h3 class="block-title">What is it?</h3>

<p><code>google-cloud</code> is a client library for accessing Google
Cloud Platform services that significantly reduces the boilerplate
code you have to write. The library provides high-level API
abstractions so they're easier to understand. It embraces
<p>The Google Cloud API clients for Go significantly reduce the boilerplate
code you have to write to access Google Cloud APIs. The packages provide high-level API
abstractions so they're easier to understand. They embrace the
idioms of Go, works well with the standard library, and
integrates better with your codebase.
integrate better with your codebase.
All this means you spend more time creating code that matters
to you.</p>

<p><code>google-cloud</code> is configured to access Google Cloud Platform
<p>The clients are configured to access Google Cloud Platform
services and authenticate (OAuth 2.0) automatically on your behalf.
With a one-line install and a private key, you are up and ready
to go. Better yet, if you are running on a Google Compute Engine
instance, the one-line install is enough!</p>

With the standard <code>go get</code> and a private key, you are up and ready
to go.
</div>

<div class="quote-box--supplementary">
Expand All @@ -79,37 +76,6 @@ <h4>Example: Upload a file to Cloud Storage</h4>
>Run elsewhere</a>
</div>

<div hljs hlsj-language="js" ng-show="selected == 'compute engine'">
// Authentication is automatic
// inside Google Compute Engine.
var gcloud = require('google-cloud')({
projectId: 'grape-spaceship-123'
});

var gcs = gcloud.storage();

var backups = gcs.bucket('backups');
backups.upload('db.zip', function(err, file) {
// file.createReadStream();
// file.getMetadata();
// ...
});</div>

<div hljs hljs-language="js" ng-show="selected == 'elsewhere'">
var gcloud = require('google-cloud')({
projectId: 'grape-spaceship-123',
// Specify a path to a keyfile.
keyFilename: '/path/to/keyfile.json'
});

var gcs = gcloud.storage();

var backups = gcs.bucket('backups');
backups.upload('db.zip', function(err, file) {
// file.createReadStream();
// file.getMetadata();
// ...
});</div>

</div>
</div><!-- end of .container -->
Expand All @@ -121,23 +87,10 @@ <h3 class="block-title">Examples</h3>

<ul>
<li>
<a href="https://cloud.google.com/go">Getting Started with Compute
Engine and Go</a> (<em><a href="https://github.com/GoogleCloudPlatform/nodejs-getting-started">source</a></em>) - A tutorial for building a web application on Google Cloud Platform.
</li>
<li>
<a href="http://gcloud-todos.appspot.com">TodoMVC</a> (<em><a href="https://github.com/GoogleCloudPlatform/gcloud-node-todos">source</a></em>) - TodoMVC backend using google-cloud and Express.
</li>
<li>
<a href="https://github.com/stephenplusplus/gcloud-kvstore">gcloud-kvstore</a> - Use a google-cloud dataset as a Key/Value store.
</li>
<li>
<a href="http://gitnpm.com/">gitnpm</a> (<em><a href="https://github.com/stephenplusplus/gitnpm">source</a></em>) - Easily lookup an npm package's GitHub repo using google-cloud and Google App Engine.
</li>
<li>
<a href="https://github.com/sebelga/gstore-node">gstore-node</a> - Google Datastore Entities Modeling library.
</li>
<li>
<a href="https://github.com/sebelga/gstore-api">gstore-api</a> - REST API builder for Google Datastore Entities.
<a href="https://cloud.google.com/go/tutorials">Go Tutorials for Google
Cloud Platform</a>
(<em><a href="https://github.com/GoogleCloudPlatform/golang-samples">source</a></em>)
- Tutorials for using the client libraries on Google Cloud Platform.
</li>
</ul>
</div>
Expand Down
Binary file added src/images/godoc.ico
Binary file not shown.

0 comments on commit add5c73

Please sign in to comment.