diff --git a/.gitignore b/.gitignore
index 621511406a6..53312c4bc19 100644
--- a/.gitignore
+++ b/.gitignore
@@ -35,3 +35,6 @@ velocity.log
felix-cache/
/.metadata/
.DS_Store
+node
+node_modules
+package-lock.json
diff --git a/BUILDING.adoc b/BUILDING.adoc
index dd83c8c21de..1eafd7fc478 100644
--- a/BUILDING.adoc
+++ b/BUILDING.adoc
@@ -62,12 +62,7 @@ You can build the website and manual as follows:
./mvnw site
----
-And view it using a simple HTTP server, e.g., the one comes with the Python:
-
-[source,bash]
-----
-python3 -m http.server -d target/site
-----
+You can view the generated website with a browser by pointing it to `target/site` directory.
[#development]
== Development
diff --git a/antora-playbook.yaml b/antora-playbook.yaml
new file mode 100644
index 00000000000..4fc6b046ddf
--- /dev/null
+++ b/antora-playbook.yaml
@@ -0,0 +1,124 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to you under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+site:
+ title: Apache Log4j
+ url: "https://logging.apache.org/log4j/3.x"
+ start_page: "ROOT::index.adoc"
+
+content:
+ sources:
+ - url: .
+ branches: HEAD
+ start_paths:
+ - target/generated-site/antora
+ edit_url:
+
+asciidoc:
+ attributes:
+ # JSON Template Layout manual page has a deep sectioning, support it.
+ # The trailing `@` is added so the attribute can still can be overridden in the header of a page.
+ # For instance, we override this value in release notes page.
+ page-toclevels: "4@"
+ log4j-docgen-descriptor-directory: target/plugin-descriptors
+ log4j-docgen-type-filter-exclude-pattern: ^java\..+
+ log4j-docgen-type-target-template: |
+ #{{{replaceAll sourcedType.groupId "." "-"}}}_{{{replaceAll sourcedType.artifactId "." "-"}}}_{{{replaceAll sourcedType.type.className "." "-"}}}
+ extensions:
+ - "@asciidoctor/tabs"
+ - src/docgen/apiref-macro.js
+
+ui:
+
+ bundle:
+ url: "https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable"
+ snapshot: true
+
+ # Template files: https://github.com/asciidoctor/asciidoctor-docs-ui/blob/main/src
+ # Template variables: https://docs.antora.org/antora-ui-default/templates
+ supplemental_files:
+
+ # Add `@asciidoctor/tabs` extension styles
+ - path: css/vendor/tabs.css
+ contents: ./node_modules/@asciidoctor/tabs/dist/css/tabs.css
+
+ # Add `@asciidoctor/tabs` extension scripts
+ - path: js/vendor/tabs.js
+ contents: ./node_modules/@asciidoctor/tabs/dist/js/tabs.js
+
+ - path: partials/footer-scripts.hbs
+ contents: |
+
+
+
+
+ {{#if env.SITE_SEARCH_PROVIDER}}
+ {{> search-scripts}}
+ {{/if}}
+
+ - path: partials/head-styles.hbs
+ contents: |
+
+
+
+
+
+
+ - path: partials/header-content.hbs
+ contents: |
+
{@code + * %maxLen{[AppName, ${hostName}, ${web:contextPath}] %p: %c{1} - %m%notEmpty{ =>%ex{short}}}{160} + * }* * @author Thies Wellpott */ diff --git a/package.json b/package.json new file mode 100644 index 00000000000..8de82aed5be --- /dev/null +++ b/package.json @@ -0,0 +1,9 @@ +{ + "dependencies": { + "@antora/cli": "^3.2.0-alpha.4", + "@antora/site-generator-default": "^3.2.0-alpha.4", + "@asciidoctor/tabs": "^1.0.0-beta.6", + "fast-xml-parser": "^4.3.6", + "handlebars": "^4.7.8" + } +} diff --git a/pom.xml b/pom.xml index 7100d436d2a..115f2f88bf3 100644 --- a/pom.xml +++ b/pom.xml @@ -339,11 +339,21 @@
${dollar}{base64:Base64_encoded_data}
.
+ Base64 encoded data. The format is ${base64:Base64_encoded_data}
.
For example:
- ${dollar}{base64:SGVsbG8gV29ybGQhCg==}
yields Hello World!
.
+ ${base64:SGVsbG8gV29ybGQhCg==}
yields Hello World!
.