Compare commits

..

1 commit

Author SHA1 Message Date
daniel
a1aac59a6f
Fix auto guide generation on master (#284)
* prevent warning on user guide creation: current user from gh actions vs. owner: detected dubious ownership in repository at '/__w/moderncv/moderncv'

* manipulate conditions for tests besides the master branch!

* add debug output lines

* <automated> build of user guide

* revert debug outputs and manipulation of branches for tests

* Revert "<automated> build of user guide"

This reverts commit 0da41eb48a.
2026-05-25 23:04:48 +02:00
5 changed files with 8 additions and 16 deletions

View file

@ -49,6 +49,8 @@ jobs:
apt update && apt install git -y apt update && apt install git -y
git config --global user.name '${{ env.UG_AUTHOR }}' git config --global user.name '${{ env.UG_AUTHOR }}'
git config --global user.email '${{ github.actor }}@users.noreply.github.com' git config --global user.email '${{ github.actor }}@users.noreply.github.com'
# prevent error message due to mismatch in users: process in gh actions vs. owner of repo
git config --global --add safe.directory /__w/moderncv/moderncv
ls -l ls -l
git add manual/moderncv_userguide.pdf git add manual/moderncv_userguide.pdf
git commit -m "${{ env.UG_COMMIT_MESSAGE }}" git commit -m "${{ env.UG_COMMIT_MESSAGE }}"

View file

@ -8,7 +8,6 @@ version next
- Fix missing Senders Name in Header (#278) - Fix missing Senders Name in Header (#278)
- Document an additional example in the userguide on how to adjust the skill matrix (#213) - Document an additional example in the userguide on how to adjust the skill matrix (#213)
- Adds contributing guidelines for moderncv (#275) - Adds contributing guidelines for moderncv (#275)
- New Contemporary style option - separator under the CV header can be shown or hidden (#280)
version 2.5.1 (31 Jan 2026) version 2.5.1 (31 Jan 2026)

View file

@ -716,9 +716,7 @@ This style allows the following options which \emph{only} affect header and foot
\textbf{\code{data in head}} & values: \code{details} (default), \code{nodetails}. \textbf{\code{data in head}} & values: \code{details} (default), \code{nodetails}.
Toggles between the header and footer as the location of personal data on the page. \\ Toggles between the header and footer as the location of personal data on the page. \\
\textbf{\code{qr}} & values: \code{qr} (default), \code{noqr}. \textbf{\code{qr}} & values: \code{qr} (default), \code{noqr}.
Enables or disables the inclusion of a QR code of your personal website. \\ Enables or disables the inclusion of a QR code of your personal website.
\textbf{\code{separator in head}} & values: \code{separator} (default), \code{noseparator}.
Shows or hides the separator line after the colored header.
\end{tabular} \end{tabular}
\note For the \code{contemporary} style it is recommended to use the \code{\\moderncvcolor\{cerulean\}} color scheme. The \code{contemporary} style is even more appealing with reduced margins. Use this in your preamble: \note For the \code{contemporary} style it is recommended to use the \code{\\moderncvcolor\{cerulean\}} color scheme. The \code{contemporary} style is even more appealing with reduced margins. Use this in your preamble:
\begin{lstlisting} \begin{lstlisting}

View file

@ -29,13 +29,8 @@
\@initializeif{\if@right}\@rightfalse \@initializeif{\if@right}\@rightfalse
\DeclareOption{right} {\@leftfalse\@righttrue} \DeclareOption{right} {\@leftfalse\@righttrue}
% separator line option: "separator" (default) or "noseparator"
\@initializeif{\if@separator}\@separatortrue
\DeclareOption{separator} {\@separatortrue}
\DeclareOption{noseparator} {\@separatorfalse}
\DeclareOption*{}% avoid choking on unknown options \DeclareOption*{}% avoid choking on unknown options
\ExecuteOptions{details,qr,left,separator} \ExecuteOptions{details,qr,left}
\ProcessOptions*\relax% \ProcessOptions* processes the options in the order provided (i.e., with the later ones possibly overriding the former ones), while \ProcessOptions processes them in the order of the package \ProcessOptions*\relax% \ProcessOptions* processes the options in the order provided (i.e., with the later ones possibly overriding the former ones), while \ProcessOptions processes them in the order of the package
@ -153,10 +148,10 @@
% case with no photo: assure defined \@photoframewidth with 2pt % case with no photo: assure defined \@photoframewidth with 2pt
\ifthenelse{\isundefined{\@photo}}{\@initializelength{\@photoframewidth}\setlength{\@photoframewidth}{2pt}}{}% \ifthenelse{\isundefined{\@photo}}{\@initializelength{\@photoframewidth}\setlength{\@photoframewidth}{2pt}}{}%
\if@separator% \path[draw,line width=\@photoframewidth]
\path[draw,line width=\@photoframewidth, color=headhr!85!black] (head-bg.south west) edge[color=headhr!85!black] ([xshift=8em]head-bg.south west)
(head-bg.south west) -- (head-bg.south east); ([xshift=8em]head-bg.south west) edge[color=headhr] ([xshift=-8em]head-bg.south east)
\fi% ([xshift=-8em]head-bg.south east) edge[color=headhr!85!black] (head-bg.south east);
\end{tikzpicture}% \end{tikzpicture}%
\if@left% \if@left%
\usebox{\makecvheadpicturebox}% \usebox{\makecvheadpicturebox}%

View file

@ -19,8 +19,6 @@
\DeclareOption{right}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,right}} \DeclareOption{right}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,right}}
\DeclareOption{qr} {\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,qr}} \DeclareOption{qr} {\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,qr}}
\DeclareOption{noqr}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,noqr}} \DeclareOption{noqr}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,noqr}}
\DeclareOption{separator}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,separator}}
\DeclareOption{noseparator}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,noseparator}}
\DeclareOption*{}% avoid choking on unknown options \DeclareOption*{}% avoid choking on unknown options
\ExecuteOptions{left,qr} \ExecuteOptions{left,qr}