You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by sw...@apache.org on 2025/09/24 07:36:16 UTC

(logging-log4cxx) branch separate_web_page_footer_file created (now f5d2a18d)

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

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


      at f5d2a18d Add the web-site publication date to each page dynamically

This branch includes the following new commits:

     new f5d2a18d Add the web-site publication date to each page dynamically

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(logging-log4cxx) 01/01: Add the web-site publication date to each page dynamically

Posted by sw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit f5d2a18d4c570db60c11c248d7ffb1f7ea8a4be5
Author: Stephen Webb <sw...@gmail.com>
AuthorDate: Wed Sep 24 17:35:55 2025 +1000

    Add the web-site publication date to each page dynamically
---
 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}';