sbt-mdoc-toc

Allows mdoc to generate table of contents for markdown files

License

License

GroupId

GroupId

com.alejandrohdezma
ArtifactId

ArtifactId

sbt-mdoc-toc_2.12
Last Version

Last Version

0.1
Release Date

Release Date

Type

Type

jar
Description

Description

sbt-mdoc-toc
Allows mdoc to generate table of contents for markdown files
Project URL

Project URL

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

Project Organization

Alejandro Hernández
Source Code Management

Source Code Management

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

Download sbt-mdoc-toc_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/com.alejandrohdezma/sbt-mdoc-toc_2.12/ -->
<dependency>
    <groupId>com.alejandrohdezma</groupId>
    <artifactId>sbt-mdoc-toc_2.12</artifactId>
    <version>0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.alejandrohdezma/sbt-mdoc-toc_2.12/
implementation 'com.alejandrohdezma:sbt-mdoc-toc_2.12:0.1'
// https://jarcasting.com/artifacts/com.alejandrohdezma/sbt-mdoc-toc_2.12/
implementation ("com.alejandrohdezma:sbt-mdoc-toc_2.12:0.1")
'com.alejandrohdezma:sbt-mdoc-toc_2.12:jar:0.1'
<dependency org="com.alejandrohdezma" name="sbt-mdoc-toc_2.12" rev="0.1">
  <artifact name="sbt-mdoc-toc_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.alejandrohdezma', module='sbt-mdoc-toc_2.12', version='0.1')
)
libraryDependencies += "com.alejandrohdezma" % "sbt-mdoc-toc_2.12" % "0.1"
[com.alejandrohdezma/sbt-mdoc-toc_2.12 "0.1"]

Dependencies

compile (3)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.10
com.alejandrohdezma : mdoc-toc-generator_2.12 jar 0.1
org.scalameta : mdoc_2.12 jar 2.1.1

Project Modules

There are no modules declared in this project.

mdoc table-of-contents generator

This plugin enables generating a table of contents for markdown files using mdoc by adding the following code:

```scala mdoc:toc
```

Installation

Add the following line to your plugins.sbt file:

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

Usage

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

```scala mdoc:toc
```

And run sbt mdoc.

Versions

Version
0.1