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

vy pushed a commit to branch 3.x-docgen
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 570905d457a13e0e8879b845eba80550ccb0100c
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Mon Mar 25 12:08:58 2024 +0100

    Fix templating
---
 pom.xml                                                            | 4 ++--
 src/{asciidoc/templates => template/asciidoctor}/document.html.erb | 2 +-
 src/{docgen-templates => template/docgen}/index.adoc.ftl           | 0
 src/{docgen-templates => template/docgen}/type.adoc.ftl            | 0
 4 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index d8c89eda57..5dffdfa995 100644
--- a/pom.xml
+++ b/pom.xml
@@ -836,7 +836,7 @@
             </goals>
             <phase>pre-site</phase>
             <configuration>
-              
<templateDirectory>${project.basedir}/src/docgen-templates</templateDirectory>
+              
<templateDirectory>${project.basedir}/src/template/docgen</templateDirectory>
               <indexTemplate>
                 <source>index.adoc.ftl</source>
                 
<target>${project.build.directory}/generated-sources/site/asciidoc/plugin-reference.adoc</target>
@@ -906,7 +906,7 @@
               <outputDirectory>target/site</outputDirectory>
               <preserveDirectories>true</preserveDirectories>
               <templateDirs>
-                <dir>src/asciidoc/templates</dir>
+                <dir>src/template/asciidoctor</dir>
               </templateDirs>
               <attributes>
                 <source-highlighter>rouge</source-highlighter>
diff --git a/src/asciidoc/templates/document.html.erb 
b/src/template/asciidoctor/document.html.erb
similarity index 99%
rename from src/asciidoc/templates/document.html.erb
rename to src/template/asciidoctor/document.html.erb
index bd542d7765..3f0e34d84d 100644
--- a/src/asciidoc/templates/document.html.erb
+++ b/src/template/asciidoctor/document.html.erb
@@ -69,7 +69,7 @@
 <!--            <li><a href="#">Manual</a></li>-->
 <!--            <li><a href="#">Guides</a></li>-->
             <li><a href="/legacy-docs.html">Old Docs</a></li>
-            <li><a href="/plugin-reference/index.html">Plugin 
reference</a></li>
+            <li><a href="/plugin-reference.html">Plugin reference</a></li>
             <li><a 
href="https://cwiki.apache.org/confluence/display/LOGGING/Log4j";>Wiki</a></li>
             <li><a href="/articles.html">Articles</a></li>
             <li><a href="/faq.html">FAQ</a></li>
diff --git a/src/docgen-templates/index.adoc.ftl 
b/src/template/docgen/index.adoc.ftl
similarity index 100%
rename from src/docgen-templates/index.adoc.ftl
rename to src/template/docgen/index.adoc.ftl
diff --git a/src/docgen-templates/type.adoc.ftl 
b/src/template/docgen/type.adoc.ftl
similarity index 100%
rename from src/docgen-templates/type.adoc.ftl
rename to src/template/docgen/type.adoc.ftl

Reply via email to