File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11# html-baker
22Convert 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
Original file line number Diff line number Diff line change 1- #!/user /bin/env node
1+ #!/usr /bin/env node
22
33var htmlbaker = require ( "../index.js" ) ;
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments