1 Commits
0.7.0 ... 0.6.0

Author SHA1 Message Date
Paul Tsouchlos
74e939cfda chore: update version used in templates 2024-09-02 09:14:38 -04:00
27 changed files with 116 additions and 746 deletions

View File

@@ -0,0 +1,23 @@
name: Build documentation
on: [push, workflow_dispatch]
jobs:
build_pdf:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Install fonts
run: |
sudo apt update
sudo apt-get install fonts-font-awesome fonts-roboto texlive-fonts-recommended texlive-fonts-extra
- name: Typst
uses: yusancky/setup-typst@v2
id: setup-typst
with:
version: 'v0.11.0'
- run: typst compile modern-cv-docs.typ
- name: Upload PDF file
uses: actions/upload-artifact@v3
with:
name: modern-cv-docs
path: modern-cv-docs.pdf

View File

@@ -1,77 +0,0 @@
name: Package and push to registry repo
on:
push:
tags: [ '*' ]
env:
# the repository to which to push the release version
# usually a fork of typst/packages (https://github.com/typst/packages/)
# that you have push privileges to
REGISTRY_REPO: DeveloperPaul123/typst-packages
# the path within that repo where the "<name>/<version>" directory should be put
# for the Typst package registry, keep this as is
PATH_PREFIX: packages/preview
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Probe runner package cache
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: cargo
version: 1.0
- name: Install just from crates.io
uses: baptiste0928/cargo-install@v3
with:
crate: just
- name: Setup typst
uses: typst-community/setup-typst@v3
with:
typst-version: latest
- name: Determine and check package metadata
run: |
. scripts/setup
echo "PKG_NAME=${PKG_PREFIX}" >> "${GITHUB_ENV}"
echo "PKG_VERSION=${VERSION}" >> "${GITHUB_ENV}"
if [[ "${GITHUB_REF_NAME}" != "${VERSION}" ]]; then
echo "package version ${VERSION} does not match release tag ${GITHUB_REF_NAME}" >&2
exit 1
fi
- name: Build package
run: |
just doc
just package out
- name: Checkout package registry
uses: actions/checkout@v4
with:
repository: ${{ env.REGISTRY_REPO }}
token: ${{ secrets.REGISTRY_TOKEN }}
path: typst-packages
- name: Release package
run: |
mkdir -p "typst-packages/${{ env.PATH_PREFIX }}/$PKG_NAME"
mv "out/${PKG_NAME}/${PKG_VERSION}" "typst-packages/${{ env.PATH_PREFIX }}/${PKG_NAME}"
rmdir "out/${PKG_NAME}"
rmdir out
GIT_USER_NAME="$(git log -1 --pretty=format:'%an')"
GIT_USER_EMAIL="$(git log -1 --pretty=format:'%ae')"
cd typst-packages
git config user.name "${GIT_USER_NAME}"
git config user.email "${GIT_USER_EMAIL}"
git checkout -b "${PKG_NAME}-${PKG_VERSION}"
git add .
git commit -m "${PKG_NAME}:${PKG_VERSION}"
git push --set-upstream origin "${PKG_NAME}-${PKG_VERSION}"

View File

@@ -1,84 +0,0 @@
name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
tests:
strategy:
matrix:
# add any other Typst versions that your package should support
typst-version: ["0.12"]
# the docs don't need to build with all versions supported by the package;
# the latest one is enough
include:
- typst-version: "0.12"
doc: 1
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Probe runner package cache
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: imagemagick cargo
version: 1.0
- name: Install oxipng from crates.io
uses: baptiste0928/cargo-install@v3
with:
crate: oxipng
- name: Install just from crates.io
uses: baptiste0928/cargo-install@v3
with:
crate: just
- name: Install typst-test from github
uses: baptiste0928/cargo-install@v3
with:
crate: typst-test
git: https://github.com/tingerrr/typst-test.git
tag: ci-semi-stable
- name: Setup typst
uses: typst-community/setup-typst@v3
with:
typst-version: ${{ matrix.typst-version }}
- name: Install fonts
run: |
sudo apt update
sudo apt-get install fonts-roboto
./scripts/install-fontawesome
./scripts/install-source-sans
- name: Install locally
run: just install
- name: Run test suite
run: just test
- name: Archive diffs
uses: actions/upload-artifact@v4
if: always()
with:
name: diffs
path: |
tests/**/diff/*.png
tests/**/out/*.png
tests/**/ref/*.png
retention-days: 5
- name: Build docs
if: ${{ matrix.doc }}
run: just doc
- name: Upload docs
uses: actions/upload-artifact@v4
with:
name: manual
path: docs/manual.pdf

2
.gitignore vendored
View File

@@ -1,3 +1 @@
*.pdf
tests/*/diff
tests/*/out

View File

@@ -1,8 +0,0 @@
.github
.fork
scripts
template/*.pdf
.gitignore
.issuetracker
tests/*
docs/*

View File

@@ -1,45 +0,0 @@
root := justfile_directory()
export TYPST_ROOT := root
[private]
default:
@just --list --unsorted
# generate manual
doc:
typst compile docs/manual.typ docs/manual.pdf
# run test suite
test *args:
typst-test run {{ args }}
# update test cases
update *args:
typst-test update {{ args }}
# package the library into the specified destination folder
package target:
./scripts/package "{{target}}"
# install the library with the "@local" prefix
install: (package "@local")
# install the library with the "@preview" prefix (for pre-release testing)
install-preview: (package "@preview")
[private]
remove target:
./scripts/uninstall "{{target}}"
# uninstalls the library from the "@local" prefix
uninstall: (remove "@local")
# uninstalls the library from the "@preview" prefix (for pre-release testing)
uninstall-preview: (remove "@preview")
format:
./scripts/format
# run ci suite
ci: test doc

View File

@@ -3,23 +3,12 @@
[![say thanks](https://img.shields.io/badge/Say%20Thanks-👍-1EAEDB.svg)](https://github.com/DeveloperPaul123/modern-cv/stargazers)
[![Discord](https://img.shields.io/discord/652515194572111872?logo=Discord)](https://discord.gg/CX2ybByRnt)
![Release](https://img.shields.io/github/v/release/DeveloperPaul123/modern-cv)
[![Tests](https://github.com/DeveloperPaul123/modern-cv/actions/workflows/tests.yml/badge.svg)](https://github.com/DeveloperPaul123/modern-cv/actions/workflows/tests.yml)
[![Build documentation](https://github.com/DeveloperPaul123/modern-cv/actions/workflows/build-documentation.yml/badge.svg)](https://github.com/DeveloperPaul123/modern-cv/actions/workflows/build-documentation.yml)
A port of the [Awesome-CV](https://github.com/posquit0/Awesome-CV) Latex resume template in [typst](https://github.com/typst/typst).
## Requirements
### Tools
The following tools are used for the development of this template:
- [typst](https://github.com/typst/typst)
- [typst-test](https://github.com/tingerrr/typst-test) for running tests
- [just](https://github.com/casey/just) for simplifying command running
- [oxipng](https://github.com/shssoichiro/oxipng) for compressing thumbnails used in the README
### Fonts
You will need the `Roboto` and `Source Sans Pro` fonts installed on your system or available somewhere. If you are using the `typst` web app, no further action is necessary. You can download them from the following links:
- [Roboto](https://fonts.google.com/specimen/Roboto)
@@ -38,7 +27,7 @@ See `typst fonts --help` for more information on configuring fonts for `typst` t
Below is a basic example for a simple resume:
```typst
#import "@preview/modern-cv:0.7.0": *
#import "@preview/modern-cv:0.5.0": *
#show: resume.with(
author: (
@@ -92,21 +81,19 @@ Documentation for this template is published with each commit. See the attached
## Building and Testing Locally
To build and test the project locally, you will need to install the `typst` CLI. You can find instructions on how to do this [here](https://github.com/typst/typst#installation).
To build and test the project locally, you will need to install the `typst` CLI. You can find instructions on how to do this [here](https://typst.app/docs/getting-started).
With typst installed you can make changes to `lib.typ` and then `just install` or `just install-preview` to install the package locally. Change the import statements in the template files to point to the local package (if needed):
With typst installed you can make changes to `lib.typ` and then `install_package_locally.ps1` to install the package locally. Change the import statements in the template files to point to the local package:
```typst
#import "@local/modern-cv:0.6.0": *
#import "@local/modern-cv:0.3.0": *
````
If you use `just install-preview` you will only need to update the version number to match `typst.toml`.
Note that the script parses the `typst.toml` to determine the version number and the folder the local files are installed to.
### Formatting
This project uses [typstyle](https://github.com/Enter-tainer/typstyle) to format the code. Run `just format` to format all the `*.typ` files in the project. Be sure to install `typstyle` before running the script.
This project uses [typstyle](https://github.com/Enter-tainer/typstyle) to format the code. The script `format_typst.ps1` will format all the `*.typ` files in the project. Be sure to install `typstyle` before running the script.
## License

View File

@@ -1,13 +0,0 @@
# Release Checklist
This document outlines the steps required to prepare a new release of `modern-cv`.
Steps:
1. Create a new release branch with the format `release/x.y.z`.
2. Update the version in the `typst.toml`.
3. Update examples in the [README.md](../README.md) to reflect the new version.
4. Update templates to import the correct version.
5. Do a final compilation/export check of all the templates.
6. Ensure that tests pass.
7. Ensure that the documentation manual builds.

View File

@@ -64,11 +64,3 @@ cover-letter = "求职信"
attached = "附件"
curriculum-vitae = "简历"
sincerely = "真诚的"
[lang.it]
resume = "Curriculum"
dear = "Egregio"
cover-letter = "Lettera di presentazione"
attached = "Allegato"
curriculum-vitae = "Curriculum Vitae"
sincerely = "Cordiali saluti"

123
lib.typ
View File

@@ -1,5 +1,5 @@
#import "@preview/fontawesome:0.5.0": *
#import "@preview/linguify:0.4.1": *
#import "@preview/fontawesome:0.2.1": *
#import "@preview/linguify:0.4.0": *
// const color
#let color-darknight = rgb("#131A28")
@@ -28,7 +28,6 @@
#let email-icon = box(fa-icon("envelope", fill: color-darknight))
#let birth-icon = box(fa-icon("cake", fill: color-darknight))
#let homepage-icon = box(fa-icon("home", fill: color-darknight))
#let website-icon = box(fa-icon("globe", fill: color-darknight))
/// Helpers
@@ -82,9 +81,7 @@
#linguify("cover-letter", from: lang_data)
]
][
#context {
counter(page).display()
}
#counter(page).display()
]
}
@@ -106,9 +103,7 @@
#linguify("resume", from: lang_data)
]
][
#context {
counter(page).display()
}
#counter(page).display()
]
}
@@ -206,13 +201,10 @@
let lang_data = toml("lang.toml")
show: body => context {
set document(
author: author.firstname + " " + author.lastname,
title: lflib._linguify("resume", lang: language, from: lang_data).ok,
title: "resume",
)
body
}
set text(
font: font,
@@ -225,20 +217,16 @@
set page(
paper: "a4",
margin: (left: 15mm, right: 15mm, top: 10mm, bottom: 10mm),
footer: if show-footer [#__resume_footer(
author,
language,
lang_data,
date,
)] else [],
footer: if show-footer [#__resume_footer(author, language, lang_data, date)] else [],
footer-descent: 0pt,
)
// set paragraph spacing
set par(
spacing: 0.75em,
justify: true,
show par: set block(
above: 0.75em,
below: 0.75em,
)
set par(justify: true)
set heading(
numbering: none,
@@ -246,12 +234,17 @@
)
show heading.where(level: 1): it => [
#set block(
above: 1em,
below: 1em,
)
#set text(
size: 16pt,
weight: "regular",
)
#set align(left)
#set block(above: 1em)
#align(left)[
#let color = if colored-headers {
accent-color
} else {
@@ -261,6 +254,8 @@
#box(width: 1fr, line(length: 100%))
]
]
show heading.where(level: 2): it => {
set text(
color-darkgray,
@@ -370,7 +365,7 @@
#separator
#linkedin-icon
#box[
#link("https://www.linkedin.com/in/" + author.linkedin)[#author.firstname #author.lastname]
#link("https://www.linkedin.com/in/" + author.linkedin)[#author.linkedin]
]
]
#if ("twitter" in author) [
@@ -389,11 +384,6 @@
#orcid-icon
#box[#link("https://orcid.org/" + author.orcid)[#author.orcid]]
]
#if ("website" in author) [
#separator
#website-icon
#box[#link(author.website)[#author.website]]
]
]
]
]
@@ -416,14 +406,8 @@
weight: "light",
fill: color-darknight,
)
set block(
above: 0.75em,
below: 1.25em,
)
set par(leading: 0.65em)
block(above: 0.5em)[
#body
]
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.
@@ -449,14 +433,13 @@
} else {
title-content = title
}
block(above: 1em, below: 0.65em)[
#pad[
pad[
#justified-header(title-content, location)
#if description != "" or date != "" [
#secondary-justified-header(description, date)
]
]
]
}
/// Show cumulative GPA.
@@ -511,25 +494,12 @@
/// ---- Coverletter ----
#let default-closing(lang_data) = {
align(bottom)[
#text(weight: "light", style: "italic")[ #linguify(
"attached",
from: lang_data,
)#sym.colon #linguify("curriculum-vitae", from: lang_data)]
]
}
/// Cover letter template that is inspired by the Awesome CV Latex template by posquit0. This template can loosely be considered a port of the original Latex template.
/// This coverletter template is designed to be used with the resume template.
/// - author (content): Structure that takes in all the author's information. The following fields are required: firstname, lastname, positions. The following fields are used if available: email, phone, github, linkedin, orcid, address, website.
/// - author (content): Structure that takes in all the author's information
/// - profile-picture (image): The profile picture of the author. This will be cropped to a circle and should be square in nature.
/// - date (datetime): The date the cover letter was created. This will default to the current date.
/// - date (date): The date the cover letter was created
/// - accent-color (color): The accent color of the cover letter
/// - language (string): The language of the cover letter, defaults to "en". See lang.toml for available languages
/// - font (array): The font families of the cover letter
/// - show-footer (boolean): Whether to show the footer or not
/// - closing (content): The closing of the cover letter. This defaults to "Attached Curriculum Vitae". You can set this to `none` to show the default closing or remove it completely.
/// - body (content): The body of the cover letter
#let coverletter(
author: (:),
@@ -539,7 +509,6 @@
language: "en",
font: ("Source Sans Pro", "Source Sans 3"),
show-footer: true,
closing: none,
body,
) = {
if type(accent-color) == "string" {
@@ -549,17 +518,10 @@
// language data
let lang_data = toml("lang.toml")
if closing == none {
closing = default-closing(lang_data)
}
show: body => context {
set document(
author: author.firstname + " " + author.lastname,
title: lflib._linguify("cover-letter", lang: language, from: lang_data).ok,
title: "cover-letter",
)
body
}
set text(
font: font,
@@ -572,20 +534,16 @@
set page(
paper: "a4",
margin: (left: 15mm, right: 15mm, top: 10mm, bottom: 10mm),
footer: if show-footer [#__coverletter_footer(
author,
language,
date,
lang_data,
)] else [],
footer: if show-footer [#__coverletter_footer(author, language, date, lang_data)] else [],
footer-descent: 0pt,
)
// set paragraph spacing
set par(
spacing: 0.75em,
justify: true,
show par: set block(
above: 0.75em,
below: 0.75em,
)
set par(justify: true)
set heading(
numbering: none,
@@ -697,16 +655,6 @@
#link("https://www.linkedin.com/in/" + author.linkedin)[#author.firstname #author.lastname]
]
],
if ("orcid" in author) [
#separator
#orcid-icon
#box[#link("https://orcid.org/" + author.orcid)[#author.orcid]]
],
if ("website" in author) [
#separator
#website-icon
#box[#link(author.website)[#author.website]]
],
)
]
]
@@ -736,7 +684,7 @@
)
}
let signature = {
let letter-conclusion = {
align(bottom)[
#pad(bottom: 2em)[
#text(weight: "light")[#linguify(
@@ -744,6 +692,10 @@
from: lang_data,
)#sym.comma] \
#text(weight: "bold")[#author.firstname #author.lastname] \ \
#text(weight: "light", style: "italic")[ #linguify(
"attached",
from: lang_data,
)#sym.colon #linguify("curriculum-vitae", from: lang_data)]
]
]
}
@@ -752,8 +704,7 @@
letter-heading
body
linebreak()
signature
closing
letter-conclusion
}
/// Cover letter heading that takes in the information for the hiring company and formats it properly.

View File

@@ -1,8 +1,8 @@
#import "../lib.typ"
#import "lib.typ"
#import "@preview/tidy:0.3.0"
#let docs = tidy.parse-module(
read("../lib.typ"),
read("lib.typ"),
name: "Modern CV",
scope: (resume: lib),
)

View File

@@ -1,4 +0,0 @@
#!/usr/bin/env bash
set -eu
find . -iname "*.typ" | xargs typstyle -i

5
scripts/format_typst.ps1 Normal file
View File

@@ -0,0 +1,5 @@
# requires typstyle to be installed
# cargo install typstyle
# get all *.typ files and format them
Get-ChildItem -Path $PSScriptRoot/../*.typ -Recurse | ForEach-Object { typstyle -i $_.FullName }

View File

@@ -1,11 +0,0 @@
#!/usr/bin/env bash
set -eu
wget -O ~/fontawesome.zip https://use.fontawesome.com/releases/v6.6.0/fontawesome-free-6.6.0-desktop.zip
mkdir -p ~/fontawesome-fonts
unzip ~/fontawesome.zip -d ~/fontawesome-fonts
mkdir -p ~/.fonts
find ~/fontawesome-fonts -type f -name "*.otf" -exec cp {} ~/.fonts \;
rm ~/fontawesome.zip
rm -rf ~/fontawesome-fonts
fc-cache -f -v

View File

@@ -1,11 +0,0 @@
#!/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

View File

@@ -0,0 +1,10 @@
# requires the PSToml cmdlet to be installed
# https://github.com/jborean93/PSToml?tab=readme-ov-file
# Install-Module -Name PSToml -Scope AllUsers
$typst_toml = ConvertFrom-Toml (Get-Content "$PSScriptRoot/../typst.toml" -Raw)
Write-Host 'Package version: ' $typst_toml.package.version
$Source = "$PSScriptRoot/../*"
$Destination = "$env:LOCALAPPDATA/typst/packages/local/modern-cv/$($typst_toml.package.version)"
New-Item -ItemType Directory -Path $Destination -Force
Copy-Item -Path $Source -Destination $Destination -Recurse -Force

View File

@@ -1,86 +0,0 @@
#!/usr/bin/env bash
set -eu
# adapted from https://github.com/johannes-wolf/cetz/blob/35c0868378cea5ad323cc0d9c2f76de8ed9ba5bd/scripts/package
# licensed under Apache License 2.0
. "$(dirname "${BASH_SOURCE[0]}")/setup"
if (( $# < 1 )) || [[ "${1:-}" == "help" ]]; then
echo "package TARGET"
echo ""
echo "Packages all relevant files into a directory named '<name>/<version>'"
echo "at TARGET. If TARGET is set to @local or @preview, the local Typst package"
echo "directory will be used so that the package gets installed for local use."
echo "The name and version are read from 'typst.toml' in the project root."
echo ""
echo "Local package prefix: $DATA_DIR/typst/package/local"
echo "Local preview package prefix: $DATA_DIR/typst/package/preview"
exit 1
fi
TARGET="$(resolve-target "${1:?Missing target path, @local or @preview}")"
echo "Install dir: $TARGET"
# ignore rules
readarray -t ignores < <(grep -v '^#' .typstignore | grep '[^[:blank:]]')
# recursively print all files that are not excluded via .typstignore
function enumerate {
local root="$1"
if [[ -f "$root" ]]; then
echo "$root"
else
local files
readarray -t files < <(find "$root" \
-mindepth 1 -maxdepth 1 \
-not -name .git \
-not -name .typstignore)
# declare -p files >&2
local f
for f in "${files[@]}"; do
local include
include=1
local ignore
for ignore in "${ignores[@]}"; do
if [[ "$ignore" =~ ^! ]]; then
ignore="${ignore:1}"
if [[ "$f" == ./$ignore ]]; then
# echo "\"$f\" matched \"!$ignore\"" >&2
include=1
fi
elif [[ "$f" == ./$ignore ]]; then
# echo "\"$f\" matched \"$ignore\"" >&2
include=0
fi
done
if [[ "$include" == 1 ]]; then
enumerate "$f"
fi
done
fi
}
# List of all files that get packaged
readarray -t files < <(enumerate ".")
# declare -p files >&2
TMP="$(mktemp -d)"
for f in "${files[@]}"; do
mkdir -p "$TMP/$(dirname "$f")" 2>/dev/null
cp -r "$ROOT/$f" "$TMP/$f"
done
TARGET="${TARGET:?}/${PKG_PREFIX:?}/${VERSION:?}"
echo "Packaged to: $TARGET"
if rm -r "${TARGET:?}" 2>/dev/null; then
echo "Overwriting existing version."
fi
mkdir -p "$TARGET"
# include hidden files by setting dotglob
shopt -s dotglob
mv "$TMP"/* "$TARGET"

View File

@@ -1,37 +0,0 @@
# source this script to prepare some common environment variables
# adapted from https://github.com/johannes-wolf/cetz/blob/35c0868378cea5ad323cc0d9c2f76de8ed9ba5bd/scripts/package
# licensed under Apache License 2.0
# Local package directories per platform
if [[ "$OSTYPE" == "linux"* ]]; then
DATA_DIR="${XDG_DATA_HOME:-$HOME/.local/share}"
elif [[ "$OSTYPE" == "darwin"* ]]; then
DATA_DIR="$HOME/Library/Application Support"
else
DATA_DIR="${APPDATA}"
fi
function read-toml() {
local file="$1"
local key="$2"
# Read a key value pair in the format: <key> = "<value>"
# stripping surrounding quotes.
perl -lne "print \"\$1\" if /^${key}\\s*=\\s*\"(.*)\"/" < "$file"
}
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd -P)/.." # macOS has no realpath
PKG_PREFIX="$(read-toml "$ROOT/typst.toml" "name")"
VERSION="$(read-toml "$ROOT/typst.toml" "version")"
function resolve-target() {
local target="$1"
if [[ "$target" == "@local" ]]; then
echo "${DATA_DIR}/typst/packages/local"
elif [[ "$target" == "@preview" ]]; then
echo "${DATA_DIR}/typst/packages/preview"
else
echo "$target"
fi
}

View File

@@ -1,33 +0,0 @@
#!/usr/bin/env bash
set -eu
# adapted from https://github.com/johannes-wolf/cetz/blob/35c0868378cea5ad323cc0d9c2f76de8ed9ba5bd/scripts/package
# licensed under Apache License 2.0
. "$(dirname "${BASH_SOURCE[0]}")/setup"
if (( $# < 1 )) || [[ "${1:-}" == "help" ]]; then
echo "uninstall TARGET"
echo ""
echo "Removes the package installed into a directory named '<name>/<version>'"
echo "at TARGET. If TARGET is set to @local or @preview, the local Typst package"
echo "directory will be used so that the package gets installed for local use."
echo "The name and version are read from 'typst.toml' in the project root."
echo ""
echo "Local package prefix: $DATA_DIR/typst/package/local"
echo "Local preview package prefix: $DATA_DIR/typst/package/preview"
exit 1
fi
TARGET="$(resolve-target "${1:?Missing target path, @local or @preview}")"
echo "Install dir: $TARGET"
TARGET="${TARGET:?}/${PKG_PREFIX:?}/${VERSION:?}"
echo "Package to uninstall: $TARGET"
if [[ ! -e "${TARGET:?}" ]]; then
echo "Package was not found."
elif rm -r "${TARGET:?}" 2>/dev/null; then
echo "Successfully removed."
else
echo "Removal failed."
fi

View File

@@ -1,4 +1,4 @@
#import "@preview/modern-cv:0.7.0": *
#import "@preview/modern-cv:0.6.0": *
#show: coverletter.with(
author: (
@@ -10,7 +10,6 @@
github: "DeveloperPaul123",
linkedin: "John Smith",
address: "111 Example St. Apt. 111, Example City, EX 11111",
website: "https://www.github.com/DeveloperPaul123",
positions: (
"Software Engineer",
"Full Stack Developer",
@@ -19,11 +18,7 @@
profile-picture: image("./profile.png"),
language: "en",
font: "Times New Roman",
// Remove the following line to show the footer
// Or set the value to `true`
show-footer: false,
// set this to `none` to show the default or remove it completely
closing: [],
// show-footer: false, // Uncomment to hide footer
)
#hiring-entity-info(entity-info: (

View File

@@ -1,4 +1,4 @@
#import "@preview/modern-cv:0.7.0": *
#import "@preview/modern-cv:0.6.0": *
#show: coverletter.with(
author: (

View File

@@ -1,4 +1,4 @@
#import "@preview/modern-cv:0.7.0": *
#import "@preview/modern-cv:0.6.0": *
#show: resume.with(
author: (
@@ -50,8 +50,9 @@
)
#resume-item[
// content doesn't have to be bullet points
#lorem(72)
- #lorem(20)
- #lorem(15)
- #lorem(25)
]
#resume-entry(

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

View File

@@ -1,95 +0,0 @@
#import "@local/modern-cv:0.7.0": *
// setup the document like we do for the resume
#let font = ("Source Sans Pro", "Source Sans 3")
#set text(
font: font,
size: 11pt,
fill: color-darkgray,
fallback: true,
)
#set page(
paper: "a4",
margin: (left: 15mm, right: 15mm, top: 10mm, bottom: 10mm),
footer: [],
footer-descent: 0pt,
)
// set paragraph spacing
#set par(spacing: 0.75em, justify: true)
#set heading(
numbering: none,
outlined: false,
)
#show heading.where(level: 1): it => [
#set block(
above: 1em,
below: 1em,
)
#set text(
size: 16pt,
weight: "regular",
)
#align(left)[
#let color = if colored-headers {
accent-color
} else {
color-darkgray
}
#text[#strong[#text(color)[#it.body.text]]]
#box(width: 1fr, line(length: 100%))
]
]
#show heading.where(level: 2): it => {
set text(
color-darkgray,
size: 12pt,
style: "normal",
weight: "bold",
)
it.body
}
#show heading.where(level: 3): it => {
set text(
size: 10pt,
weight: "regular",
)
smallcaps[#it.body]
}
// test the resume functions
#resume-item("Education")
#resume-entry(
title: "BSc Computer Science",
location: "Example City",
date: "2019 - 2022",
description: "Achieved acaademic honors and awards.",
)
// resume-entry also support omitting the date and description
#resume-entry(
title: "Title",
location: "Location",
)
#resume-certification(
"Certified Scrum Master (CSM)",
"Jan 2022",
)
#resume-skill-item(
"Programming",
(strong["C++"], "Python", "Java"),
)
#resume-gpa("3.5", "4.0")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -1,88 +0,0 @@
#import "@local/modern-cv:0.7.0": *
// setup the document like we do for the resume
#let font = ("Source Sans Pro", "Source Sans 3")
#set text(
font: font,
size: 11pt,
fill: color-darkgray,
fallback: true,
)
#set page(
paper: "a4",
margin: (left: 15mm, right: 15mm, top: 10mm, bottom: 10mm),
footer: [],
footer-descent: 0pt,
)
// set paragraph spacing
#set par(spacing: 0.75em, justify: true)
#set heading(
numbering: none,
outlined: false,
)
#show heading.where(level: 1): it => [
#set block(
above: 1em,
below: 1em,
)
#set text(
size: 16pt,
weight: "regular",
)
#align(left)[
#let color = if colored-headers {
accent-color
} else {
color-darkgray
}
#text[#strong[#text(color)[#it.body.text]]]
#box(width: 1fr, line(length: 100%))
]
]
#show heading.where(level: 2): it => {
set text(
color-darkgray,
size: 12pt,
style: "normal",
weight: "bold",
)
it.body
}
#show heading.where(level: 3): it => {
set text(
size: 10pt,
weight: "regular",
)
smallcaps[#it.body]
}
#justified-header("Modern CV", "A modern curriculum vitae template")
#secondary-justified-header("Created by", "DeveloperPaul123")
#github-link("DeveloperPaul123/modern-cv")
#linkedin-icon
#github-icon
#twitter-icon
#google-scholar-icon
#orcid-icon
#phone-icon
#email-icon
#birth-icon
#homepage-icon
#website-icon
#square(size: 1em, fill: color-darkgray)
#square(size: 1em, fill: color-darknight)
#square(size: 1em, fill: color-gray)
#square(size: 1em, fill: default-accent-color)
#square(size: 1em, fill: default-location-color)

View File

@@ -1,7 +1,7 @@
[package]
name = "modern-cv"
version = "0.7.0"
compiler = "0.12.0"
version = "0.6.0"
compiler = "0.11.0"
entrypoint = "lib.typ"
authors = ["Paul Tsouchlos <https://github.com/DeveloperPaul123>"]
license = "MIT"