11 lines
280 B
Bash
Executable File
11 lines
280 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# install apidoc:
|
|
# npm install -g apidoc
|
|
|
|
# use fswatch to invoke this command whever index.js updates:
|
|
# fswatch index.js | xargs -n1 -I{} ./generate-api-doc.sh
|
|
|
|
echo "Generating documentation..."
|
|
apidoc -i ./ -o apidoc/ -e node_modules -f index.js && echo success
|