From f2da27c4fa9e8bf18cebe942fd41b76d44904d80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Ho=C3=9F?= Date: Sun, 18 Apr 2021 23:43:42 +0200 Subject: [PATCH] add config section shortcodes --- yosql-website/content/configuration/_index.md | 6 ++--- .../content/configuration/files/_index.md | 26 ++++---------------- yosql-website/content/configuration/java/_index.md | 26 ++++---------------- .../content/configuration/repositories/_index.md | 28 ++++------------------ .../content/configuration/resources/_index.md | 26 ++++---------------- .../shortcodes/maven/config/files/index.html | 25 +++++++++++++++++++ .../shortcodes/maven/config/java/index.html | 25 +++++++++++++++++++ .../maven/config/repositories/index.html | 25 +++++++++++++++++++ .../shortcodes/maven/config/resources/index.html | 25 +++++++++++++++++++ 9 files changed, 119 insertions(+), 93 deletions(-) create mode 100644 yosql-website/layouts/shortcodes/maven/config/files/index.html create mode 100644 yosql-website/layouts/shortcodes/maven/config/java/index.html create mode 100644 yosql-website/layouts/shortcodes/maven/config/repositories/index.html create mode 100644 yosql-website/layouts/shortcodes/maven/config/resources/index.html diff --git a/yosql-website/content/configuration/_index.md b/yosql-website/content/configuration/_index.md index 6acf465f..b13c99cb 100644 --- a/yosql-website/content/configuration/_index.md +++ b/yosql-website/content/configuration/_index.md @@ -16,8 +16,7 @@ Depending on your tooling, `YoSQL` can be configured as explained in the followi ### Maven -In order to use `YoSQL` together with [Maven](https://maven.apache.org/), take a look at the tooling [documentation -for Maven](/tooling/maven/). +In order to use `YoSQL` together with [Maven](https://maven.apache.org/), take a look at the tooling [documentation for Maven](/tooling/maven/). {{< maven/config/index >}} @@ -39,8 +38,7 @@ yosql { ### Bazel -In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for -Bazel](/tooling/bazel/). +In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for Bazel](/tooling/bazel/). TODO: info for bazel diff --git a/yosql-website/content/configuration/files/_index.md b/yosql-website/content/configuration/files/_index.md index 27cac4c0..822615ca 100644 --- a/yosql-website/content/configuration/files/_index.md +++ b/yosql-website/content/configuration/files/_index.md @@ -16,26 +16,9 @@ The `files` configuration can be used to control how `YoSQL` interacts with file ### Maven -In order to use `YoSQL` together with [Maven](https://maven.apache.org/), take a look at the tooling [documentation -for Maven](/tooling/maven/). - -```xml - - - ... - - wtf.metio.yosql - yosql-tooling-maven - - - configValue - - - - ... - - -``` +In order to use `YoSQL` together with [Maven](https://maven.apache.org/), take a look at the tooling [documentation for Maven](/tooling/maven/). + +{{< maven/config/files/index >}} ### Gradle @@ -55,8 +38,7 @@ yosql { ### Bazel -In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for -Bazel](/tooling/bazel/). +In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for Bazel](/tooling/bazel/). TODO: info for bazel diff --git a/yosql-website/content/configuration/java/_index.md b/yosql-website/content/configuration/java/_index.md index 75b46bf1..db6d4e3e 100644 --- a/yosql-website/content/configuration/java/_index.md +++ b/yosql-website/content/configuration/java/_index.md @@ -16,26 +16,9 @@ The `java` configuration can be used to control how `YoSQL` uses Java in the gen ### Maven -In order to use `YoSQL` together with [Maven](https://maven.apache.org/), take a look at the tooling [documentation -for Maven](/tooling/maven/). - -```xml - - - ... - - wtf.metio.yosql - yosql-tooling-maven - - - configValue - - - - ... - - -``` +In order to use `YoSQL` together with [Maven](https://maven.apache.org/), take a look at the tooling [documentation for Maven](/tooling/maven/). + +{{< maven/config/java/index >}} ### Gradle @@ -55,8 +38,7 @@ yosql { ### Bazel -In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for -Bazel](/tooling/bazel/). +In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for Bazel](/tooling/bazel/). TODO: info for bazel diff --git a/yosql-website/content/configuration/repositories/_index.md b/yosql-website/content/configuration/repositories/_index.md index 9b2e3d5c..548d87d6 100644 --- a/yosql-website/content/configuration/repositories/_index.md +++ b/yosql-website/content/configuration/repositories/_index.md @@ -16,32 +16,15 @@ The `repositories` configuration can be used to control how `YoSQL` outputs repo ### Maven -In order to use `YoSQL` together with [Maven](https://maven.apache.org/), take a look at the tooling [documentation -for Maven](/tooling/maven/). - -```xml - - - ... - - wtf.metio.yosql - yosql-tooling-maven - - - configValue - - - - ... - - -``` +In order to use `YoSQL` together with [Maven](https://maven.apache.org/), take a look at the tooling [documentation for Maven](/tooling/maven/). + +{{< maven/config/repositories/index >}} ### Gradle In order to use `YoSQL` together with [Gradle](https://gradle.org/), take a look at the tooling [documentation for Gradle](/tooling/gradle/). -```groovy +```kotlin plugins { id("wtf.metio.yosql") } @@ -55,8 +38,7 @@ yosql { ### Bazel -In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for -Bazel](/tooling/bazel/). +In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for Bazel](/tooling/bazel/). TODO: info for bazel diff --git a/yosql-website/content/configuration/resources/_index.md b/yosql-website/content/configuration/resources/_index.md index a2c806f8..ba6264f0 100644 --- a/yosql-website/content/configuration/resources/_index.md +++ b/yosql-website/content/configuration/resources/_index.md @@ -16,26 +16,9 @@ The `resources` configuration can be used to control how `YoSQL` uses hardware r ### Maven -In order to use `YoSQL` together with [Maven](https://maven.apache.org/), take a look at the tooling [documentation -for Maven](/tooling/maven/). - -```xml - - - ... - - wtf.metio.yosql - yosql-tooling-maven - - - configValue - - - - ... - - -``` +In order to use `YoSQL` together with [Maven](https://maven.apache.org/), take a look at the tooling [documentation for Maven](/tooling/maven/). + +{{< maven/config/resources/index >}} ### Gradle @@ -55,8 +38,7 @@ yosql { ### Bazel -In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for -Bazel](/tooling/bazel/). +In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for Bazel](/tooling/bazel/). TODO: info for bazel diff --git a/yosql-website/layouts/shortcodes/maven/config/files/index.html b/yosql-website/layouts/shortcodes/maven/config/files/index.html new file mode 100644 index 00000000..66cece86 --- /dev/null +++ b/yosql-website/layouts/shortcodes/maven/config/files/index.html @@ -0,0 +1,25 @@ + + +
<build>
+    <plugins>
+        ...
+        <plugin>
+            <groupId>wtf.metio.yosql</groupId>
+            <artifactId>yosql-tooling-maven</artifactId>
+            <version>{{ getenv "YOSQL_RELEASE" }}</version>
+            <configuration>
+                <files>
+                    <configOption>configValue</configOption>
+                </files>
+            </configuration>
+        </plugin>
+        ...
+    </plugins>
+</build>
+
+
diff --git a/yosql-website/layouts/shortcodes/maven/config/java/index.html b/yosql-website/layouts/shortcodes/maven/config/java/index.html new file mode 100644 index 00000000..c26160c6 --- /dev/null +++ b/yosql-website/layouts/shortcodes/maven/config/java/index.html @@ -0,0 +1,25 @@ + + +
<build>
+    <plugins>
+        ...
+        <plugin>
+            <groupId>wtf.metio.yosql</groupId>
+            <artifactId>yosql-tooling-maven</artifactId>
+            <version>{{ getenv "YOSQL_RELEASE" }}</version>
+            <configuration>
+                <java>
+                    <configOption>configValue</configOption>
+                </java>
+            </configuration>
+        </plugin>
+        ...
+    </plugins>
+</build>
+
+
diff --git a/yosql-website/layouts/shortcodes/maven/config/repositories/index.html b/yosql-website/layouts/shortcodes/maven/config/repositories/index.html new file mode 100644 index 00000000..104f895a --- /dev/null +++ b/yosql-website/layouts/shortcodes/maven/config/repositories/index.html @@ -0,0 +1,25 @@ + + +
<build>
+    <plugins>
+        ...
+        <plugin>
+            <groupId>wtf.metio.yosql</groupId>
+            <artifactId>yosql-tooling-maven</artifactId>
+            <version>{{ getenv "YOSQL_RELEASE" }}</version>
+            <configuration>
+                <repositories>
+                    <configOption>configValue</configOption>
+                </repositories>
+            </configuration>
+        </plugin>
+        ...
+    </plugins>
+</build>
+
+
diff --git a/yosql-website/layouts/shortcodes/maven/config/resources/index.html b/yosql-website/layouts/shortcodes/maven/config/resources/index.html new file mode 100644 index 00000000..da90997d --- /dev/null +++ b/yosql-website/layouts/shortcodes/maven/config/resources/index.html @@ -0,0 +1,25 @@ + + +
<build>
+    <plugins>
+        ...
+        <plugin>
+            <groupId>wtf.metio.yosql</groupId>
+            <artifactId>yosql-tooling-maven</artifactId>
+            <version>{{ getenv "YOSQL_RELEASE" }}</version>
+            <configuration>
+                <resources>
+                    <configOption>configValue</configOption>
+                </resources>
+            </configuration>
+        </plugin>
+        ...
+    </plugins>
+</build>
+
+
-- 2.11.4.GIT