From bc3fc8712c449d239e4f308d2c4db8aea587db18 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Fri, 18 Oct 2024 16:51:06 -0600 Subject: [PATCH] fix: switch to skewer case (fixes warnings) --- finely-crafted-cv/0.1.0/README.md | 10 ++++---- finely-crafted-cv/0.1.0/src/resume.typ | 28 +++++++++++------------ finely-crafted-cv/0.1.0/template/main.typ | 2 +- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/finely-crafted-cv/0.1.0/README.md b/finely-crafted-cv/0.1.0/README.md index 8560050..49396b3 100644 --- a/finely-crafted-cv/0.1.0/README.md +++ b/finely-crafted-cv/0.1.0/README.md @@ -23,7 +23,7 @@ To use this template, import it with the version number and utilize the `resume` keywords: "marine biology, conservation, research, education, patents", email: "amira.patel@oceandreams.org", phone: "+1-305-555-7890", - linkedin_username: "amirapatel", + linkedin-username: "amirapatel", thumbnail: image("assets/my-qr-code.svg"), ) @@ -72,12 +72,12 @@ This is the main function to create a CV document. - `name`: (String) Your full name. Default is "YOUR NAME HERE". - `tagline`: (String) A brief description of your professional identity or mission. - `paper`: (String) The paper size, default is "us-letter". - - `heading_font`: (Font) Font for headings, customizable. - - `body_font`: (Font) Font for body text, customizable. - - `body_size`: (Size) Font size for body text. + - `heading-font`: (Font) Font for headings, customizable. + - `body-font`: (Font) Font for body text, customizable. + - `body-size`: (Size) Font size for body text. - `email`: (String) Your email address. - `phone`: (String) Your phone number. - - `linkedin_username`: (String) Your LinkedIn username. + - `linkedin-username`: (String) Your LinkedIn username. - `keywords`: (String) Keywords for searchability. - `thumbnail`: (Image) Thumbnail or QR code image, optional. - `body`: (Block) The main content of your CV. diff --git a/finely-crafted-cv/0.1.0/src/resume.typ b/finely-crafted-cv/0.1.0/src/resume.typ index 12bcf7a..6bdfec8 100644 --- a/finely-crafted-cv/0.1.0/src/resume.typ +++ b/finely-crafted-cv/0.1.0/src/resume.typ @@ -7,12 +7,12 @@ name: "YOUR NAME HERE", tagline: none, paper: "us-letter", - heading_font: HEADING_FONT, - body_font: BODY_FONT, - body_size: BODY_SIZE, + heading-font: HEADING_FONT, + body-font: BODY_FONT, + body-size: BODY_SIZE, email: none, phone: none, - linkedin_username: none, + linkedin-username: none, keywords: "", thumbnail: none, // check out https://qrframe.kylezhe.ng/ for QR code generation body @@ -42,7 +42,7 @@ sym.divides, icon_and_contact("icons/phone.svg", link("tel:" + phone, phone)), sym.divides, - icon_and_contact("icons/linkedin.svg", link("https://www.linkedin.com/in/" + linkedin_username, linkedin_username)) + icon_and_contact("icons/linkedin.svg", link("https://www.linkedin.com/in/" + linkedin-username, linkedin-username)) ) ) } @@ -50,7 +50,7 @@ footer: context { let multi_page = counter(page).final().first() > 1 let date = datetime.today().display("[month repr:long] [day], [year]") - text(size: FOOTER_SIZE, weight: FOOTER_TEXT_WEIGHT, font: heading_font)[ + text(size: FOOTER_SIZE, weight: FOOTER_TEXT_WEIGHT, font: heading-font)[ #grid( columns: (1fr, 1fr, 1fr), align: (left, center, right + horizon), @@ -70,7 +70,7 @@ ) // Global text settings - set text(font: body_font, size: body_size, weight: BODY_WEIGHT, fallback: true) + set text(font: body-font, size: body-size, weight: BODY_WEIGHT, fallback: true) set par(justify: true) // Heading styles @@ -81,7 +81,7 @@ below: SECTION_HEADING_SPACE_BELOW, breakable: false, [ - #text(size: SECTION_HEADING_SIZE, weight: SECTION_HEADING_WEIGHT, font: heading_font)[ + #text(size: SECTION_HEADING_SIZE, weight: SECTION_HEADING_WEIGHT, font: heading-font)[ #context counter(heading).display() #upper(it.body) ] @@ -105,10 +105,10 @@ ) // Save our settings needed in other functions - __set("heading_font", heading_font) + __set("heading-font", heading-font) // Main Headline - text(size: HEADLINE_NAME_SIZE, weight: HEADLINE_NAME_WEIGHT, font: heading_font)[#smallcaps(name)] + text(size: HEADLINE_NAME_SIZE, weight: HEADLINE_NAME_WEIGHT, font: heading-font)[#smallcaps(name)] h(1fr) text(size: TAGLINE_SIZE, style: TAGLINE_STYLE, weight: TAGLINE_WEIGHT)[#tagline] hrule(stroke: HEADLINE_HRULE_STROKE) @@ -139,7 +139,7 @@ context text( weight: COMPANY_NAME_WEIGHT, size: COMPANY_NAME_SIZE, - font: __get("heading_font"), + font: __get("heading-font"), name ), @@ -154,7 +154,7 @@ context text( weight: COMPANY_DATE_WEIGHT, size: COMPANY_DATE_SIZE, - font: __get("heading_font"), + font: __get("heading-font"), if start != none { [#start -- #end] @@ -189,7 +189,7 @@ style: JOB_NAME_STYLE, weight: JOB_NAME_WEIGHT, size: JOB_NAME_SIZE, - font: __get("heading_font"), + font: __get("heading-font"), title ), @@ -207,7 +207,7 @@ style: JOB_LOCATION_STYLE, weight: JOB_LOCATION_WEIGHT, size: JOB_LOCATION_SIZE, - font: __get("heading_font"), + font: __get("heading-font"), if location != none and start != none { [#location#[;] #h(0.25em)#start#if end != none [ -- #end]] diff --git a/finely-crafted-cv/0.1.0/template/main.typ b/finely-crafted-cv/0.1.0/template/main.typ index 941bb2d..11852bc 100644 --- a/finely-crafted-cv/0.1.0/template/main.typ +++ b/finely-crafted-cv/0.1.0/template/main.typ @@ -6,7 +6,7 @@ keywords: "marine biology, conservation, research, education, patents", email: "amira.patel@oceandreams.org", phone: "+1-305-555-7890", - linkedin_username: "amirapatel", + linkedin-username: "amirapatel", thumbnail: image("assets/my-qr-code.svg"), )