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

swebb2066 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git


The following commit(s) were added to refs/heads/master by this push:
     new 31939a3b Add the web-site publication date to each page dynamically 
(#541)
31939a3b is described below

commit 31939a3b58dcb34f53d59640319139eda6baf125
Author: Stephen Webb <[email protected]>
AuthorDate: Thu Sep 25 09:23:07 2025 +1000

    Add the web-site publication date to each page dynamically (#541)
---
 src/site/CMakeLists.txt                     | 4 ++++
 src/site/doxy/Doxyfile.in                   | 2 +-
 src/site/doxy/footer.html                   | 5 +++--
 src/site/doxy/set-site-published-date.js.in | 1 +
 4 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/site/CMakeLists.txt b/src/site/CMakeLists.txt
index 0529236d..25aef6bb 100644
--- a/src/site/CMakeLists.txt
+++ b/src/site/CMakeLists.txt
@@ -41,6 +41,10 @@ set(APR_UTIL_RELEASE_VERSION "1.6.3")
 set(APR_UTIL_SOURCE_PACKAGE_FILE_NAME "apr-util-${APR_UTIL_RELEASE_VERSION}")
 set(APR_UTIL_SOURCE_PACKAGE_FILE_URL 
"${APACHE_APR_SOURCE_PACKAGE_URL}/${APR_UTIL_SOURCE_PACKAGE_FILE_NAME}")
 
+string(TIMESTAMP SITE_PUBLISHED_DATE "%a %b %d %Y" UTC)
+configure_file( 
"${CMAKE_CURRENT_SOURCE_DIR}/doxy/set-site-published-date.js.in"
+    "${CMAKE_CURRENT_BINARY_DIR}/set-site-published-date.js" )
+
 configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/doxy/Doxyfile.in
     ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile )
 
diff --git a/src/site/doxy/Doxyfile.in b/src/site/doxy/Doxyfile.in
index 6a9bd2c0..8de9efcb 100644
--- a/src/site/doxy/Doxyfile.in
+++ b/src/site/doxy/Doxyfile.in
@@ -1355,7 +1355,7 @@ HTML_EXTRA_STYLESHEET  = src/site/doxy/customdoxygen.css
 # files will be copied as-is; there are no commands or markers available.
 # This tag requires that the tag GENERATE_HTML is set to YES.
 
-HTML_EXTRA_FILES       =
+HTML_EXTRA_FILES       = ${CMAKE_CURRENT_BINARY_DIR}/set-site-published-date.js
 
 # The HTML_COLORSTYLE tag can be used to specify if the generated HTML output
 # should be rendered with a dark or light theme.
diff --git a/src/site/doxy/footer.html b/src/site/doxy/footer.html
index 5ff66e9c..192e6897 100644
--- a/src/site/doxy/footer.html
+++ b/src/site/doxy/footer.html
@@ -1,4 +1,4 @@
-<!-- HTML footer for doxygen 1.8.13-->
+<!-- HTML footer for doxygen 1.14.0-->
 <!-- start footer part -->
 <!--BEGIN GENERATE_TREEVIEW-->
 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
@@ -6,7 +6,7 @@
     $navpath
     <li class="footer">$generatedby
     <a href="http://www.doxygen.org/index.html";>
-    <img class="footer" src="https://www.doxygen.nl/images/doxygen.png"; 
alt="Doxygen"/></a> $doxygenversion on $date </li>
+    <img class="footer" src="https://www.doxygen.nl/images/doxygen.png"; 
alt="Doxygen"/></a> $doxygenversion on <span 
id='site-published-date'>SITE_PUBLISHED_DATE</span></li>
     <li class="center">
 Copyright &copy; 2017-2024 <a href="https://www.apache.org/";>Apache Software 
Foundation</a>.
 Apache, Chainsaw, log4cxx, Log4j, Log4net, log4php and the Apache feather logo 
are
@@ -18,6 +18,7 @@ Other names may be trademarks of their respective owners.
     </li>
   </ul>
 </div>
+<script src="set-site-published-date.js"></script>
 <!--END GENERATE_TREEVIEW-->
 </body>
 </html>
diff --git a/src/site/doxy/set-site-published-date.js.in 
b/src/site/doxy/set-site-published-date.js.in
new file mode 100644
index 00000000..ae1781a9
--- /dev/null
+++ b/src/site/doxy/set-site-published-date.js.in
@@ -0,0 +1 @@
+document.getElementById('site-published-date').textContent = 
'${SITE_PUBLISHED_DATE}';

Reply via email to