GithubHelp home page GithubHelp logo

koiralo / sbt-socco Goto Github PK

View Code? Open in Web Editor NEW

This project forked from regadas/sbt-socco

0.0 1.0 0.0 24 KB

sbt plugin for Socco. Socco is a Scala compiler plugin to generate documentation from Scala source files

Home Page: http://gh.regadas.io/sbt-socco/Example.scala.html

License: Apache License 2.0

Scala 100.00%

sbt-socco's Introduction

sbt-socco

Build Status Download License

This is an sbt plugin for Socco

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 is developed by our friends @ Criteo.

Usage

Start by installing the sbt plugin in project/plugins.sbt. This plugin requires sbt 1.0.0+

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.

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 repo.

Examples

Thanks!

Thanks Criteo for providing Socco!

sbt-socco's People

Contributors

regadas avatar

Watchers

Shankar Koirala avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.