Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrates from tut to mdoc #286

Merged
merged 1 commit into from
Apr 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ We'll implement a dummy data source that can convert integers to strings. For co
import cats._
import cats.data.NonEmptyList
import cats.effect._
import cats.instances.list._
import cats.implicits._
import cats.syntax.all._

import fetch._

Expand Down Expand Up @@ -247,8 +245,6 @@ Fetch.run[IO](fetchMulti).unsafeRunTimed(5.seconds)
When fetching an identity, subsequent fetches for the same identity are cached. Let's try creating a fetch that asks for the same identity twice.

```scala mdoc:silent
import cats.syntax.all._

def fetchTwice[F[_] : Concurrent]: Fetch[F, (String, String)] = for {
one <- fetchString(1)
two <- fetchString(1)
Expand All @@ -269,16 +265,8 @@ executor.shutdownNow()

For more in-depth information, take a look at our [documentation](https://47degrees.github.io/fetch/docs.html).

## Fetch in the wild

If you wish to add your library here, please consider a PR to include it in the list below.

[comment]: # (Start Copyright)

# Copyright

Fetch is designed and developed by 47 Degrees

Copyright (C) 2016-2019 47 Degrees. <http://47deg.com>

[comment]: # (End Copyright)
5 changes: 3 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}

lazy val checkScalafmt = "+scalafmtCheck; +scalafmtSbtCheck;"
lazy val checkDocs = "docs/tut;"
lazy val checkDocs = "+docs/mdoc;"
lazy val checkJSTests = "+fetchJS/test; +debugJS/test;"
lazy val checkJVMTests =
"+coverage; +fetchJVM/test; +debugJVM/test; +examples/test; +coverageReport; +coverageAggregate;"
Expand All @@ -10,7 +10,7 @@ addCommandAlias(
"ci-test",
s"$checkScalafmt $checkDocs $checkJSTests $checkJVMTests"
)
addCommandAlias("ci-docs", "project-docs/mdoc; docs/tut; headerCreateAll")
addCommandAlias("ci-docs", "project-docs/mdoc; headerCreateAll")
addCommandAlias("ci-microsite", "docs/publishMicrosite")

lazy val root = project
Expand Down Expand Up @@ -48,6 +48,7 @@ lazy val docs = (project in file("docs"))
.settings(docsSettings: _*)
.settings(skip in publish := true)
.enablePlugins(MicrositesPlugin)
.enablePlugins(MdocPlugin)

lazy val `project-docs` = (project in file(".docs"))
.aggregate(fetchJVM)
Expand Down
Loading