Skip to content

Commit

Permalink
docs: update code block on homepage - fixes #323
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Dec 6, 2014
1 parent f272ea2 commit afdb3bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
7 changes: 0 additions & 7 deletions docs/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,6 @@ h2, h3 {
background: #2a74ed;
}

/*
What is it?
*/
.about pre {
font-size: 110%;
}

/*
Featuring
*/
Expand Down
9 changes: 5 additions & 4 deletions docs/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,15 @@ <h3 class="block-title">What is it?</h3>
<h4>Retrieve Datastore Entities</h4>

<div hljs language="js">
var gcloud = require('gcloud');

var ds = gcloud.datastore.dataset({
var gcloud = require('gcloud')({
projectId: 'my-project',
keyFilename: '/path/to/keyfile.json'
});

ds.get(ds.key(['Product', 123]), function(err, entity) {
var dataset = gcloud.datastore.dataset();
var productKey = dataset.key(['Product', 123]);

dataset.get(productKey, function(err, entity) {
console.log(err, entity);
});</div>

Expand Down

0 comments on commit afdb3bb

Please sign in to comment.