Generate a literate programming source code documentation using Nanoc and Pygments.
WARNING: This is pre-alpha and I’d be surprised if it worked for anybody besides myself. Actually, it doesn’t even fully work for me yet.
Install Pygments to get syntax highlighting
working. You should be able to run pygmentize on command line.
Add this line to your application’s Gemfile:
gem 'nanodoc'
And then execute:
$ bundle
Or install it yourself as:
$ gem install nanodoc
nanodoc or bundle exec nanodoc
dir/public/ directoryIf you use Pow, you can symlink the doc directory
in ~/.pow to easily view the generated docs.
Nanodoc looks for a config file in following locations:
./.nanodoc.yaml./.nanodoc.yml./nanodoc.yaml./nanodoc.yml./config/nanodoc.yaml./config/nanodoc.ymlThis file can contain any settings Nanoc accepts, and some of its own settings. Important ones are:
source_dir (defaults to '.')output_dir (defaults to doc/public')project_name (defaults to basename of the source directory)ignore - a list of fnmatch expressions to ignore (defaults to
empty list).git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)