-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242 from alejandrohdezma/feature/scala-3
Add Scala 3 support
- Loading branch information
Showing
25 changed files
with
251 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...rc/sbt-test/sbt-mdoc-toc/simple/build.sbt → ...t-test/sbt-mdoc-toc/simple_2.12/build.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
ThisBuild / scalaVersion := "2.12.12" | ||
ThisBuild / scalaVersion := "2.12.15" | ||
|
||
lazy val root = project.in(file(".")).enablePlugins(MdocPlugin) |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...t/sbt-mdoc-toc/simple/project/plugins.sbt → ...-mdoc-toc/simple_2.12/project/plugins.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.1.3") | ||
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.3.2") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-mdoc-toc" % sys.props("plugin.version")) |
File renamed without changes.
56 changes: 56 additions & 0 deletions
56
modules/sbt-mdoc-toc/src/sbt-test/sbt-mdoc-toc/simple_2.13/DOCS.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# The title | ||
|
||
Miau miau | ||
|
||
--- | ||
|
||
- [Installation](#installation) | ||
- [Configuration](#configuration) | ||
- [Configurating the first thing](#configurating-the-first-thing) | ||
- [Configurating the second thing](#configurating-the-second-thing) | ||
- [Integrations](#integrations) | ||
- [Integration one](#integration-one) | ||
- [Integration two](#integration-two) | ||
- [`the-thing.txt`](#the-thingtxt) | ||
- [How does it work?](#how-does-it-work) | ||
- [Example](#example) | ||
|
||
## Installation | ||
|
||
Miau miau miau | ||
|
||
## Configuration | ||
|
||
Miau miau miau | ||
|
||
### Configurating the first thing | ||
|
||
Miau miau miau | ||
|
||
### Configurating the second thing | ||
|
||
Miau miau miau | ||
|
||
## Integrations | ||
|
||
Miau miau miau | ||
|
||
### Integration one | ||
|
||
Miau miau miau | ||
|
||
### Integration two | ||
|
||
Miau miau miau | ||
|
||
### [`the-thing.txt`](https://www.example.com) | ||
|
||
Testing that a link in header is normalized | ||
|
||
#### How does it work? | ||
|
||
Miau miau miau | ||
|
||
#### Example | ||
|
||
Miau miau miau |
3 changes: 3 additions & 0 deletions
3
modules/sbt-mdoc-toc/src/sbt-test/sbt-mdoc-toc/simple_2.13/build.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ThisBuild / scalaVersion := "2.13.8" | ||
|
||
lazy val root = project.in(file(".")).enablePlugins(MdocPlugin) |
47 changes: 47 additions & 0 deletions
47
modules/sbt-mdoc-toc/src/sbt-test/sbt-mdoc-toc/simple_2.13/docs/DOCS.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# The title | ||
|
||
Miau miau | ||
|
||
```scala mdoc:toc | ||
|
||
``` | ||
|
||
## Installation | ||
|
||
Miau miau miau | ||
|
||
## Configuration | ||
|
||
Miau miau miau | ||
|
||
### Configurating the first thing | ||
|
||
Miau miau miau | ||
|
||
### Configurating the second thing | ||
|
||
Miau miau miau | ||
|
||
## Integrations | ||
|
||
Miau miau miau | ||
|
||
### Integration one | ||
|
||
Miau miau miau | ||
|
||
### Integration two | ||
|
||
Miau miau miau | ||
|
||
### [`the-thing.txt`](https://www.example.com) | ||
|
||
Testing that a link in header is normalized | ||
|
||
#### How does it work? | ||
|
||
Miau miau miau | ||
|
||
#### Example | ||
|
||
Miau miau miau |
1 change: 1 addition & 0 deletions
1
modules/sbt-mdoc-toc/src/sbt-test/sbt-mdoc-toc/simple_2.13/project/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=1.6.2 |
2 changes: 2 additions & 0 deletions
2
modules/sbt-mdoc-toc/src/sbt-test/sbt-mdoc-toc/simple_2.13/project/plugins.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.3.2") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-mdoc-toc" % sys.props("plugin.version")) |
3 changes: 3 additions & 0 deletions
3
modules/sbt-mdoc-toc/src/sbt-test/sbt-mdoc-toc/simple_2.13/test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# this test ensures `sbt-mdoc-toc` can create a table-of-contents | ||
> mdoc | ||
$ must-mirror target/mdoc/DOCS.md DOCS.md |
56 changes: 56 additions & 0 deletions
56
modules/sbt-mdoc-toc/src/sbt-test/sbt-mdoc-toc/simple_3/DOCS.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# The title | ||
|
||
Miau miau | ||
|
||
--- | ||
|
||
- [Installation](#installation) | ||
- [Configuration](#configuration) | ||
- [Configurating the first thing](#configurating-the-first-thing) | ||
- [Configurating the second thing](#configurating-the-second-thing) | ||
- [Integrations](#integrations) | ||
- [Integration one](#integration-one) | ||
- [Integration two](#integration-two) | ||
- [`the-thing.txt`](#the-thingtxt) | ||
- [How does it work?](#how-does-it-work) | ||
- [Example](#example) | ||
|
||
## Installation | ||
|
||
Miau miau miau | ||
|
||
## Configuration | ||
|
||
Miau miau miau | ||
|
||
### Configurating the first thing | ||
|
||
Miau miau miau | ||
|
||
### Configurating the second thing | ||
|
||
Miau miau miau | ||
|
||
## Integrations | ||
|
||
Miau miau miau | ||
|
||
### Integration one | ||
|
||
Miau miau miau | ||
|
||
### Integration two | ||
|
||
Miau miau miau | ||
|
||
### [`the-thing.txt`](https://www.example.com) | ||
|
||
Testing that a link in header is normalized | ||
|
||
#### How does it work? | ||
|
||
Miau miau miau | ||
|
||
#### Example | ||
|
||
Miau miau miau |
3 changes: 3 additions & 0 deletions
3
modules/sbt-mdoc-toc/src/sbt-test/sbt-mdoc-toc/simple_3/build.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ThisBuild / scalaVersion := "3.1.2" | ||
|
||
lazy val root = project.in(file(".")).enablePlugins(MdocPlugin) |
47 changes: 47 additions & 0 deletions
47
modules/sbt-mdoc-toc/src/sbt-test/sbt-mdoc-toc/simple_3/docs/DOCS.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# The title | ||
|
||
Miau miau | ||
|
||
```scala mdoc:toc | ||
|
||
``` | ||
|
||
## Installation | ||
|
||
Miau miau miau | ||
|
||
## Configuration | ||
|
||
Miau miau miau | ||
|
||
### Configurating the first thing | ||
|
||
Miau miau miau | ||
|
||
### Configurating the second thing | ||
|
||
Miau miau miau | ||
|
||
## Integrations | ||
|
||
Miau miau miau | ||
|
||
### Integration one | ||
|
||
Miau miau miau | ||
|
||
### Integration two | ||
|
||
Miau miau miau | ||
|
||
### [`the-thing.txt`](https://www.example.com) | ||
|
||
Testing that a link in header is normalized | ||
|
||
#### How does it work? | ||
|
||
Miau miau miau | ||
|
||
#### Example | ||
|
||
Miau miau miau |
1 change: 1 addition & 0 deletions
1
modules/sbt-mdoc-toc/src/sbt-test/sbt-mdoc-toc/simple_3/project/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=1.6.2 |
2 changes: 2 additions & 0 deletions
2
modules/sbt-mdoc-toc/src/sbt-test/sbt-mdoc-toc/simple_3/project/plugins.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.3.2") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-mdoc-toc" % sys.props("plugin.version")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# this test ensures `sbt-mdoc-toc` can create a table-of-contents | ||
> mdoc | ||
$ must-mirror target/mdoc/DOCS.md DOCS.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.0") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-fix" % "0.7.0") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-ci" % "2.4.2") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-github-header" % "0.11.2") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-github-mdoc" % "0.11.2") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-remove-test-from-pom" % "0.1.0") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-scalafix-defaults" % "0.6.0") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-scalafmt-defaults" % "0.6.0") | ||
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0") | ||
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10") | ||
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.7.0") | ||
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.3.3") | ||
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.3.2") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") | ||
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.0") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-fix" % "0.7.0") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-ci" % "2.4.2") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-github-header" % "0.11.2") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-github-mdoc" % "0.11.2") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-modules" % "0.2.0") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-remove-test-from-pom" % "0.1.0") | ||
// TODO: Disabled until a new version of `sbt-scalafix-defaults` is released | ||
// addSbtPlugin("com.alejandrohdezma" % "sbt-scalafix-defaults" % "0.6.0") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-scalafmt-defaults" % "0.6.0") | ||
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0") | ||
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10") | ||
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.7.0") | ||
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.3.3") | ||
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.3.2") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") |