an API docs generator for LoomScript
see lsdoc api documentation documented by lsdoc here: https://pixeldroid.github.io/lsdoc/
lsdoc provides an API for loading loomlib libraries and extracting type metadata. The distribution provides a command line tool for generating documentation compatible with the programming-pages theme for creating html documentation that is searchable, browsable, cross-linked, and mobile friendly.
requires Rake
Clone this repo.
- Run
rake cli:install
to:- build and install the
lsdoc
executable onto the system (/Users/<user>/bin/lsdoc
)
- build and install the
- Run
rake cli:uninstall
to:- remove the
lsdoc
executable from the system
- remove the
directly from the command line:
$ lsdoc --help
from any Loom project using loomtasks (including this one):
$ rake docs
the lsdoc loomlib can also be linked into your own Loom project to leverage the lsdoc API and build your own documentation tool.
first, install loomtasks and bundler.
then run bundle install
to retrieve and install the project dependencies on Jekyll and the GitHub Pages gem
$ rake cli:install
this will build the lsdoc library, install it in the currently configured sdk, build the command line tool and install it on the path
$ rake test
this will build the lsdoc library, install it in the currently configured sdk, build the test app, and run the test app.
from the project root, before installed on the system
$ export LSDOC=`pwd`
$ export LSDK="$HOME/.loom/sdks/sprint34"
$ rake clean && rake cli['-p ghpages -l $LSDK/libs/LSDoc.loomlib -o $LSDOC/docs']
after tested and installed, invoke in the usual manner:
$ lsdoc <args>
$ rake docs
Pull requests are welcome!