From c3f7dd0106c93a1314996a1dc7ecf7276c250cff Mon Sep 17 00:00:00 2001 From: Alexander Schwartz Date: Wed, 9 Aug 2023 17:51:29 +0200 Subject: [PATCH] Add attribute to distinguish community vs. product in the content Relates to #22345 --- README.md | 2 +- src/main/java/org/keycloak/webbuilder/utils/AsciiDoctor.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fc2dd952..11f32a5b 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Server and Operator guide sources are located at `https://github.com/keycloak/ke git clone https://github.com/keycloak/keycloak cd keycloak - mvn -pl docs clean install + mvn -pl docs/guides clean install Then you can build the website with the `999.0.0-SNAPSHOT` version: diff --git a/src/main/java/org/keycloak/webbuilder/utils/AsciiDoctor.java b/src/main/java/org/keycloak/webbuilder/utils/AsciiDoctor.java index 08f090b9..55bf4344 100644 --- a/src/main/java/org/keycloak/webbuilder/utils/AsciiDoctor.java +++ b/src/main/java/org/keycloak/webbuilder/utils/AsciiDoctor.java @@ -88,6 +88,7 @@ public void init(Context context) { globalAttributes = new HashMap<>(); globalAttributes.put("version", context.versions().getLatest().getVersion()); globalAttributes.put("majorMinorVersion", context.versions().getLatest().getVersionShorter()); + globalAttributes.put("project_community", "true"); } public void close() {