Skip to content

Commit

Permalink
update examples and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
localnerve committed Jan 26, 2017
1 parent 17e2c18 commit c48edf0
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion docs/example-heroku-redis.md
@@ -1,6 +1,7 @@
# A Real html-snapshots Usage Example

> This article explains an implementation using [html-snapshots](https://github.com/localnerve/html-snapshots) in the wild \(with real, working code\). Please note the code referenced in this article was written by LocalNerve and is subject to the terms of this [license](https://github.com/localnerve/wpspa/blob/master/LICENSE.txt). **NOTE:** This is an older article and usage style is html-snapshots version 0.13.2.
> This article explains an implementation using [html-snapshots](https://github.com/localnerve/html-snapshots) in the wild \(with real, working code\). Please note the code referenced in this article was written by LocalNerve and is subject to the terms of this [license](https://github.com/localnerve/wpspa/blob/master/LICENSE.txt).
**NOTE:** This is an older article and usage style is html-snapshots version 0.13.2.

## Summary
The [WPSPA](http://github.com/localnerve/wpspa) project uses [html-snapshots](https://github.com/localnerve/html-snapshots) on [Heroku](https://www.heroku.com/) to populate a Redis store from which the snapshotted html is served on \_escaped\_fragment\_ requests. The [html-snapshots](https://github.com/localnerve/html-snapshots) library is run in a Heroku worker process that periodically keeps the snapshots up-to-date with a CMS.
Expand Down
2 changes: 1 addition & 1 deletion examples/custom/package.json
Expand Up @@ -7,6 +7,6 @@
"start": "node ./snapshot.js"
},
"dependencies": {
"html-snapshots": "github:localnerve/html-snapshots#rc-0.14.0-5"
"html-snapshots": ">= 0.14.0"
}
}
2 changes: 1 addition & 1 deletion examples/html5rocks/package.json
Expand Up @@ -7,6 +7,6 @@
"start": "node ./snapshot.js"
},
"dependencies": {
"html-snapshots": "github:localnerve/html-snapshots#rc-0.14.0-5"
"html-snapshots": ">= 0.14.0"
}
}
2 changes: 1 addition & 1 deletion examples/process-limit/package.json
Expand Up @@ -7,6 +7,6 @@
"start": "node ./snapshot.js"
},
"dependencies": {
"html-snapshots": "github:localnerve/html-snapshots#rc-0.14.0-5"
"html-snapshots": ">= 0.14.0"
}
}
2 changes: 1 addition & 1 deletion examples/simple-promise/package.json
Expand Up @@ -7,6 +7,6 @@
"start": "node ./snapshot.js"
},
"dependencies": {
"html-snapshots": "github:localnerve/html-snapshots#rc-0.14.0-5"
"html-snapshots": ">= 0.14.0"
}
}
2 changes: 1 addition & 1 deletion examples/sitemap-index/package.json
Expand Up @@ -7,6 +7,6 @@
"start": "node ./snapshot.js"
},
"dependencies": {
"html-snapshots": "github:localnerve/html-snapshots#rc-0.14.0-5"
"html-snapshots": ">= 0.14.0"
}
}
2 changes: 1 addition & 1 deletion examples/verbose/package.json
Expand Up @@ -7,6 +7,6 @@
"start": "node ./snapshot.js"
},
"dependencies": {
"html-snapshots": "github:localnerve/html-snapshots#rc-0.14.0-6"
"html-snapshots": ">= 0.14.0"
}
}
1 change: 1 addition & 0 deletions examples/verbose/snapshot.js
Expand Up @@ -24,6 +24,7 @@ htmlSnapshots.run({
outputDirClean: true,
selector: ".page-content",
timeout: 15000,
processLimit: 1, // to clarify output
verbose: verboseOption
})
.then(function (completed) {
Expand Down

0 comments on commit c48edf0

Please sign in to comment.