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

https://github.com/alejandrohdezma/sbt-mdoc-toc

Allows mdoc to generate table of contents for markdown files
https://github.com/alejandrohdezma/sbt-mdoc-toc

documentation mdoc scala

Last synced: 8 months ago
JSON representation

Allows mdoc to generate table of contents for markdown files

Awesome Lists containing this project

README

          

# `mdoc` table-of-contents generator

This plugin enables generating a table of contents for markdown files using [`mdoc`](https://scalameta.org/mdoc/) by adding the following code:

````markdown
```scala mdoc:toc
```
````

## Installation

Add the following line to your `plugins.sbt` file:

```sbt
addSbtPlugin("com.alejandrohdezma" % "sbt-mdoc-toc" % "0.4.2")
```

## Usage

Just add the following where you want to add the table of contents in your markdown file:

````markdown
```scala mdoc:toc
```
````

And run `sbt mdoc`.