Skip to content

Commit

Permalink
Supporting More File Types On Generating README File (#104)
Browse files Browse the repository at this point in the history
* fix url path prefix.

* update readme.
  • Loading branch information
khajavi committed Jan 23, 2023
1 parent e5a79b1 commit d316284
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ _ZIO SBT_ is an sbt plugin for ZIO projects. It provides high-level SBT utilitie
Add the following lines to your `plugin.sbt` file:

```scala
addSbtPlugin("dev.zio" % "zio-sbt-website" % "0.3.8")
addSbtPlugin("dev.zio" % "zio-sbt-website" % "0.3.9")
```

Then you can enable it by using the following code in your `build.sbt` file:
Expand Down
2 changes: 1 addition & 1 deletion zio-sbt-website/src/main/scala/zio/sbt/WebsitePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ object WebsitePlugin extends sbt.AutoPlugin {
}

private def prefixUrlsWith(markdown: String, prefix: String): String = {
val regex = """\((.+?.md)\)""".r
val regex = """\((.+?.(md|scala|png|jpg))\)""".r

regex.replaceAllIn(markdown, '(' + prefix + _.group(1) + ')')
}
Expand Down

0 comments on commit d316284

Please sign in to comment.