diff --git a/build.sbt b/build.sbt
index 4034e7a..96b4ca7 100644
--- a/build.sbt
+++ b/build.sbt
@@ -145,6 +145,8 @@ lazy val docsScalaNativeBindingsDirectory = settingKey[File]("wordcount source")
lazy val docs = nativeProject("docs")
.enablePlugins(GhpagesPlugin, ParadoxSitePlugin, ParadoxMaterialThemePlugin)
.enablePlugins(ScalaNativeBindgenPlugin)
+ .settings(
+ org.scalanative.bindgen.build.ParadoxSupport.paradoxWithCustomDirectives)
.settings(
publish / skip := true,
docsUsingBindingsDirectory := (Test / resourceDirectory).value / "using-bindings",
diff --git a/docs/src/paradox/bindings/iconv.md b/docs/src/paradox/bindings/iconv.md
index 3ad83f5..0743948 100644
--- a/docs/src/paradox/bindings/iconv.md
+++ b/docs/src/paradox/bindings/iconv.md
@@ -2,20 +2,7 @@
To use this binding add the following resolver and the dependency:
-sbt
-: @@snip [build.sbt](../resources/build.sbt)
-
-Maven
-: @@snip [pom.xml](../resources/pom.xml) { #library_resolver }
-
-Gradle
-: @@snip [build.gradle](../resources/build.gradle)
-
-@@dependency[sbt,Maven,Gradle] {
- group="org.scala-native.bindgen"
- artifact="libiconv_$scala.binary.version$"
- version="$project.version$"
-}
+@@binding[iconv]
The [`iconv.h`] header allows to convert text between different character sets, for example UTF-8 to ISO-8859-1.
diff --git a/docs/src/paradox/bindings/posix.md b/docs/src/paradox/bindings/posix.md
index d3df746..77d6f0c 100644
--- a/docs/src/paradox/bindings/posix.md
+++ b/docs/src/paradox/bindings/posix.md
@@ -2,21 +2,7 @@
An addition to Scala Native's [POSIX](http://www.scala-native.org/en/latest/lib/posixlib.html) bindings. To use one of the POSIX bindings you must add the resolver and the dependency:
-sbt
-: @@snip [build.sbt](../resources/build.sbt)
-
-Maven
-: @@snip [pom.xml](../resources/pom.xml) { #library_resolver }
-
-Gradle
-: @@snip [build.gradle](../resources/build.gradle)
-
-
-@@dependency[sbt,Maven,Gradle] {
- group="org.scala-native.bindgen"
- artifact="libposix_$scala.binary.version$"
- version="$project.version$"
-}
+@@binding[posix]
Binding objects are available under the package name `
diff --git a/docs/src/paradox/bindings/utf8proc.md b/docs/src/paradox/bindings/utf8proc.md
index f844fee..1e61ab3 100644
--- a/docs/src/paradox/bindings/utf8proc.md
+++ b/docs/src/paradox/bindings/utf8proc.md
@@ -4,20 +4,7 @@ This binding for [`utf8proc.h`] provides Unicode normalization, case-folding, an
To use it add the following resolver and the dependency:
-sbt
-: @@snip [build.sbt](../resources/build.sbt)
-
-Maven
-: @@snip [pom.xml](../resources/pom.xml) { #library_resolver }
-
-Gradle
-: @@snip [build.gradle](../resources/build.gradle)
-
-@@dependency[sbt,Maven,Gradle] {
- group="org.scala-native.bindgen"
- artifact="libutf8proc_$scala.binary.version$"
- version="$project.version$"
-}
+@@binding[utf8proc]
## Example
diff --git a/docs/src/paradox/resources/build.gradle b/docs/src/paradox/resources/build.gradle
deleted file mode 100644
index 3b95f25..0000000
--- a/docs/src/paradox/resources/build.gradle
+++ /dev/null
@@ -1,5 +0,0 @@
-repositories {
- maven {
- url "https://dl.bintray.com/scala-native-bindgen/maven"
- }
-}
diff --git a/docs/src/paradox/resources/build.sbt b/docs/src/paradox/resources/build.sbt
deleted file mode 100644
index 841a663..0000000
--- a/docs/src/paradox/resources/build.sbt
+++ /dev/null
@@ -1 +0,0 @@
-resolvers += Resolver.bintrayRepo("scala-native-bindgen", "maven")
diff --git a/docs/src/paradox/resources/pom.xml b/docs/src/paradox/resources/pom.xml
deleted file mode 100644
index e9ff9dd..0000000
--- a/docs/src/paradox/resources/pom.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
resolvers += Resolver.bintrayRepo("scala-native-bindgen", "maven")
+ |libraryDependencies += "${group}" %%% "${artifactName}" % "${projectVersion}"
+ |
+ |<repositories>
+ | <repository>
+ | <id>maven</id>
+ | <url>${bintrayRepo}</url>
+ | </repository>
+ |</repositories>
+ |
+ |<dependencies>
+ | <dependency>
+ | <groupId>${group}</groupId>
+ | <artifactId>${artifactId}</artifactId>
+ | <version>${projectVersion}</version>
+ | </dependency>
+ |</dependencies>
+ |
+ |repositories {
+ | maven {
+ | url "${bintrayRepo}"
+ | }
+ |}
+ |
+ |dependencies {
+ | compile group: '${group}', name: '${artifactId}', version: '${projectVersion}'
+ |}
+ |
+ |