Add the web-site publication date to each page dynamically (#541)
diff --git a/src/site/CMakeLists.txt b/src/site/CMakeLists.txt
index 0529236..25aef6b 100644
--- a/src/site/CMakeLists.txt
+++ b/src/site/CMakeLists.txt
@@ -41,6 +41,10 @@
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 6a9bd2c..8de9efc 100644
--- a/src/site/doxy/Doxyfile.in
+++ b/src/site/doxy/Doxyfile.in
@@ -1355,7 +1355,7 @@
# 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 5ff66e9..192e689 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 © 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 @@
</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 0000000..ae1781a
--- /dev/null
+++ b/src/site/doxy/set-site-published-date.js.in
@@ -0,0 +1 @@
+document.getElementById('site-published-date').textContent = '${SITE_PUBLISHED_DATE}';