GithubHelp home page GithubHelp logo

sbt-sdlc's Introduction

Scaladoc link checker plugin for sbt

sdlc checks links in HTML files against a scaladoc site. Unlike a regular link checker it understands scaladoc's fragment syntax. sdlc only needs HTML files as input and validates all links with a specified prefix, so it should work with any documentation tool that can output HTML (like Ornate or Paradox).

Add to project/plugins.sbt (requires sbt 1.x):

addSbtPlugin("com.typesafe" % "sbt-sdlc" % "0.2")

Add add something like this to build.sbt:

lazy val root = project.in(file("."))
  .enablePlugins(SDLCPlugin)

sdlcBase := s"http://slick.typesafe.com/doc/${version.value}/api/"
sdlcCheckDir := (target in com.typesafe.sbt.SbtSite.SiteKeys.makeSite).value
sdlc := (sdlc dependsOn (doc in Compile)).value

Type sdlc to run in sbt.

The following setting keys are available:

    val sdlcDocDir = settingKey[File]("The directory containing scaladoc output")
    val sdlcBase = settingKey[String]("The base URI of the scaladoc output")
    val sdlcCheckDir = settingKey[File]("The directory containing HTML files to check")
    val sdlcVersion = settingKey[String]("The scaladoc format version (2.11/2.12/auto)")

By default the sdlc task does not depend on doc so it won't (re)build the scaladocs automatically. You have to add the dependency yourself (see above) if you want this behavior. sdlcDocDir is set to the scaladoc target directory. sdlcVersion is set to auto in order to auto-detect scaladoc 2.11 (or lower) and 2.12 (or higher) which use different link formats. In most cases you only need to set sdlcBase and sdlcCheckDir.

sbt-sdlc's People

Contributors

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