Skip to content

Commit

Permalink
Fix #3778: show ReadTheDocs document build date (#3779)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeTibbert committed Feb 21, 2024
1 parent 5b05e1c commit 73373bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def generateScalaNativeCurrentYear():
#
# today_fmt = '%B %d, %Y'

today_fmt = '%Y-%m-%d %H:%M:%S' # Scala Native change. Use ISO format.

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
Expand Down
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Scala Native
============

Document built at : |today|

Version: |release|

Scala Native is an optimizing ahead-of-time compiler and lightweight managed
Expand Down
4 changes: 2 additions & 2 deletions docs/sn_alabaster/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
meta.getAttribute("content") !== ""
) {
const el = document.createElement("p");
el.textContent = "Last updated: " + meta.getAttribute("content") + ".";
el.textContent = "Entry last updated: " + meta.getAttribute("content");
h1s[0].insertAdjacentElement("afterend", el);
}
});
</script>
{{ super() }}
{%- endblock %}
{%- endblock %}

0 comments on commit 73373bf

Please sign in to comment.