176 Commits
0.2.0 ... main

Author SHA1 Message Date
elagil
0cf87be8b6 fix: layout 2025-08-03 12:23:01 +02:00
elagil
de639642db fix: custom format 2025-08-01 23:01:53 +02:00
elagil
f5d9ba995a fix: alignment 2025-08-01 19:18:16 +02:00
elagil
dc0eb7a648 chore: remove coloring 2025-08-01 18:22:57 +02:00
Pedro Costa
13533bc0a7 Make phone number a tel URL (#126) 2025-07-17 10:44:22 -04:00
Laith Rastanawi
24ed5bef9f feat: Add support for custom author entry (#124) 2025-07-02 08:36:15 -04:00
Paul T
6e709397d8 fix(coverletter): spacing between footer and closing (#123) 2025-06-02 08:29:15 -04:00
Paul T
c7a023ff6a fix: resume skill item grid alignment (#121) 2025-05-28 22:50:54 -04:00
Paul T
63289012a1 feat: improve README design and readability (#120) 2025-05-25 22:47:08 -04:00
Paul T
8f7770aaca feat(lib): added icon to address entry (#119)
Co-authored-by: Carlo Rosso <carlorosso@Carlos-MacBook-Air.local>
2025-05-23 08:28:12 -04:00
Paul T
ac7c078341 fix: small misc issues with build (#118)
Auto formatted all typst code and fixed CI issue due to using upload artifacts v4 (actions/upload-artifact@v4/docs/MIGRATION.md)
2025-05-22 14:32:45 -04:00
José Faria
076afdd74e parametrize header-font for coverletters (#114)
Co-authored-by: jncfa <jncfa@proton.me>
2025-04-07 08:14:51 -04:00
Paul T
12352d79bd chore: typst 0.13 updates (#113)
* chore: upgrade linguify

* chore: update tests

* fix: remove deprecated type checks

* chore: improve Justfile docs

* chore: compile with typst 0.12 and 0.13 in CI

* chore: use tytanic for testing

* chore: use tytanic in CI

* fix: don't use ubuntu-latest

* fix: test runner issues

* chore: trying to fix CI issues

* fix: remove unused font in tests

* fix: update references
2025-03-29 08:12:19 -04:00
John
beff2b2b4b Use type literals for comparison (#112) 2025-03-24 10:09:46 -04:00
Paul T
21351f858d Merge pull request #111 from FiiL123/patch-1
fix: use paper-size in docs
2025-03-11 13:26:53 -04:00
Filip Sršeň
21da689b81 use paper-size in docs
change from page-size to paper-size used by the template
2025-03-11 08:55:54 +01:00
Paul T
7c174cc13d Merge pull request #105 from timmmmmmmmm/main
feat: add disable-smallcaps option
2025-03-10 10:38:12 -04:00
Tim van der Heide
148786be89 efactor: rename disable-smallcaps to use-smallcaps and reduce code duplication
- Change flag from disable-smallcaps (negative) to use-smallcaps (to keep 'positive' variable theme)
- Create helper functions (__format_author_name, __apply_smallcaps) to eliminate duplicate code
- Fix parameter passing to footer functions using named parameters
2025-03-04 09:07:34 +01:00
Tim van der Heide
bf57a254b9 feat: add disable-smallcaps option 2025-02-24 20:45:31 +01:00
Paul T
dab5adeb82 Merge pull request #102 from tfmoraes/gitlab_bitbucket 2025-02-18 12:28:37 -05:00
Thiago Franco de Moraes
17b9cc7862 Added gitlab and bitbucket 2025-02-17 17:04:17 -03:00
Paul T
2bd1355851 Merge pull request #101 from DeveloperPaul123/release/0.8.0
0.8.0 release back-merge
2025-02-15 22:12:09 -05:00
Paul Tsouchlos
71ccbf8cb9 chore: update manual generation lib 2025-01-23 08:18:56 -05:00
Paul Tsouchlos
60aa2447c4 chore: update version to 0.8.0 2025-01-20 10:15:50 -05:00
Paul T
74bf3d63c8 Merge pull request #96 from DeveloperPaul123/fix/missing-translation 2025-01-20 10:12:36 -05:00
Paul Tsouchlos
461c954df9 feat: make "job application for" text translatable
Fixes #92
2025-01-20 10:11:31 -05:00
Paul T
7d9927bc19 Merge pull request #95 from DeveloperPaul123/feature/set-page-paper-size 2025-01-20 09:56:09 -05:00
Paul Tsouchlos
7a99a1bd54 feat: add ability to set page size
Fixes #93
2025-01-20 09:55:03 -05:00
Paul T
24fbc19d51 Merge pull request #94 from ThomasFeher/fix_german_salutation 2025-01-20 07:50:51 -05:00
Thomas Feher
a7165fa47e Fix German salutation 2025-01-19 17:40:43 +01:00
Paul T
abe80fa24d Merge pull request #90 from chxp/newa
fix: allow font awesome icon in heading
2025-01-13 23:08:12 -05:00
chenxp
cee8db8535 fix: allow font awesome icon in heading 2025-01-11 13:54:38 +08:00
Paul T
7eb7122e68 Merge pull request #87 from clement-troesch/add-profile-picture-in-resume 2025-01-01 09:57:08 -05:00
Paul T
a98b5e9fd8 Merge pull request #88 from matcap/main
Use provided font for header name
2024-12-12 17:28:15 -05:00
matcap
815a0efb8f add header-font argument 2024-12-12 20:04:20 +01:00
matcap
1c5a10df91 use provided font for header name 2024-12-11 23:54:49 +01:00
Clément Troesch
8c404d93cf Add the ability to set a profile picture in resume 2024-12-08 21:48:20 +01:00
Christoph Groß
423a64618f Fix bad alignment of the contacts 2024-11-27 11:11:48 -05:00
Paul T
883bc73af8 Merge pull request #78 from DeveloperPaul123/fix/minor-tweaks
chore: minor tweaks and fixes
2024-11-01 10:25:08 -06:00
Paul Tsouchlos
83a0c0888b fix: remove homepage entry from toml
Per the package check for typst universe, don't use homepage if there is no dedicated website.
2024-11-01 12:20:17 -04:00
Paul Tsouchlos
493439bd47 chore: ignore Justfile for typstignore 2024-11-01 12:19:47 -04:00
Paul T
0620285a78 Merge pull request #75 from DeveloperPaul123/release/0.7.0 2024-11-01 10:16:16 -06:00
Paul Tsouchlos
e461be5d1a fix: do not use v{} tags in release workflow 2024-11-01 12:06:55 -04:00
Paul Tsouchlos
8d599b3efb chore: use spaces not tabs 2024-11-01 11:55:47 -04:00
Paul Tsouchlos
e1a2395acd chore: update version in README example
Resolves #74
2024-11-01 11:55:20 -04:00
Paul Tsouchlos
85ec799ff1 chore: add release checklist doc 2024-11-01 11:54:37 -04:00
Paul T
cf472b703d Merge pull request #73 from JKRhb/multilang-pdf-title
feat: use multi-language data for PDF title
2024-10-25 06:16:27 -06:00
Jan Romann
ed24813dd5 fixup! feat: use multi-language data for PDF title 2024-10-24 19:27:24 +02:00
Jan Romann
8e22fd0369 feat: use multi-language data for PDF title 2024-10-24 18:03:12 +02:00
Paul T
9b8327fa15 Merge pull request #72 from DeveloperPaul123/feature/make-closing-in-coverletter-optional
Make closing remark in letter optional
2024-10-22 10:31:26 -06:00
Paul Tsouchlos
15e2dfcc29 chore: update dependencies 2024-10-22 11:52:32 -04:00
Paul Tsouchlos
3e2dac4457 doc: improve coverletter docs 2024-10-22 11:52:26 -04:00
Paul Tsouchlos
3424d07af4 feat: make closing remark in letter optional
You can now supply your own text body/function for the letter closing (what goes after the signature)
2024-10-22 11:44:45 -04:00
Jürgen Kleer
4c417a7cbd Fix warnings when using typst 0.12.0 (#71)
* fixes for warnings with typst 0.12.0
* update tests for typst 0.12.0
* update github test workflow for typst 0.12
* chore: apply typst updates to test code
* chore: update compiler version in typst.toml
* chore: use the correct preview version in coverletter2
* chore: improve comments in coverletter template
* chore: update test references
* fix: issues with coverletter for typst `0.12.0`
* update test references with typst-test update

---------

Co-authored-by: Paul Tsouchlos <developer.paul.123@gmail.com>
2024-10-22 07:39:01 -04:00
Paul T
d12482c7fe fix: broken link in README.md 2024-10-15 06:59:00 -04:00
Paul T
36a64cb582 Merge pull request #67 from DeveloperPaul123/fix/ci-and-template-spacing 2024-09-22 14:19:41 -06:00
Paul Tsouchlos
4a6dd48cd4 chore: update ref images for tests (again...) 2024-09-19 19:35:27 -06:00
Paul Tsouchlos
c8497a861e chore: update test refs 2024-09-19 19:27:07 -06:00
Paul Tsouchlos
e31eae9a75 fix: spacing between resume entries and content 2024-09-19 19:15:02 -06:00
Paul Tsouchlos
e6b127822a fix: reference images 2024-09-19 17:38:49 -06:00
Paul Tsouchlos
38822be6eb test: update ref images for tests
Now that I have all fonts properly installed, this should render correctly now.
2024-09-19 12:47:33 -06:00
Paul Tsouchlos
5ffe0b7fbe fix: add example to template of non-bullet info 2024-09-19 12:47:09 -06:00
Paul Tsouchlos
67591bcb13 fix: spaing with resume elements
Fix spacing in the case that a resume entry uses paragraph style information instead of a bulleted list.
2024-09-19 12:46:53 -06:00
Paul Tsouchlos
387c92333e ci: ensure tests have all fonts properly installed 2024-09-19 12:46:27 -06:00
Paul Tsouchlos
f623c11327 docs: don't be condescending 2024-09-19 00:26:38 -06:00
Paul Tsouchlos
82fb731457 chore: update CI badge in README 2024-09-19 00:25:46 -06:00
Paul T
230b5e7dad Merge pull request #65 from DeveloperPaul123/feature/project-infastructure-updates 2024-09-19 02:23:10 -04:00
Paul Tsouchlos
73f0e7be8a fix: use local install for test suite 2024-09-19 00:21:25 -06:00
Paul Tsouchlos
1c38a5e34e fix: install / download fontawesome in home dir
Downloads dir doesn't necessarily exist
2024-09-19 00:10:52 -06:00
Paul Tsouchlos
3338abf39d fix: properly install fontawesome before running tests 2024-09-19 00:07:56 -06:00
Paul Tsouchlos
af6a61d6fd ci: add release github action 2024-09-18 23:16:58 -06:00
Paul Tsouchlos
977a1bdf3e ci: install package before running 2024-09-18 23:13:21 -06:00
Paul Tsouchlos
3bd711ad5b fix: minor issue 2024-09-18 22:52:30 -06:00
Paul Tsouchlos
2e99ceacb6 ci: consolidate scripts and make sure to install fonts 2024-09-18 22:44:27 -06:00
Paul Tsouchlos
306adaa461 ci: add tests workflow 2024-09-18 22:38:16 -06:00
Paul Tsouchlos
198f1a7e1e docs: update README with updated setup instructions
Document what tools are needed when developing the template.
2024-09-18 14:36:22 -06:00
Paul Tsouchlos
d7657ce159 chore: remove legacy scripts 2024-09-18 14:35:41 -06:00
Paul Tsouchlos
688ba75c14 chore: update typstignore 2024-09-18 13:42:16 -06:00
Paul Tsouchlos
60faf81209 build: add format script and just command 2024-09-18 13:41:37 -06:00
Paul Tsouchlos
5ca6476237 build: add basic setup for typst-test 2024-09-18 13:38:39 -06:00
Paul Tsouchlos
72d5c1535d build: move documentation to docs folder
This makes it compatible with the just doc command
2024-09-18 13:38:22 -06:00
Paul Tsouchlos
3ef57b6b85 build: add justfile for using just command 2024-09-18 13:37:53 -06:00
Paul T
c3d1ecc7f9 Merge pull request #64 from DeveloperPaul123/feature/personal-website 2024-09-17 11:58:06 -04:00
Paul Tsouchlos
31bc867c83 wip: add basic version of a personal website link 2024-09-16 22:05:05 -06:00
Paul Tsouchlos
8d7e6f846d build: add useful scripts for installing template
Can now install it locally (or anywhere else) quite easily. This is the first step for being able to auto create PRs when we do a release
2024-09-16 22:00:25 -06:00
Paul T
b623176d8d Merge pull request #63 from mandriota/patch-1
feat: add italian language
2024-09-16 15:27:43 -04:00
Mark Mandriota
78220c28d9 feat: add italian language 2024-09-16 18:10:17 +02:00
Paul T
a33011f396 Merge pull request #62 from kir0ul/patch-1 2024-09-14 20:14:46 -04:00
Andrea PIERRÉ
8c86ccfd94 Update to v0.6.0 2024-09-14 16:18:09 -04:00
Andrea PIERRÉ
db400fc8af Update to v0.6.0 2024-09-14 16:15:31 -04:00
Paul T
3c9a4fcbe5 Merge pull request #58 from mgrimace/main 2024-09-04 13:35:35 -04:00
mgrimace
829c8c2baf formatting parity between cover letter and resume author header 2024-09-02 13:51:13 -04:00
Paul T
bfa22cf89a Merge pull request #55 from DeveloperPaul123/feature/show-hide-footer
feat: add ability to show/hide footer
2024-08-19 23:59:57 -04:00
Paul Tsouchlos
67e8c4ec7f feat: add ability to show/hide footer 2024-08-17 23:43:29 -04:00
Paul Tsouchlos
d6ac41a03b chore: bump version for next release 2024-08-17 23:31:48 -04:00
Paul T
07f2e2a6f6 Merge pull request #54 from DeveloperPaul123/feature/add-font-input
Add font input for resume and coverletter
2024-08-17 23:30:57 -04:00
Paul Tsouchlos
b661a92801 feat: add font input for coverletter 2024-08-17 23:28:48 -04:00
Paul Tsouchlos
f6f1e6f019 feat: add input for font in resume 2024-08-17 23:26:30 -04:00
Paul Tsouchlos
be02c50e20 feat: add snippet with updated resume-entry functionality 2024-08-17 23:26:16 -04:00
Paul T
23d4691994 Merge pull request #53 from gtn1024/patch-1
hidden date and description when both is empty
2024-08-17 20:18:29 -04:00
Taoning Ge
08f72ca1e5 hidden date and description when both is empty 2024-08-17 15:57:39 +08:00
Paul T
79a53ee9c1 Merge pull request #52 from gtn1024/homepage
feat: add homepage to contacts
2024-08-12 08:11:50 -04:00
Taoning Ge
8c6071a82d feat: add homepage to contacts 2024-08-12 09:32:43 +08:00
Paul T
f26afed219 Merge pull request #51 from hmyuuu/orcid
Add ORCID links with icons in the header
2024-07-30 08:02:41 -04:00
Huaiming Yu
9e65c85a0d Add orcid link 2024-07-30 15:29:18 +08:00
Paul T
9d2dff3a5b Merge pull request #49 from gtn1024/lang-zh
feat: add chinese language
2024-07-26 07:08:16 -04:00
Taoning Ge
4e71f1db53 feat: add chinese language 2024-07-26 10:09:47 +08:00
Paul Tsouchlos
4346e36a8d Merge branch 'main' of github.com:DeveloperPaul123/modern-cv 2024-07-23 09:38:37 -04:00
Paul Tsouchlos
41131cbb86 fix: import version in example 2024-07-23 09:38:24 -04:00
Paul T
d2aa55b889 Merge pull request #48 from DeveloperPaul123/release/0.5.0
`0.5.0` release back merge
2024-07-22 10:52:55 -04:00
Paul Tsouchlos
a2fe9ca40a chore: update doc generation package 2024-07-22 10:50:03 -04:00
Paul Tsouchlos
78a53befb5 fix: theming issues and update docs 2024-07-22 10:49:52 -04:00
Paul Tsouchlos
3845415587 format: auto-formatting 2024-07-22 09:52:18 -04:00
Paul Tsouchlos
650b2b0cec chore: update version in templates 2024-07-22 09:51:15 -04:00
Paul Tsouchlos
4dcb8ab7fd chore: bump version 2024-07-22 09:50:02 -04:00
Paul Tsouchlos
40427ffede fix: don't color resume-entry links 2024-07-22 09:49:51 -04:00
Paul T
2567ecb808 Merge pull request #47 from zundertj/patch-1
Update README example to use 0.4.0
2024-07-21 18:47:27 -04:00
J van Zundert
ab79ab2790 Update README example to use 0.4.0
As a new user (to typst and to modern-cv), I copy-pasted the example, got it working, and then started modifying using features released post 0.1.0 (such as `colored-headers`). It took me a while to figure out that the import is of a very old version.

PS: thank you for this package, works very well.
2024-07-21 09:20:34 +00:00
Paul T
9652a1cb90 Merge pull request #46 from hadim/hadim-patch-1
Tweaks + add new icons
2024-07-15 10:01:26 -04:00
Paul T
a721c30354 feat: use new features in template 2024-07-15 09:58:33 -04:00
Paul T
207a2f37b9 chore: remove spacing
I don't think this added space accomplishes much. Removing for now.
2024-07-15 09:55:53 -04:00
Paul T
aafb3b31f9 fix: remove italics
Italics can be unnecessarily hard to read.
2024-07-15 09:55:32 -04:00
Hadrien Mary
da7aec4451 Tweaks 2024-07-15 09:08:18 -04:00
Paul T
9837139dad Merge pull request #43 from DeveloperPaul123/release/0.4.0
Back-merge: 0.4.0 release
2024-07-10 15:17:41 -04:00
Paul T
7571cffd8b Revert "ci: run ci on pull requests"
This reverts commit 9cc5a62a50.
2024-07-09 17:08:41 -04:00
Paul T
9cc5a62a50 ci: run ci on pull requests 2024-07-09 17:07:33 -04:00
Paul T
fc3347ae75 chore: use new version in templates 2024-07-09 17:02:58 -04:00
Paul T
f03c687808 chore: bump version 2024-07-09 16:56:32 -04:00
Paul T
1c6e9e429f Merge pull request #42 from ruidajo/main
Updating the FontAwesome dependency and modifying the template const icons.
2024-07-09 15:53:17 -04:00
Paul T
a6a6108cae format: auto formatting 2024-07-09 15:33:36 -04:00
Paul T
85e9faf8dc chore: remove (now) unused icon 2024-07-09 15:33:21 -04:00
ruidajo
cf10c53032 Fixing fontawesome square-phone icon setting. 2024-07-09 12:49:17 -05:00
ruidajo
744a7657e0 Updating the FontAwesome dependency and modifying the template const icons. 2024-07-09 12:23:20 -05:00
Paul T
d97b816d20 Merge pull request #40 from DeveloperPaul123/fix/no-space-for-chinese-and-japanese
No space between first and last name for Japanese and Chinese languages
2024-07-08 16:12:40 -04:00
Paul T
4cefe9c2cd Merge branch 'fix/no-space-for-chinese-and-japanese' of github.com:DeveloperPaul123/modern-cv into fix/no-space-for-chinese-and-japanese 2024-06-23 20:31:48 -04:00
Paul T
53f3b721b2 fix: no space for name when language is zh or jp
For chinese and japanese, don't use a space between the firstname and lastname
2024-06-23 20:31:40 -04:00
Paul T
70e7f9cafd Merge pull request #41 from DeveloperPaul123/feature/make-address-optional
Mmake address optional
2024-06-23 20:31:13 -04:00
Paul T
0f4e404994 fix: try to address ci issues 2024-06-23 20:18:34 -04:00
Paul T
3afe98f056 feat: make address optional
Also improved how other fields in the `author` dictionary are checked so they can be omitted completely if the user so chooses. Currently they must be left empty to be omitted.
2024-06-23 20:15:57 -04:00
Paul T
a2ac2cfb18 fix: no space for name when language is zh or jp
For chinese and japanese, don't use a space between the firstname and lastname
2024-06-23 20:03:42 -04:00
Paul T
6f3a515d16 Merge pull request #39 from Blezz-tech/main
add russian language
2024-06-23 16:44:08 -04:00
Paul T
aa021a31d7 fix: add new line 2024-06-23 16:43:41 -04:00
Blezz-tech
0b5c18ec88 added optional option to override the "dear" variable 2024-06-22 16:27:37 +03:00
Blezz-tech
d9002d8a26 add russian language 2024-06-21 20:42:40 +03:00
Paul T
7baa016c88 Merge pull request #33 from Andres-AM/adding-font
including font Source Sans 3 line 434
2024-06-17 01:21:37 -04:00
Andres-AM
c73984ab81 including font Source Sans 3 line 434 2024-06-06 10:41:53 +02:00
Paul T
05ffbcef15 Merge pull request #30 from LucasGenoud/patch-1
feat: Added french as supported languages
2024-05-26 08:27:03 -04:00
Lucas Genoud
1dae612f74 feat: Added french as supported languages 2024-05-25 15:08:48 +02:00
Paul T
e948a09984 Merge pull request #29 from DeveloperPaul123/release/0.3.1
Release/0.3.1 back-merge
2024-05-14 12:11:25 -04:00
Paul T
04bc4ffbd7 chore: update version used in templates 2024-05-14 12:02:20 -04:00
Paul T
46a83e51c0 chore: update images 2024-05-14 12:01:37 -04:00
Paul T
377c0d9ff6 chore: update version 2024-05-14 12:01:26 -04:00
Paul T
8b27dbdaf2 fix: add sincerely to lang.toml
Added "Sincerely" in the coverletter to the list of translated words. Fixes #27
2024-05-14 11:52:51 -04:00
Paul T
21cdfb557b format: auto-formatting 2024-05-14 11:52:50 -04:00
Paul T
2f5ad86c6f chore: increment versions in templates 2024-05-14 11:52:50 -04:00
Paul T
07449e0394 Merge pull request #28 from lpchaim/language-portuguese
Add Portuguese translation
2024-05-14 09:41:31 -04:00
Lucas Chaim
9526f6a566 Add Portuguese translation
This PR adds Portuguese as a language option, language code pt.
2024-05-13 20:20:31 -03:00
Paul T
a7ce85d877 Merge pull request #25 from DerFetzer/patch-1
Support Source Sans Pro font with alternative name
2024-04-22 07:09:21 -07:00
DerFetzer
577ad93af7 Support Source Sans font with alternative name 2024-04-22 14:57:02 +02:00
Paul T
fad778ee86 Merge pull request #22 from DeveloperPaul123/feature/language-support
Add multi-langauge support
2024-04-15 13:05:34 -07:00
Paul T
f7a4ffdd17 docs: add docs on how to build and test template 2024-04-15 15:19:23 -04:00
Paul T
62286ddd14 chore: update images 2024-04-15 15:18:58 -04:00
Paul T
efd27110bd feat: add initial mult-lingaal support for template
Using linguify to support multiple languages
2024-04-15 13:07:43 -04:00
Paul T
033a0f7fbb chore: update thumbnails 2024-04-05 21:13:40 -04:00
Christoph Gross
bf1e3bd1f6 Ignore contact fields that are set to none (#16)
* Add optional contact info

Ignore contact fields that are set to none. 
Email is taken as the "priority" field which is most likely set and therefore doesn't have a separator field included. This could be either set to a different field or be replaced by a better function.

* Fix Expression error

---------

Co-authored-by: Paul T <developer.paul.123@gmail.com>
2024-04-05 21:10:12 -04:00
Paul T
201f6f7657 chore: update version to 0.3.0 2024-04-05 17:48:54 -07:00
Paul T
e477fc04df chore: add new line 2024-04-05 17:48:54 -07:00
Paul T
12ea6807a3 chore: update readme and screenshots 2024-04-05 17:48:54 -07:00
Paul T
6bd4116307 fix: update examples based on template changes 2024-04-05 17:48:54 -07:00
Paul T
d2482e1198 fix: minor issues with accent color, switch to kebab-case
Fixed minor issue with accent color and switch (fully) to using kebab case.

Fixes #17
Fixes #19
2024-04-05 17:48:54 -07:00
Paul T
9654d6ef7c build: ignore asset files when releasing package 2024-04-05 17:48:54 -07:00
Paul T
b23f46b9ba chore: shared repo config from fork 2024-04-05 17:48:54 -07:00
Paul T
bd9bfc1733 format: auto format update 2024-04-05 17:48:54 -07:00
Paul T
87e0609aa9 format: auto-formatting 2024-04-05 17:48:54 -07:00
Paul T
bf166be9fb feat: add script to format typst files 2024-04-05 17:48:54 -07:00
Paul T
0b7481e9be feature: add another coverletter example 2024-04-02 14:59:54 -07:00
40 changed files with 1514 additions and 538 deletions

View File

@@ -0,0 +1,16 @@
[
{
"version" : 1
},
{
"action" : {
"script" : "${repo:path}/scripts/format_typst.ps1",
"showOutput" : true,
"type" : "sh",
"waitForExit" : true
},
"name" : "Format",
"os" : "windows",
"target" : "revision"
}
]

View File

@@ -1,21 +0,0 @@
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-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

77
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,77 @@
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-22.04
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}"

85
.github/workflows/tests.yml vendored Normal file
View File

@@ -0,0 +1,85 @@
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", "0.13"]
# the docs don't need to build with all versions supported by the package;
# the latest one is enough
include:
- typst-version: "0.13"
doc: 1
runs-on: ubuntu-22.04
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 tytanic
uses: taiki-e/cache-cargo-install-action@v2
with:
tool: tytanic@0.2.2
- 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
typst fonts
- name: Uninstall previous local install
run: just uninstall
- name: Run test suite
run: |
just install
tt run --font-path ~/.fonts --no-fail-fast
- name: Archive diffs
uses: actions/upload-artifact@v4
if: always()
with:
name: diffs-typst-${{ matrix.typst-version }}
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

4
.gitignore vendored
View File

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

7
.issuetracker Normal file
View File

@@ -0,0 +1,7 @@
# Integration with Issue Tracker
#
# (note that '\' need to be escaped).
[issuetracker "Github"]
regex = "#(\\d+)"
url = "https://github.com/DeveloperPaul123/modern-cv/issues/$1"

9
.typstignore Normal file
View File

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

57
Justfile Normal file
View File

@@ -0,0 +1,57 @@
root := justfile_directory()
export TYPST_ROOT := root
[private]
default:
@just --list --unsorted
# generate manual
[doc('Generate package documentation')]
[group('package')]
doc:
typst compile docs/manual.typ docs/manual.pdf
[doc('Run test suite. Requires tytanic.')]
[group('dev')]
test *args: install
tt run {{ args }} --use-system-fonts --no-fail-fast
[doc('Update test cases. Requires tytanic.')]
[group('dev')]
update *args:
tt update {{ args }} --use-system-fonts
[doc('Package the library into the specified destination folder')]
[group('package')]
package target:
./scripts/package "{{target}}"
[doc('Install the library with the "@local" prefix')]
[group('dev')]
install: (package "@local")
[doc('Install the library with the "@preview" prefix (for pre-release testing)')]
[group('dev')]
install-preview: (package "@preview")
[private]
remove target:
./scripts/uninstall "{{target}}"
[doc('Uninstall the library from the "@local" prefix')]
[group('dev')]
uninstall: (remove "@local")
[doc('Uninstall the library from the "@preview" prefix (for pre-release testing)')]
[group('dev')]
uninstall-preview: (remove "@preview")
[doc('Format the source code. Requires typstyle.')]
[group('dev')]
format:
./scripts/format
[doc('Run ci suite')]
[group('dev')]
ci: test doc

View File

@@ -1,14 +1,43 @@
# Modern CV
<h1 align="center">
<img src="assets/images/header.png" alt="Header">
<br><br>
Modern CV
</h1>
[![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)
[![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)
[![Tests](https://github.com/DeveloperPaul123/modern-cv/actions/workflows/tests.yml/badge.svg)](https://github.com/DeveloperPaul123/modern-cv/actions/workflows/tests.yml)
A port of the [Awesome-CV](https://github.com/posquit0/Awesome-CV) Latex resume template in [typst](https://github.com/typst/typst).
## Features
- Modern and clean design
- Easy to use and customize (colors, profile picture, fonts, etc.)
- Support for multiple sections (education, experience, skills, etc.)
- Support for multiple languages
## Preview
| Resumes | Cover letters |
| --- | --- |
| ![Resume](assets/images/resume.png) | ![Cover Letter](assets/images/coverletter.png) |
| ![Resume 2](assets/images/resume2.png) | ![Cover Letter 2](assets/images/coverletter2.png)|
## 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)
@@ -27,7 +56,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.1.0": *
#import "@preview/modern-cv:0.8.0": *
#show: resume.with(
author: (
@@ -43,7 +72,9 @@ Below is a basic example for a simple resume:
"Software Architect"
)
),
date: datetime.today().display()
profile-picture: none,
date: datetime.today().display(),
paper-size: "us-letter"
)
= Education
@@ -72,8 +103,29 @@ For more information on how to use and compile `typst` files, see the [official
Documentation for this template is published with each commit. See the attached PDF on each Github Action run [here](https://github.com/DeveloperPaul123/modern-cv/actions).
### Output
## Building and Testing Locally
| | |
| --- | --- |
| ![Resume](assets/images/resume.png) | ![Cover Letter](assets/images/coverletter.png) |
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).
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):
```typst
#import "@local/modern-cv:0.8.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.
## License
The project is licensed under the MIT license. See [LICENSE](LICENSE) for more details.
## Author
| [<img src="https://avatars0.githubusercontent.com/u/6591180?s=460&v=4" width="100"><br><sub>@DeveloperPaul123</sub>](https://github.com/DeveloperPaul123) |
|:----:|

Binary file not shown.

View File

@@ -1,165 +0,0 @@
Fonticons, Inc. (https://fontawesome.com)
--------------------------------------------------------------------------------
Font Awesome Free License
Font Awesome Free is free, open source, and GPL friendly. You can use it for
commercial projects, open source projects, or really almost whatever you want.
Full Font Awesome Free license: https://fontawesome.com/license/free.
--------------------------------------------------------------------------------
# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/)
The Font Awesome Free download is licensed under a Creative Commons
Attribution 4.0 International License and applies to all icons packaged
as SVG and JS file types.
--------------------------------------------------------------------------------
# Fonts: SIL OFL 1.1 License
In the Font Awesome Free download, the SIL OFL license applies to all icons
packaged as web and desktop font files.
Copyright (c) 2023 Fonticons, Inc. (https://fontawesome.com)
with Reserved Font Name: "Font Awesome".
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
SIL OPEN FONT LICENSE
Version 1.1 - 26 February 2007
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting — in part or in whole — any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
--------------------------------------------------------------------------------
# Code: MIT License (https://opensource.org/licenses/MIT)
In the Font Awesome Free download, the MIT license applies to all non-font and
non-icon files.
Copyright 2023 Fonticons, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in the
Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
# Attribution
Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded Font
Awesome Free files already contain embedded comments with sufficient
attribution, so you shouldn't need to do anything additional when using these
files normally.
We've kept attribution comments terse, so we ask that you do not actively work
to remove them from files, especially code. They're a great way for folks to
learn about Font Awesome.
--------------------------------------------------------------------------------
# Brand Icons
All brand icons are trademarks of their respective owners. The use of these
trademarks does not indicate endorsement of the trademark holder by Font
Awesome, nor vice versa. **Please do not use brand logos for any purpose except
to represent the company, product, or service to which they refer.**

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm90.7 96.7c9.7-2.6 19.9 2.3 23.7 11.6l20 48c3.4 8.2 1 17.6-5.8 23.2L168 231.7c16.6 35.2 45.1 63.7 80.3 80.3l20.2-24.7c5.6-6.8 15-9.2 23.2-5.8l48 20c9.3 3.9 14.2 14 11.6 23.7l-12 44C336.9 378 329 384 320 384C196.3 384 96 283.7 96 160c0-9 6-16.9 14.7-19.3l44-12z"/></svg>

Before

Width:  |  Height:  |  Size: 612 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 KiB

After

Width:  |  Height:  |  Size: 231 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

BIN
assets/images/header.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

BIN
assets/images/logo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

After

Width:  |  Height:  |  Size: 251 KiB

BIN
assets/images/resume2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

7
docs/manual.typ Normal file
View File

@@ -0,0 +1,7 @@
#import "../lib.typ"
#import "@preview/tidy:0.4.1"
#let docs = tidy.parse-module(read("../lib.typ"), name: "Modern CV", scope: (
resume: lib,
))
#tidy.show-module(docs, style: tidy.styles.minimal)

13
docs/release-checklist.md Normal file
View File

@@ -0,0 +1,13 @@
# 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.

83
lang.toml Normal file
View File

@@ -0,0 +1,83 @@
[conf]
default-lang = "en"
[lang.en]
resume = "Résumé"
dear = "Dear"
cover-letter = "Cover Letter"
attached = "Attached"
curriculum-vitae = "Curriculum Vitae"
sincerely = "Sincerely"
letter-position-pretext = "Job Application for"
[lang.de]
resume = "Lebenslauf"
dear = "Sehr geehrte"
cover-letter = "Anschreiben"
attached = "Angehängt"
curriculum-vitae = "Lebenslauf"
sincerely = "Mit freundlichen Grüßen"
letter-position-pretext = "Bewerbung für"
[lang.gr]
resume = "Βιογραφικό"
dear = "Αγαπητέ"
cover-letter = "Συνοδευτική Επιστολή"
attached = "Συνημμένο"
curriculum-vitae = "Βιογραφικό"
sincerely = "Με εκτίμηση"
letter-position-pretext = "Αίτηση εργασίας για"
[lang.pt]
resume = "Currículo"
dear = "Caro(a)"
cover-letter = "Carta de Apresentação"
attached = "Em anexo"
curriculum-vitae = "Currículo"
sincerely = "Atenciosamente"
letter-position-pretext = "Candidatura a emprego para"
[lang.sp]
resume = "Currículum"
dear = "Estimado"
cover-letter = "Carta de Presentación"
attached = "Adjunto"
curriculum-vitae = "Currículum"
sincerely = "Sinceramente"
letter-position-pretext = "Solicitud de empleo para"
[lang.fr]
resume = "Curriculum Vitae"
dear = "Cher/Chère"
cover-letter = "Lettre de motivation"
attached = "Ci-joint"
curriculum-vitae = "Curriculum Vitae"
sincerely = "Sincèrement"
letter-position-pretext = "Demande d'emploi pour"
[lang.ru]
resume = "Резюме"
dear = "Уважаемый"
cover-letter = "Сопроводительное письмо"
attached = "Прилагается"
curriculum-vitae = "Биографическая справка"
sincerely = "Искренне"
letter-position-pretext = "Заявление о приеме на работу"
[lang.zh]
resume = "简历"
dear = "亲爱的"
cover-letter = "求职信"
attached = "附件"
curriculum-vitae = "简历"
sincerely = "真诚的"
letter-position-pretext = "職位申請"
[lang.it]
resume = "Curriculum"
dear = "Egregio"
cover-letter = "Lettera di presentazione"
attached = "Allegato"
curriculum-vitae = "Curriculum Vitae"
sincerely = "Cordiali saluti"
letter-position-pretext = "Domanda di lavoro per"

849
lib.typ

File diff suppressed because it is too large Load Diff

View File

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

3
scripts/format Executable file
View File

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

11
scripts/install-fontawesome Executable file
View File

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

21
scripts/install-source-sans Executable file
View File

@@ -0,0 +1,21 @@
#!/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
wget -O ~/source-sans-pro.zip https://github.com/adobe-fonts/source-sans-pro/archive/2.020R-ro/1.075R-it.zip
mkdir -p ~/source-sans-pro-fonts
unzip ~/source-sans-pro.zip -d ~/source-sans-pro-fonts
mkdir -p ~/.fonts
find ~/source-sans-pro-fonts -type f -name "*.otf" -exec cp {} ~/.fonts \;
# clean up
rm ~/source-sans-pro.zip
rm -rf ~/source-sans-pro-fonts
fc-cache -f -v

View File

@@ -1,10 +0,0 @@
# 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

86
scripts/package Executable file
View File

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

37
scripts/setup Normal file
View File

@@ -0,0 +1,37 @@
# 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
}

33
scripts/uninstall Executable file
View File

@@ -0,0 +1,33 @@
#!/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,5 @@
typst compile -f png $PSScriptRoot/../template/resume.typ $PSScriptRoot/../assets/images/resume.png
typst compile -f png $PSScriptRoot/../template/coverletter.typ $PSScriptRoot/../assets/images/coverletter.png
typst compile -f png $PSScriptRoot/../template/coverletter2.typ $PSScriptRoot/../assets/images/coverletter2.png
oxipng.exe $PSScriptRoot/../assets/images/*
oxipng.exe $PSScriptRoot/../assets/images/*.png

View File

@@ -1,39 +1,50 @@
#import "@preview/modern-cv:0.2.0":*
#import "@preview/modern-cv:0.8.0": *
#show: coverletter.with(
author: (
firstname: "John",
lastname: "Smith",
email: "js@gmail.com",
phone: "(+1) 111-111-1111",
github: "DeveloperPaul123",
linkedin: "John Smith",
address: "111 Example St. Apt. 111, Example City, EX 11111",
positions: (
"Software Engineer",
"Full Stack Developer"
)
firstname: "John",
lastname: "Smith",
email: "js@gmail.com",
homepage: "https://example.com",
phone: "(+1) 111-111-1111",
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",
),
),
profile_picture: image("./profile.png")
profile-picture: image("./profile.png"),
// change this to match the language available in 'lang.toml'
language: "en",
font: "Times New Roman",
// Remove the following line to show the footer
// Or set the value to `true`
show-footer: false,
// this defaults to false
show-address-icon: true,
// set this to `none` to show the default or remove it completely
closing: [],
// see typst "page" documentation for more options
paper-size: "us-gov-legal",
)
#hiring-entity-info(
entity_info: (
target: "Company Recruitement Team",
name: "Google, Inc.",
street_address: "1600 AMPHITHEATRE PARKWAY",
city: "MOUNTAIN VIEW, CA 94043"
)
entity-info: (
target: "Company Recruitement Team",
name: "Google, Inc.",
street-address: "1600 AMPHITHEATRE PARKWAY",
city: "MOUNTAIN VIEW, CA 94043",
),
)
#letter-heading(
job_position: "Software Engineer",
addressee: "Sir or Madame"
)
#letter-heading(job-position: "Software Engineer", addressee: "Sir or Madame")
= About Me
#coverletter-content[
#lorem(80)
#lorem(80)
]
= Why Google?

50
template/coverletter2.typ Normal file
View File

@@ -0,0 +1,50 @@
#import "@preview/modern-cv:0.8.0": *
#show: coverletter.with(
author: (
firstname: "John",
lastname: "Smith",
email: "js@gmail.com",
homepage: "https://example.com",
phone: "(+1) 111-111-1111",
github: "DeveloperPaul123",
linkedin: "John Smith",
address: "111 Example St. Apt. 111, Example City, EX 11111",
positions: (
"Software Engineer",
"Full Stack Developer",
),
custom: (
(
text: "Youtube Channel",
icon: "youtube",
link: "http://example.com",
),
),
),
profile-picture: none,
language: "sp",
)
#hiring-entity-info(
entity-info: (
target: "Company Recruitement Team",
name: "Google, Inc.",
street-address: "1600 AMPHITHEATRE PARKWAY",
city: "MOUNTAIN VIEW, CA 94043",
),
)
#letter-heading(job-position: "Software Engineer", addressee: "Sir or Madame")
#coverletter-content[
#lorem(100)
]
#coverletter-content[
#lorem(90)
]
#coverletter-content[
#lorem(110)
]

View File

@@ -1,22 +1,39 @@
#import "@preview/modern-cv:0.2.0": *
#import "@preview/modern-cv:0.8.0": *
#show: resume.with(
author: (
firstname: "John",
lastname: "Smith",
email: "js@example.com",
phone: "(+1) 111-111-1111",
github: "DeveloperPaul123",
linkedin: "Example",
address: "111 Example St. Example City, EX 11111",
positions: (
"Software Engineer",
"Software Architect",
"Developer"
)
firstname: "John",
lastname: "Smith",
email: "js@example.com",
homepage: "https://example.com",
phone: "(+1) 111-111-1111",
github: "DeveloperPaul123",
twitter: "typstapp",
scholar: "",
orcid: "0000-0000-0000-000X",
birth: "January 1, 1990",
linkedin: "Example",
address: "111 Example St. Example City, EX 11111",
positions: (
"Software Engineer",
"Software Architect",
"Developer",
),
custom: (
(
text: "Youtube Channel",
icon: "youtube",
link: "https://example.com",
),
),
),
profile-picture: image("profile.png"),
date: datetime.today().display(),
colored_headers: true
language: "en",
colored-headers: true,
show-footer: false,
show-address-icon: true,
paper-size: "us-letter",
)
= Experience
@@ -25,26 +42,34 @@
title: "Senior Software Engineer",
location: "Example City, EX",
date: "2019 - Present",
description: "Example, Inc."
description: "Example, Inc.",
title-link: "https://github.com/DeveloperPaul123",
)
#resume-item[
- #lorem(20)
- #lorem(15)
- #lorem(25)
- #lorem(25)
]
#resume-entry(
title: "Software Engineer",
location: "Example City, EX",
date: "2011 - 2019",
description: "Previous Company, Inc."
description: "Previous Company, Inc.",
)
#resume-item[
// content doesn't have to be bullet points
#lorem(72)
]
#resume-entry(title: "Intern", location: "Example City, EX")
#resume-item[
- #lorem(20)
- #lorem(15)
- #lorem(25)
- #lorem(25)
]
= Projects
@@ -53,7 +78,7 @@
title: "Thread Pool C++ Library",
location: [#github-link("DeveloperPaul123/thread-pool")],
date: "May 2021 - Present",
description: "Designer/Developer"
description: "Designer/Developer",
)
#resume-item[
@@ -65,7 +90,7 @@
title: "Event Bus C++ Library",
location: github-link("DeveloperPaul123/eventbus"),
date: "Sep. 2019 - Present",
description: "Designer/Developer"
description: "Designer/Developer",
)
#resume-item[
@@ -75,9 +100,63 @@
= Skills
#resume-skill-item("Languages", (strong("C++"), strong("Python"), "Java", "C#", "JavaScript", "TypeScript"))
#resume-skill-item(
"Programming Languages",
(
strong("C++"),
strong("Python"),
"Rust",
"Java",
"C#",
"JavaScript",
"TypeScript",
),
)
#resume-skill-item("Spoken Languages", (strong("English"), "Spanish"))
#resume-skill-item("Programs", (strong("Excel"),"Word", "Powerpoint", "Visual Studio"))
#resume-skill-item(
"Programs",
(
strong("Excel"),
"Word",
"Powerpoint",
"Visual Studio",
),
)
// spacing fix, not needed if you use `resume-skill-grid`
#block(below: 0.65em)
// An alternative way of list out your resume skills
// #resume-skill-grid(
// categories_with_values: (
// "Programming Languages": (
// strong("C++"),
// strong("Python"),
// "Rust",
// "Java",
// "C#",
// "JavaScript",
// "TypeScript",
// ),
// "Spoken Languages": (
// strong("English"),
// "Spanish",
// "Greek",
// ),
// "Programs": (
// strong("Excel"),
// "Word",
// "Powerpoint",
// "Visual Studio",
// "git",
// "Zed"
// ),
// "Really Really Long Long Long Category": (
// "Thing 1",
// "Thing 2",
// "Thing 3"
// )
// ),
// )
= Education
@@ -85,11 +164,11 @@
title: "Example University",
location: "Example City, EX",
date: "August 2014 - May 2019",
description: "B.S. in Computer Science"
description: "B.S. in Computer Science",
)
#resume-item[
- #lorem(20)
- #lorem(15)
- #lorem(25)
]
- #lorem(25)
]

BIN
tests/resume/ref/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

64
tests/resume/test.typ Normal file
View File

@@ -0,0 +1,64 @@
#import "@local/modern-cv:0.8.0": *
// setup the document like we do for the resume
#let font = "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")

BIN
tests/utilities/ref/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

68
tests/utilities/test.typ Normal file
View File

@@ -0,0 +1,68 @@
#import "@local/modern-cv:0.8.0": *
// setup the document like we do for the resume
#let font = "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
#gitlab-icon
#bitbucket-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.2.0"
compiler = "0.11.0"
version = "0.8.0"
compiler = "0.12.0"
entrypoint = "lib.typ"
authors = ["Paul Tsouchlos <https://github.com/DeveloperPaul123>"]
license = "MIT"
@@ -9,8 +9,7 @@ description = "A modern resume template based on the Awesome-CV Latex template."
keywords = ["CV", "Curriculum Vitae", "Resume", "Minimalistic", "Professional", "Modern"]
categories = ["cv"]
disciplines = []
exclude = ["resume-documentation*", "scripts*"]
homepage = "https://github.com/DeveloperPaul123/modern-cv"
exclude = ["resume-documentation*", "scripts*", "assets/images/*"]
repository = "https://github.com/DeveloperPaul123/modern-cv"
[template]