Browse Source

Updated parse.js documentation

pull/105/head
Jure Šorn 3 years ago
parent
commit
de1f11380c
2 changed files with 12 additions and 3 deletions
  1. 3
      .gitignore
  2. 12
      parse.js

3
.gitignore

@ -0,0 +1,3 @@
node_modules/
package-lock.json

12
parse.js

@ -1,12 +1,18 @@
#!/usr/bin/env node
// Usage: node parse.js
//
// Script that creates index.html out of web/template.html and README.md.
// It is written in JS because this code used to be executed on the client side.
// To install dependencies run:
// $ npm install -g jsdom jquery showdown highlightjs
// If running on Mac and modules can't be found after installation add:
// To install the Node.js and npm run:
// $ sudo apt install nodejs npm # On macOS use `brew install ...` instead.
// To install dependencies globally, run:
// $ npm install -g jsdom jquery showdown highlightjs@9.12.0
// If running on macOS and modules can't be found after installation add:
// export NODE_PATH=/usr/local/lib/node_modules
// to the ~/.bash_profile or ~/.bashrc file and run '$ bash'.
// To avoid problems with permissions and path variables, install modules
// into project's directory using:
// $ npm install jsdom jquery showdown highlightjs@9.12.0
const fs = require('fs');

Loading…
Cancel
Save