Skip to content

Commit

Permalink
Merge pull request #67 from DeveloperPaul123/fix/ci-and-template-spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperPaul123 authored Sep 22, 2024
2 parents f623c11 + 4a6dd48 commit 36a64cb
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ jobs:
- name: Install fonts
run: |
sudo apt update
sudo apt-get install fonts-font-awesome fonts-roboto
sudo apt-get install fonts-roboto
./scripts/install-fontawesome
./scripts/install-source-sans
- name: Install locally
run: just install
Expand Down
25 changes: 14 additions & 11 deletions lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,6 @@
)

show heading.where(level: 1): it => [

#set block(
above: 1em,
below: 1em,
)
#set text(
size: 16pt,
weight: "regular",
Expand Down Expand Up @@ -417,8 +412,14 @@
weight: "light",
fill: color-darknight,
)
set block(
above: 0.75em,
below: 1.25em,
)
set par(leading: 0.65em)
body
block(above: 0.5em, below: 0.5em)[
#body
]
}

/// The base item for resume entries. This formats the item for the resume entries. Typically your body would be a bullet list of items. Could be your responsibilities at a company or your academic achievements in an educational background section.
Expand All @@ -444,13 +445,15 @@
} else {
title-content = title
}

pad[
#justified-header(title-content, location)
#if description != "" or date != "" [
#secondary-justified-header(description, date)
block(above: 1em, below: 0.65em)[
#pad[
#justified-header(title-content, location)
#if description != "" or date != "" [
#secondary-justified-header(description, date)
]
]
]

}

/// Show cumulative GPA.
Expand Down
11 changes: 11 additions & 0 deletions scripts/install-source-sans
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -eu

wget -O ~/source-sans.zip https://github.com/adobe-fonts/source-sans/releases/download/3.052R/OTF-source-sans-3.052R.zip
mkdir -p ~/source-sans-fonts
unzip ~/source-sans.zip -d ~/source-sans-fonts
mkdir -p ~/.fonts
find ~/source-sans-fonts -type f -name "*.otf" -exec cp {} ~/.fonts \;
rm ~/source-sans.zip
rm -rf ~/source-sans-fonts
fc-cache -f -v
5 changes: 2 additions & 3 deletions template/resume.typ
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@
)

#resume-item[
- #lorem(20)
- #lorem(15)
- #lorem(25)
// content doesn't have to be bullet points
#lorem(72)
]

#resume-entry(
Expand Down
Binary file modified tests/resume/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/utilities/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 36a64cb

Please sign in to comment.