You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2023/01/26 17:12:35 UTC

[isis] branch master updated: CAUSEWAY-3343: adds kroki support to demo using kroki.io

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new d1675e6084 CAUSEWAY-3343: adds kroki support to demo using kroki.io
d1675e6084 is described below

commit d1675e60845ad34a60018f24b9a9b67fd0f36753
Author: Andi Huber <ah...@apache.org>
AuthorDate: Thu Jan 26 18:12:29 2023 +0100

    CAUSEWAY-3343: adds kroki support to demo using kroki.io
---
 .../java/org/apache/causeway/core/config/CausewayConfiguration.java | 6 ++++--
 examples/demo/domain/src/main/resources/application.yml             | 6 ++++++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/core/config/src/main/java/org/apache/causeway/core/config/CausewayConfiguration.java b/core/config/src/main/java/org/apache/causeway/core/config/CausewayConfiguration.java
index ab1fb05207..dbe37dcc83 100644
--- a/core/config/src/main/java/org/apache/causeway/core/config/CausewayConfiguration.java
+++ b/core/config/src/main/java/org/apache/causeway/core/config/CausewayConfiguration.java
@@ -74,6 +74,8 @@ import org.apache.causeway.applib.services.userui.UserMenu;
 import org.apache.causeway.applib.value.semantics.TemporalValueSemantics.TemporalEditingPattern;
 import org.apache.causeway.commons.internal.base._NullSafe;
 import org.apache.causeway.commons.internal.context._Context;
+import org.apache.causeway.core.config.CausewayConfiguration.Core;
+import org.apache.causeway.core.config.CausewayConfiguration.Viewer;
 import org.apache.causeway.core.config.metamodel.facets.ActionConfigOptions;
 import org.apache.causeway.core.config.metamodel.facets.CollectionLayoutConfigOptions;
 import org.apache.causeway.core.config.metamodel.facets.DomainObjectConfigOptions;
@@ -2669,9 +2671,9 @@ public class CausewayConfiguration {
         @Data
         public static class Kroki {
             /**
-             * If set adds plantuml support to the AsciiDoc value type.
+             * If set, adds plantuml support to the AsciiDoc value type.
              * <p>
-             * Eg. a docker instance like {@literal yuzutech/kroki}.
+             * Eg. via docker instance like {@literal yuzutech/kroki}.
              */
             private URL backendUrl = null;
         }
diff --git a/examples/demo/domain/src/main/resources/application.yml b/examples/demo/domain/src/main/resources/application.yml
index 9730fc957c..125823ae6f 100644
--- a/examples/demo/domain/src/main/resources/application.yml
+++ b/examples/demo/domain/src/main/resources/application.yml
@@ -67,6 +67,12 @@ causeway:
       translation:
         po:
           mode: disabled
+          
+  value-types:
+    kroki:
+      # don't use this in production, as you might not want to share sensitive data over the public wire
+      # instead use a private docker instance like eg. yuzutech/kroki 
+      backend-url: https://kroki.io
 
   viewer:
     common: