An open API service indexing awesome lists of open source software.

https://github.com/agrison/scalocco

Scalocco, a quick and dirty implementation of Docco in Scala
https://github.com/agrison/scalocco

Last synced: about 1 year ago
JSON representation

Scalocco, a quick and dirty implementation of Docco in Scala

Awesome Lists containing this project

README

          

______ ______ ______ __ ______ ______ ______ ______
/\ ___\ /\ ___\ /\ __ \ /\ \ /\ __ \ /\ ___\ /\ ___\ /\ __ \
\ \___ \ \ \ \____ \ \ __ \ \ \ \____ \ \ \/\ \ \ \ \____ \ \ \____ \ \ \/\ \
\/\_____\ \ \_____\ \ \_\ \_\ \ \_____\ \ \_____\ \ \_____\ \ \_____\ \ \_____\
\/_____/ \/_____/ \/_/\/_/ \/_____/ \/_____/ \/_____/ \/_____/ \/_____/

Scala implementation of Docco
-----------------------------
Produces HTML pages that displays your comments alongside your code.

**Scalocco** is a really quick-and-dirty, literate-programming-style documentation
generator. It is a Scala port of [Docco](http://jashkenas.github.com/docco/),
which was written by [Jeremy Ashkenas](https://github.com/jashkenas) in
Coffescript and runs on node.js.

Scalocco produces HTML that displays your comments alongside your code.
Comments are passed through
[Markdown](http://daringfireball.net/projects/markdown/syntax), and code is
highlighted using [google-code-prettify](http://code.google.com/p/google-code-prettify/)
syntax highlighting.

Currently, to build Scalocco, you'll need [sbt](http://www.scala-sbt.org/release/docs/Getting-Started/Setup.html) and **scala**. The project
depends on [scala-mustache](https://github.com/vspy/scala-mustache) and [Markdown4j](https://code.google.com/p/markdown4j/)

To run Scalocco, just use sbt:

sbt "run /path/to/scala/files"

...will generate linked HTML documentation for the named source files, saving
it into a `docs` folder.

The visual style was borrowed from the .Net implementation of Docco: [Nocco](https://github.com/dontangg/nocco)

You can see the result of running Scalocco on its own source code here: [http://grison.me/scalocco/source](http://grison.me/scalocco/source)