Skip to content
Merged

5.1.1 #261

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/latex-builder.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: Latex Builder

on: [push]
Expand All @@ -13,8 +14,9 @@ jobs:
- name: Install LaTex utilities
run: sudo apt update && sudo apt-get install -y texlive-full
- name: Get version from file
run: echo "VERSION=version/$(cat version)" >> $GITHUB_ENV
- name: Attempting to build PDFs
run: echo "::set-output name=version::$(cat version)"
id: version
- name: Build PDFs
run: make
release-it:
permissions:
Expand All @@ -25,9 +27,14 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install LaTex utilities
run: sudo apt update && sudo apt-get install -y texlive-full
- name: Get version from file
id: get_version
run: echo "VERSION=$(cat version)" >> "$GITHUB_OUTPUT"
run: echo "VERSION=version/$(cat version)" >> $GITHUB_ENV
- name: Name release from version
id: get_release
run: echo "RELEASE=release_$(cat version)" >> $GITHUB_ENV
- name: Build PDFs
run: make
- name: Upload PDFs archives
Expand All @@ -52,4 +59,4 @@ jobs:
name: ${{env.RELEASE}}
tag_name: ${{env.VERSION}}
make_latest: true
body_path: CHANGELOG.md
body_path: CHANGELOG.md
13 changes: 4 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# 5.1.0
# 5.1.1

- updated logo, acknowledgements, and py_proj.tex
- README
- updated instructions
- refacto : one file per exercise
- Added satisfaction forms within PDFs
- indentation and overflows fixs
- corrected spelling mistakes
- Updated Github actions
- Displaced recurring files (acknowledgements and instructions) to a new `/resources/42ai_bootcamps/` folder.
- Added sat forms within the conclusion of each day.
- Updated `instructions` to add a reference to Black package, and a cautionary word about using LLMs.
Binary file modified build/module05.pdf
Binary file not shown.
Binary file modified build/module06.pdf
Binary file not shown.
Binary file modified build/module07.pdf
Binary file not shown.
Binary file modified build/module08.pdf
Binary file not shown.
Binary file modified build/module09.pdf
Binary file not shown.
5 changes: 3 additions & 2 deletions module05/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ DEPS = exercises/en.ex02_interlude.tex \
exercises/en.ex03_interlude.tex \
exercises/en.ex06_interlude.tex \
exercises/en.ex08_interlude.tex \
en.instructions.tex \
en.acknowledgements.tex \
../resources/42ai_bootcamps/en.instructions.tex \
../resources/42ai_bootcamps/en.acknowledgements.tex \
../resources/latex/redefinition-commands.tex \
useful_resources.tex

# Relative path to the LaTeX documentclass setup files
Expand Down
Binary file modified module05/assets/42ai_logo.pdf
Binary file not shown.
43 changes: 0 additions & 43 deletions module05/en.instructions.tex

This file was deleted.

Binary file removed module05/en.subject.pdf
Binary file not shown.
111 changes: 13 additions & 98 deletions module05/en.subject.tex
Original file line number Diff line number Diff line change
Expand Up @@ -19,102 +19,11 @@
%****************************************************************%
% Re/definition of commands %
%****************************************************************%

\newcommand{\ailogo}[1]{\def \@ailogo {#1}}\ailogo{assets/42ai_logo.pdf}

%% Redefine \maketitle
\makeatletter
\def \maketitle {
\begin{titlepage}
\begin{center}
%\begin{figure}[t]
%\includegraphics[height=8cm]{\@ailogo}
\includegraphics[height=8cm]{assets/42ai_logo.pdf}
%\end{figure}
\vskip 5em
{\huge \@title}
\vskip 2em
{\LARGE \@subtitle}
\vskip 4em
\end{center}
%\begin{center}
%\@author
%\end{center}
%\vskip 5em
\vfill
\begin{center}
\emph{\summarytitle : \@summary}
\end{center}
\vspace{2cm}
%\vskip 5em
%\doclicenseThis
\end{titlepage}
}
\makeatother

\makeatletter
\def \makeheaderfilesforbidden
{
\noindent
\begin{tabularx}{\textwidth}{|X X X X|}
\hline
\multicolumn{1}{|>{\raggedright}m{1cm}|}
{\vskip 2mm \includegraphics[height=1cm]{assets/42ai_logo.pdf}} &
\multicolumn{2}{>{\centering}m{12cm}}{\small Exercise : \@exnumber } &
\multicolumn{1}{ >{\raggedleft}p{1.5cm}|}
%% {\scriptsize points : \@exscore} \\ \hline
{} \\ \hline

\multicolumn{4}{|>{\centering}m{15cm}|}
{\small \@extitle} \\ \hline

\multicolumn{4}{|>{\raggedright}m{15cm}|}
{\small Turn-in directory : \ttfamily
$ex\@exnumber/$ }
\\ \hline
\multicolumn{4}{|>{\raggedright}m{15cm}|}
{\small Files to turn in : \ttfamily \@exfiles }
\\ \hline

\multicolumn{4}{|>{\raggedright}m{15cm}|}
{\small Forbidden functions : \ttfamily \@exforbidden }
\\ \hline

%% \multicolumn{4}{|>{\raggedright}m{15cm}|}
%% {\small Remarks : \ttfamily \@exnotes }
%% \\ \hline
\end{tabularx}
%% \exnotes
\exrules
\exmake
\exauthorize{None}
\exforbidden{None}
\extitle{}
\exnumber{}
}
\makeatother

%% Syntactic highlights
\makeatletter
\newenvironment{pythoncode}{%
\VerbatimEnvironment
\usemintedstyle{emacs}
\minted@resetoptions
\setkeys{minted@opt}{bgcolor=black,formatcom=\color{lightgrey},fontsize=\scriptsize}
\begin{figure}[ht!]
\centering
\begin{minipage}{16cm}
\begin{VerbatimOut}{\jobname.pyg}}
{%[
\end{VerbatimOut}
\minted@pygmentize{c}
\DeleteFile{\jobname.pyg}
\end{minipage}
\end{figure}}
\makeatother

\input{../resources/latex/redefinition-commands.tex}
%****************************************************************%
% END Re/definition of commands %
%****************************************************************%
\usemintedstyle{native}

\begin{document}

% =============================================================================%
Expand All @@ -135,7 +44,7 @@

\maketitle
\input{useful_resources.tex}
\input{en.instructions.tex}
\input{../resources/42ai_bootcamps/en.instructions.tex}
\newpage
\tableofcontents
\startexercices
Expand Down Expand Up @@ -229,12 +138,18 @@ \chapter{Conclusion - What you have learnt}
\item Do you understand why matrix multiplications are not commutative?
\end{enumerate}

These questions are an opportunity for discussion among your peers, or to simply reflect on your own acquired understanding during this day !
These questions are an opportunity for discussion among your peers, or to simply reflect on your own acquired understanding during this day !\\
\newline
\info{
Your feedbacks are essential for us to improve these bootcamps !\newline
Please take a few minutes to tell us about your experience in this module by filling
\href{https://forms.gle/RnXgzgZZJh7V8h9D8}{this form}. Thank you in advance !
}

% ============================================== %
\newpage
% ================================= %

\input{en.acknowledgements.tex}
\input{../resources/42ai_bootcamps/en.acknowledgements.tex}

\end{document}
4 changes: 3 additions & 1 deletion module06/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ DEPS = exercises/en.ex00_interlude.tex \
exercises/en.ex01_interlude.tex \
exercises/en.ex02_interlude.tex \
exercises/en.ex05_interlude.tex \
en.instructions.tex \
../resources/42ai_bootcamps/en.instructions.tex \
../resources/42ai_bootcamps/en.acknowledgements.tex \
../resources/latex/redefinition-commands.tex \
en.subject.tex \
useful_resources.tex

Expand Down
Binary file modified module06/assets/42ai_logo.pdf
Binary file not shown.
35 changes: 0 additions & 35 deletions module06/en.acknowledgements.tex

This file was deleted.

43 changes: 0 additions & 43 deletions module06/en.instructions.tex

This file was deleted.

Binary file removed module06/en.subject.pdf
Binary file not shown.
Loading
Loading