Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/regadas/sbt-socco
sbt plugin for Socco. Socco is a Scala compiler plugin to generate documentation from Scala source files
https://github.com/regadas/sbt-socco
sbt sbt-plugin scala
Last synced: 23 days ago
JSON representation
sbt plugin for Socco. Socco is a Scala compiler plugin to generate documentation from Scala source files
- Host: GitHub
- URL: https://github.com/regadas/sbt-socco
- Owner: regadas
- License: apache-2.0
- Created: 2019-02-18T17:33:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-14T11:06:00.000Z (4 months ago)
- Last Synced: 2024-07-14T12:23:44.190Z (4 months ago)
- Topics: sbt, sbt-plugin, scala
- Language: Scala
- Homepage: http://gh.regadas.io/sbt-socco/Example.scala.html
- Size: 212 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sbt-socco
[![Build Status](https://travis-ci.com/regadas/sbt-socco.svg?branch=master)](https://travis-ci.com/regadas/sbt-socco)
[![Download](https://api.bintray.com/packages/regadas/sbt-plugins/sbt-socco/images/download.svg)](https://bintray.com/regadas/sbt-plugins/sbt-socco/_latestVersion)
[![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)This is an sbt plugin for [socco-ng]
> Socco is a Scala compiler plugin to generate documentation from Scala source files.
It produces HTML documents that display your comments alongside your code. Comments are passed through Markdown, and the Scala code is syntax highlighted, typed and linked to the appropriate API Doc.
[socco-ng](https://github.com/socco-ng) is the updated form of [Socco] that was initially developed by our friends @ [Criteo].## Usage
Start by installing the sbt plugin in project/plugins.sbt. This plugin requires sbt 1.0.0+
```scala
addSbtPlugin("io.regadas" % "sbt-socco" % "0.1.0")
```Then in your build.sbt file, simply enable the `SbtSoccoPlugin` via an `enablePlugins` statement for your project.
```scala
enablePlugins(SbtSoccoPlugin)
```You can further customize the generated `html` documents through with the following settings:
* `soccoOut` - output directory for the generated `html` documents.
* `soccoStyle` - path to a custom stylesheet.
* `soccoHeader` - path to a custom `html` header.
* `soccoFooter` - path to a custom `html` footer.
* `soccoPackage` - List of packages and scaladoc url's. Needs to follow this "$packageName:$scalaDocUrl" pattern.
* `soccoIndex` - Custom task that generates a `html` toc.
* `soccoOnCompile` - If socco `html` documents should be generated at compile phase.If you set `soccoOnCompile := false` to compile the examples you need to run:
* `enableSocco` and then,
* `compile`## How do I write examples?
To understand the supported syntax please check [socco](https://github.com/socco-ng) repo.
## Examples
* Simple scala [app](http://gh.regadas.io/sbt-socco/Example.scala.html).
* Criteo socco [examples](https://github.com/criteo/socco#examples).## Thanks!
Thanks [Criteo] for providing [Socco]!
[Criteo]: https://github.com/criteo
[Socco]: https://github.com/criteo/socco