File: docs

package info (click to toggle)
lua-cliargs 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 388 kB
  • sloc: sh: 118; javascript: 14; makefile: 5
file content (21 lines) | stat: -rwxr-xr-x 346 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash

if [ ! -d "doc" ]; then
  echo "Must be run from lua_cliargs root"
  exit 1
fi

which npm &> /dev/null

if [ $? -ne 0 ]; then
  echo "You must have npm (node.js) installed."
  exit 1
fi

cd doc

npm install

./node_modules/tinydoc/cli/tinydoc run

echo "Docs compiled successfully. Open doc/compiled/index.html in a browser."