Skip to content

Commit

Permalink
update pdf based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMcA committed Sep 27, 2024
1 parent 9ba02c1 commit 8e7b4cb
Show file tree
Hide file tree
Showing 6 changed files with 556 additions and 11 deletions.
2 changes: 1 addition & 1 deletion LAST_MAJOR_REVIEW.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-02
2024-02-01
6 changes: 5 additions & 1 deletion pdf/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

cd "$(dirname "$0")"

export GENERATED_DATE=$(date -u "+%B %d, %Y")
export REVIEW_DATE=$(date -d $(cat ../LAST_MAJOR_REVIEW.txt) "+%B, %Y")

pandoc header.md ../curriculum/**/*.md -s \
-o MDN-Curriculum.pdf \
--metadata date="`date -u '+%Y-%m-%d'`" \
--metadata review_date="$REVIEW_DATE" \
--template=template.tex \
--pdf-engine=xelatex \
--lua-filter=adjust-links.lua \
--include-in-header=header.tex
6 changes: 6 additions & 0 deletions pdf/header.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ subtitle: The essential skillset for new front-end developers
author-meta: The MDN Team
toc: true
include-before: |
```{=latex}
PDF generated: \today
Last major curriculum review: \reviewdate
```
> **MDN recommends Scrimba**
>
> We recommend [The Frontend Developer Career Path](https://v2.scrimba.com/the-frontend-developer-career-path-c0j?via=mdn) from our learning partner, [Scrimba](https://scrimba.com/?via=mdn). This course provides a fun, interactive learning experience that teaches all of the MDN Curriculum Core and more.
Expand Down
52 changes: 43 additions & 9 deletions pdf/header.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,49 @@

\usepackage{mdframed}
\renewenvironment{quote}
{\begin{mdframed}[
{\vspace{1em}\begin{mdframed}[
backgroundcolor=quote-bg,
linewidth=0em,
innerleftmargin=1em,
innerrightmargin=1em,
innertopmargin=1em,
innerbottommargin=1em,
skipabove=1em,
skipbelow=1em
]
innerleftmargin=1.5em,
innerrightmargin=1.5em,
innertopmargin=1.5em,
innerbottommargin=1.5em,
skipabove=0,
skipbelow=0,
nobreak=true
]\raggedright
}
{\end{mdframed}}
{\end{mdframed}\vspace{1em}}

\linespread{1.3}

\usepackage{enumitem}
\setlist[itemize,1]{label=\textbullet}
\setlist[itemize,2]{label=\textbullet}
\setlist[itemize,3]{label=\textbullet}
\setlist[itemize,4]{label=\textbullet}

\usepackage{graphicx}

\usepackage{fancyhdr}
\pagestyle{fancy}

\renewcommand{\headrulewidth}{0pt}
\fancyhead{}
\fancyhead[L]{\href{https://developer.mozilla.org/en-US/curriculum/}{\includegraphics[height=0.5cm]{logo.png}}}

\fancyfoot[L]{PDF generated: \today}
\fancyfoot[R]{Curriculum reviewed: \reviewdate}

\usepackage{titling}
\setlength{\droptitle}{-2.5cm}
\pretitle{\begin{flushleft}\href{https://developer.mozilla.org/en-US/curriculum/}{\includegraphics[height=0.5cm]{logo.png}}\\[2cm]\bfseries\LARGE}
\posttitle{\end{flushleft}}

\preauthor{\begin{flushleft}}
\postauthor{\end{flushleft}}

\predate{\begin{flushleft}}
\postdate{\end{flushleft}}

\raggedright
Binary file added pdf/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8e7b4cb

Please sign in to comment.