Skip to content

Commit 6909d20

Browse files
authored
Merge pull request #5 from StatelessSoftware/v0.0.2
V0.0.2
2 parents a0e6180 + 8d742c0 commit 6909d20

5 files changed

Lines changed: 61 additions & 23 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# html-baker
2+
3+
## [0.0.2] - 2018-03-31
4+
5+
### Fixes
6+
7+
- [Issue #4] - Default config file outdated
8+
- [Issue #3] - Readme - Add documentation
9+
- [Issue #2] - Bin - will not start

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,31 @@
11
# html-baker
22
Convert websites into flat-file websites
3+
4+
## Installation
5+
6+
```
7+
npm i -g StatelessSoftware/html-baker
8+
```
9+
10+
## Preperation
11+
12+
Create a config file `html-baker -c`
13+
Edit the config file and make sure everything is proper.
14+
15+
## Usage
16+
17+
Run `html-baker`
18+
19+
### Force clean build
20+
21+
To remove the build and rebuild, run `html-baker -f`
22+
23+
## Configuration
24+
25+
- **domains** - An array of domain urls to download
26+
- **input** - If you have an app locally to download from, you can have it auto-start with these options
27+
- **directory** - Location of the app
28+
- **runcmd** - Command to run (start) the app. i.e. - `npm start`
29+
- **output**
30+
- **directory** - Directory to bake into
31+
- **options** - Array of wget options

bin/htmlbaker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/user/bin/env node
1+
#!/usr/bin/env node
22

33
var htmlbaker = require("../index.js");

config.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
2-
"baker": {
3-
"domains": [
4-
"localhost:3000"
5-
],
6-
"input": {
7-
"directory": "./dist",
8-
"runcmd": "npm start"
9-
},
10-
"output": {
11-
"directory": "./docs"
12-
},
13-
"options": [
14-
"recursive",
15-
"page-requisites",
16-
"html-extension",
17-
"convert-links",
18-
"restrict-file-names=windows",
19-
"no-parent"
20-
]
21-
}
22-
}
2+
"baker": {
3+
"domains": [
4+
"localhost:3000"
5+
],
6+
"input": {
7+
"directory": "dist",
8+
"runcmd": "npm start"
9+
},
10+
"output": {
11+
"directory": "./docs"
12+
},
13+
"options": [
14+
"--recursive",
15+
"--page-requisites",
16+
"--html-extension",
17+
"--convert-links",
18+
"--restrict-file-names=windows",
19+
"--no-parent"
20+
]
21+
}
22+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "html-baker",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "Convert websites into flat-file websites",
55
"main": "index.js",
66
"bin": {

0 commit comments

Comments
 (0)