Use git revision for documentation.

This commit is contained in:
Florian Pose 2023-02-02 11:08:30 +01:00
parent 7f56fce837
commit 0b27207348
3 changed files with 12 additions and 17 deletions

View File

@ -63,6 +63,7 @@ pdf:
image: registry.gitlab.com/etherlab.org/build-container-factory/leap-15.3:texlive
script:
- cd documentation
- git show -s --format="\def\revision{%h}\def\gitversion{%(describe)}\def\gitauthor{%an}\def\isodate#1-#2-#3x{\day=#3 \month=#2 \year=#1}\isodate %csx" HEAD > git.tex
- make
- make index
- make

View File

@ -2,8 +2,6 @@
%
% IgH EtherCAT Master Documentation
%
% $Id$
%
% vi: spell spelllang=en tw=78
%
%------------------------------------------------------------------------------
@ -16,7 +14,6 @@
\usepackage{makeidx}
\usepackage[refpage]{nomencl}
\usepackage{listings}
\usepackage[nofancy]{rcsinfo}
\usepackage{SIunits}
\usepackage{amsmath} % for \text{}
\usepackage{longtable}
@ -58,7 +55,7 @@
\newcommand{\IgH}{\raisebox{-0.7667ex}
{\includegraphics[height=2.2ex]{images/ighsign}}}
\rcsInfo $RCSId$
\input{git}
\newcommand{\masterversion}{1.5.2}
\newcommand{\linenum}[1]{\normalfont\textcircled{\tiny #1}}
@ -67,8 +64,8 @@
\makenomenclature
% Revision and date on inner footer
\ifoot[\scriptsize\rcsInfoRevision, \rcsInfoDate]
{\scriptsize\rcsInfoRevision, \rcsInfoDate}
\ifoot[\scriptsize\gitversion, \today]
{\scriptsize\gitversion, \date}
%------------------------------------------------------------------------------
@ -92,8 +89,8 @@
\url{fp@igh.de}\\[1ex] Ingenieurgemeinschaft \IgH}
\vspace{\fill}
{\Large Essen, \rcsInfoLongDate\\[1ex]
Revision \rcsInfoRevision}
{\Large Essen, \today\\[1ex]
Revision \gitversion}
\end{center}
\end{titlepage}

View File

@ -2,9 +2,7 @@
%
% IgH EtherCAT Master Documentation (French version)
%
% $Id$
%
% vi: spell spelllang=en tw=78
% vi: spell spelllang=fr tw=78
%
%------------------------------------------------------------------------------
@ -17,7 +15,6 @@
\usepackage{makeidx}
\usepackage[refpage]{nomencl}
\usepackage{listings}
\usepackage[nofancy]{rcsinfo}
\usepackage{SIunits}
\usepackage{amsmath} % for \text{}
\usepackage{longtable}
@ -59,7 +56,7 @@
\newcommand{\IgH}{\raisebox{-0.7667ex}
{\includegraphics[height=2.2ex]{images/ighsign}}}
\rcsInfo $RCSId$
\input{git}
\newcommand{\masterversion}{1.5.2}
\newcommand{\linenum}[1]{\normalfont\textcircled{\tiny #1}}
@ -68,8 +65,8 @@
\makenomenclature
% Revision and date on inner footer
\ifoot[\scriptsize\rcsInfoRevision, \rcsInfoDate]
{\scriptsize\rcsInfoRevision, \rcsInfoDate}
\ifoot[\scriptsize\gitversion, \today]
{\scriptsize\gitversion, \today}
%------------------------------------------------------------------------------
@ -93,8 +90,8 @@
\url{fp@igh.de}\\[1ex] Ingenieurgemeinschaft \IgH}
\vspace{\fill}
{\Large Essen, \rcsInfoLongDate\\[1ex]
R\'evision \rcsInfoRevision}
{\Large Essen, \today\\[1ex]
R\'evision \gitversion}
\vspace{\fill} {\Large Traduit en fran\c{c}ais par S\'ebastien BLANCHET }