% -*- coding: utf-8 -*-
%
% Some font hacks for my Sphinx PDF documents
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{my-doc-style}[%
  2026/05/14 v0.1 (Franz Glasner) Some style customizations]

%
% For the title page: "Last updated on ..."
%
\DeclareRobustCommand*\vcsrevision[1]{\gdef\mds@vcs@revision{#1}}
\DeclareRobustCommand*\builddate[1]{\gdef\mds@builddate{#1}}
\vcsrevision{}
\builddate{}
% \sphinxmaketitle references \@thanks: abuse this
\gdef\@thanks{%
  \ifx\mds@builddate\@empty\relax%
  \else%
    \hfill\normalsize\textsf{Last updated on \mds@builddate%
    \ifx\mds@vcs@revision\@empty\relax\else\enspace(rv:\mds@vcs@revision )\fi}
  \fi
}
\endinput
