diff docs/conf.py @ 776:48deafc1fd2f

Use the new implementations of my-doc-fonts.sty and my-doc-style.sty. Changed titlepage to contain build date the VCS revision. Needed some conf.py variable changes: today is now the logical date (revision date) and today is the build date.
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 16 May 2026 01:52:49 +0200
parents 0c3507865bca
children 236a1d00b8a6
line wrap: on
line diff
--- a/docs/conf.py	Wed May 13 20:45:20 2026 +0200
+++ b/docs/conf.py	Sat May 16 01:52:49 2026 +0200
@@ -34,9 +34,9 @@
 version = '.'.join(configmix.__version__.split('.')[:2])
 # The full version, including alpha/beta/rc tags
 release = configmix.__version__
-release_date = configmix.__date__
+release_date = today = configmix.__date__
 
-today = datetime.date.today().isoformat()
+current_date = datetime.date.today().isoformat()
 
 
 # -- General configuration ---------------------------------------------------
@@ -96,7 +96,7 @@
 html_theme = 'haiku'
 # for the Haiku title
 html_short_title = u("%s %s") % (project, release)
-html_last_updated_fmt = "%s (rev %s)" % (today, configmix.__revision__)
+html_last_updated_fmt = "%s (rev %s)" % (current_date, configmix.__revision__)
 
 # Theme options are theme-specific and customize the look and feel of a theme
 # further.  For a list of options available for each theme, see the
@@ -144,7 +144,10 @@
     'pointsize': '11pt',
 
     'babel': r'\usepackage{babel}',
-    'fontpkg': r'\usepackage[charter]{my-doc-fonts}',
+    'preamble': r'\usepackage[stdtitle=false]{my-doc-style}',
+    'maketitle': r'\builddate{%s}\vcsrevision{%s}\sphinxmaketitle' \
+      % (current_date, configmix.__revision__),
+    'fontpkg': r'\usepackage[fonts=charter]{my-doc-fonts}',
 
     # Latex figure (float) alignment
     #
@@ -156,6 +159,7 @@
 }
 latex_additional_files = [
     "_latex/my-doc-fonts.sty",
+    "_latex/my-doc-style.sty",    
 ]
 
 # Grouping the document tree into LaTeX files. List of tuples