gitbook-plugin-tut-to-scala

0.2.1 • Public • Published

gitbook-plugin-sbt-tut

GitBook Plugin for replacing

```tut

to

```scala

tut is doc/tutorial generator for scala.

Motivation

sbt tut && gitbook build is slow (because of sbt startup). I want to compile it to verify the codes, but I don't want to wait for sbt startup.

So, I decide to use src markdown for building gitbook, and use tut in CI testing (just compile).

using src markdown makes syntax highlight inactive, because it's not ```scala but \`\tut.

So I wrote a plugin for replacing ```tut to ```scala.

Installation

book.json

{
  "plugins": [
    "tut-to-scala"
  ]
}

and

gitbook install

Usage

Before

```tut
class A {}
```

After

```scala
class A {}
```

License

MIT

Package Sidebar

Install

npm i gitbook-plugin-tut-to-scala

Weekly Downloads

0

Version

0.2.1

License

MIT

Last publish

Collaborators

  • matsu_chara