Commit 422f0787 authored by Debsankha manik's avatar Debsankha manik
Browse files

changed bgcolor of code snippets

parent 08ec28fa
......@@ -23,6 +23,7 @@
% start custom macros
\definecolor{light-gray}{gray}{0.95}
\definecolor{code-bg}{RGB}{244,241,140}
\newcommand{\code}[1]{\colorbox{light-gray}{\texttt{#1}}}
\newtcbox{\badge}{nobeforeafter,colframe=green,colback=green!10!white,box align=base,size=fbox,arc=4pt}
% custom list with no indentation
......@@ -119,7 +120,7 @@ On each commit (or according to some fine-tuned criteria)
\end{frame}
\begin{frame}[fragile]{How to Set This Up?}
\inputminted{yaml}{snippets/ci-testing.yml}
\inputminted[bgcolor=code-bg]{yaml}{snippets/ci-testing.yml}
\end{frame}
\begin{frame}{Use Case 2: Integration Tests}
......@@ -160,7 +161,7 @@ We wanted a nighly run of these ``integration tests'' on master.
\alertitem Specify a new \code{stage} in the CI pipeline that is to be
triggered only on schedule, not automatically on each commit.
\item<+->
\begin{minted}[bgcolor=light-gray]{yaml}
\begin{minted}[bgcolor=code-bg]{yaml}
only:
- schedules
- master
......@@ -169,7 +170,7 @@ only:
using \code{artifact}s (more on this later).
\item<+->
\begin{minted}[bgcolor=light-gray]{yaml}
\begin{minted}[bgcolor=code-bg]{yaml}
artifacts:
paths:
- public # this is where we save
......@@ -194,16 +195,16 @@ artifacts:
\alertitem Use a docker image with \code{texlive} (here \code{blang/latex})
\alertitem Define a job that invokes \code{latexmk} to compile the PDF.
\item<+->
\begin{minted}[bgcolor=light-gray]{yaml}
\begin{minted}[bgcolor=code-bg]{yaml}
makepdf:
stage: build
script:
- latexmk -e '$pdflatex=q/pdflatex %O\
-shell-escape %S/' -pdf
-shell-escape %S/' -pdf
\end{minted}
\alertitem Use \code{job artifacts} to store the compiled PDF.
\item<+->
\begin{minted}[bgcolor=light-gray]{yaml}
\begin{minted}[bgcolor=code-bg]{yaml}
artifacts:
paths:
- "*.pdf"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment