generated from mdn/project-template
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
First, ensure you've got the appropriate packages installed. For Ubuntu: | ||
|
||
```sh | ||
sudo apt install pandoc texlive-latex-base texlive-xetex fonts-inter | ||
``` | ||
|
||
Then generate the PDF: | ||
|
||
```sh | ||
./build.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
function Link(el) | ||
local id = el.target | ||
|
||
-- Fix relative links | ||
if id:sub(1,1) == "." then | ||
if id:find("#") then | ||
id = id:match("(#.*)") | ||
else | ||
id = id:match(".*/(.*).md") | ||
id = "#" .. id | ||
end | ||
end | ||
|
||
-- Fix section header links | ||
if id:sub(1,1) == '#' then | ||
id = id:gsub("_", "-") | ||
id = id:gsub("^[^a-zA-Z]+", "") | ||
id = "#" .. id | ||
end | ||
|
||
el.target = id | ||
return el | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
|
||
cd "$(dirname "$0")" | ||
|
||
pandoc header.md ../curriculum/**/*.md -s \ | ||
-o MDN-Curriculum-`date -u '+%Y-%m'`.pdf \ | ||
--metadata date="`date -u '+%Y-%m-%d'`" \ | ||
--pdf-engine=xelatex \ | ||
--lua-filter=adjust-links.lua \ | ||
--include-in-header=header.tex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: MDN Curriculum | ||
subtitle: The essential skillset for new front-end developers | ||
author-meta: The MDN Team | ||
toc: true | ||
include-before: | | ||
> **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. | ||
> | ||
> [Check it out](https://v2.scrimba.com/the-frontend-developer-career-path-c0j?via=mdn) | ||
geometry: | ||
- a4paper | ||
- margin=2cm | ||
linkcolor: link | ||
urlcolor: link | ||
mainfont: Inter | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
\definecolor{link}{HTML}{0069C2} | ||
\definecolor{quote-bg}{HTML}{fcefe2} | ||
|
||
\usepackage{mdframed} | ||
\renewenvironment{quote} | ||
{\begin{mdframed}[ | ||
backgroundcolor=quote-bg, | ||
linewidth=0em, | ||
innerleftmargin=1em, | ||
innerrightmargin=1em, | ||
innertopmargin=1em, | ||
innerbottommargin=1em, | ||
skipabove=1em, | ||
skipbelow=1em | ||
] | ||
} | ||
{\end{mdframed}} |