343 Commits

Author SHA1 Message Date
Ian Holloway
8ad18fe9c0 add grade field to education entry (#463)
* add grade field to education entry

* remove optional and use "| None"

* remove optional and use "| None"

* update schema
2025-10-23 21:21:32 +03:00
Ian Holloway
bebbf8d04c Create optional automaitc sorting capabilites for entries (#461)
* Fix sorting stability and add tie-break tests

* update schema

* formatting

* fix error with import

* fix failing test case
2025-10-23 21:20:56 +03:00
Ian Holloway
7586b47044 fix all test errors and warnings (#456)
* fix test case test_main_file

* Enhance Typst source preprocessing to eliminate unwanted spacing caused by inline formatting

* make changes to pass hatch run default:format

* remove most warnings from pytest

* fix the all warnings

* fix ruff

* remove noqa comments

* remove duplicate line of code

* run ruff format

* add read_a_yaml_file_with_coordinates function to read YAML files with location info

* refactor: add type annotations to field_info variables for clarity

* run ruff format

* update schema
2025-10-23 00:04:37 +03:00
Jesse Spielman
bf45cb2869 Add IMDB social network (#479)
* Add IMDB social network to CV model

* Add IMDB to schema.json with other social networks

* Add tests for IMDB social Network
2025-10-22 23:48:26 +03:00
Thiago Perrotta
9510138a7c ci(pre-commit): add yamllint (#496) 2025-10-22 23:45:08 +03:00
Jakob Stender Gulberg
88dc67be35 build: Add codespell pre-commit hook and correct various typos (#469)
* build: Add codespell pre-commit hook and correct various typos

* Update design.py

---------

Co-authored-by: Jakob Stender Guldberg <jakob1379gmail.com>
2025-09-14 16:05:10 +03:00
Sina Atalay
a3ad85420e Update examples 2025-03-01 20:30:22 -05:00
Sina Atalay
8385b529e9 Fix API issues and update schema (#358) 2025-02-16 22:55:10 -05:00
Sina Atalay
0318d26854 Add new fields: design.header.use_urls_as_placeholders_for_connections, design.header.make_connections_links, and design.highlights.highlights_nested_bullet_field_info 2025-02-16 20:13:44 -05:00
Sina Atalay
b3b8a760fd Fix spelling error, with-parial-line (#349) 2025-02-09 19:18:18 -05:00
Sina Atalay
361df43c57 Improve markdown_to_typst 2025-02-08 18:42:43 -05:00
Sina Atalay
c6428adcd8 Improve API 2025-02-08 18:42:43 -05:00
Sina Atalay
38ffe33138 Improve workflows 2025-02-08 18:08:33 -05:00
Sina Atalay
f6f8c490f4 Improve the documentation 2025-02-04 22:27:42 -05:00
Sina Atalay
0ddd489951 Improve hatch scripts and create executables 2025-02-04 18:53:34 -05:00
Sina Atalay
0318b1a270 Add a new social network: X (#212, #187, #109, #107) 2025-02-02 22:52:31 -05:00
Sina Atalay
23ec504cbe Improve validation and JSON Schema 2025-02-02 22:05:58 -05:00
Sina Atalay
c9d6a5a3e9 Allow using Typst commands in the YAML file 2025-02-02 18:50:15 -05:00
Sina Atalay
c171ff5549 Fix render --png-path is not copying all the png files (#332) 2025-02-02 18:25:03 -05:00
Sina Atalay
99f97d12b2 Add a new field: design.entries.allow_page_break_in_sections 2025-02-02 18:03:14 -05:00
Sina Atalay
adafc307a4 Create two entry types: NumberedEntry and ReversedNumberedEntry 2025-02-02 17:49:08 -05:00
Sina Atalay
f441b5742a Handle None entries 2025-01-26 16:24:30 -05:00
Sina Atalay
63bfa0dd07 tests: skip test_if_the_schema_is_the_latest 2025-01-25 19:21:46 -05:00
Sina Atalay
5c16e2c3f0 tests: fix test_if_the_schema_is_the_latest 2025-01-25 19:18:15 -05:00
Sina Atalay
35b77d2884 tests: update test_render_command_with_invalid_arguments 2025-01-25 18:06:27 -05:00
Sina Atalay
f6eb8b48c2 tests: update api test 2025-01-25 18:00:39 -05:00
Sina Atalay
02b7350734 fix formatting 2025-01-20 09:45:14 -05:00
Sina Atalay
bd1be140bf tests: disable test_if_the_schema_is_the_latest in Windows 2025-01-20 09:32:50 -05:00
Sina Atalay
438ff8d13b Bundle Font Awesome 6 fonts (#314)
* Bundle Font Awesome 6 fonts

* hope to skip less tests with font awesome fix

* update schema

* format

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-01-19 23:51:14 -05:00
Sina Atalay
a4687b31cc Fix path issues in rendercv_settings and CLI (#312)
* fix #272

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-01-19 19:41:04 -05:00
Marcin Konowalczyk
bf38e29362 Change bold and italics typst source generation (#303)
* use #emph and #strong instead of underscores and asterisks

* convert remaining asterisks

* templater #strong and #emph

Change templater to use #strong and #emph instead of * and _ respectively.

* update classic test files (no pdf diff)

* update engineeringclassic test files (no pdf diff)

* update sb2nov test files (no pdf diff)

* update engineeringrer test data (minor pdf diff)

engineeringresumes_empty_long_second_row.pdf
0 of 1 pages differ.
engineeringresumes_empty_short_second_row.pdf
0 of 1 pages differ.
engineeringresumes_filled_long_second_row.pdf
13 of 39 pages differ.
engineeringresumes_filled_short_second_row.pdf
14 of 45 pages differ.

The diff is one extra comma which tbh, was probably supposed to be there anyway:

Old: `Bogaziçi University in Mechanical Engineering: - Istanbul, Turkey`
New: `Bogaziçi University, in Mechanical Engineering: - Istanbul, Turkey`

* update moderncv test data (minor pdf diff)

moderncv_empty_long_second_row.pdf
0 of 1 pages differ.
moderncv_empty_short_second_row.pdf
0 of 1 pages differ.
moderncv_filled_long_second_row.pdf
14 of 46 pages differ.
moderncv_filled_short_second_row.pdf
14 of 46 pages differ.

Same diff as for engineeringresumes -- one extra comma which, was probably supposed to be there anyway:

Old: `Bogaziçi University in Mechanical Engineering: - Istanbul, Turkey`
New: `Bogaziçi University, in Mechanical Engineering: - Istanbul, Turkey`

* update markdown_to_typst test

* fix link fixing

* add link fixing test

* update templater.py

* fix a test

* fix a linting error

---------

Co-authored-by: Sina Atalay <dev@atalay.biz>
2025-01-19 19:02:03 -05:00
Marcin Konowalczyk
0f37939f7d Improve packaging version comparison (#299)
* proper packaging version comparison

* fix tests

* test_rendercv_no_version_when_there_is_no_new_version

* Augment test

* small changes

---------

Co-authored-by: Sina Atalay <dev@atalay.biz>
2025-01-19 18:45:39 -05:00
Sina Atalay
efe308ae1c tests: skip more tests 2025-01-07 15:01:31 +03:00
Sina Atalay
9f795af8da fix linting issues 2025-01-07 14:56:15 +03:00
Sina Atalay
c02a4be7db tests: skip more tests 2025-01-07 14:55:53 +03:00
Sina Atalay
135bc9d160 fix linting issues 2025-01-07 14:51:30 +03:00
Sina Atalay
7bb2ca4eab tests: skip failed tests for now 2025-01-07 14:50:48 +03:00
Sina Atalay
19503e872a update testdata 2025-01-07 14:26:50 +03:00
Sina Atalay
22ab55f18f use XCharter instead of Charter 2025-01-07 13:48:27 +03:00
Sina Atalay
97cb474bc8 fix tests 2025-01-07 13:16:51 +03:00
Sina Atalay
050801b695 fix tests 2025-01-07 11:23:06 +03:00
Sina Atalay
cadcc399ad fix tests 2025-01-07 10:18:01 +03:00
Sina Atalay
4331110c55 Upgrade to v2 (#271)
* prepare the base for typst

* rename theme folders

* rename themes

* rename themes

* update testdata with new theme names

* rename themes

* fix docs issues

* fundamentals

* fundamental renames

* generalize `create_a_latex_file`

* generalize render_a_pdf_from_latex

* make latex optional dependency, and add typst as dependency

* first tests with typst

* finish `markdown_to_typst`

* fix `markdown_to_latex`

* finish `markdown_to_typst`

* first steps towards Typst RenderCV themes

* first draft of classic theme

* start working on new design options

* work on new design options

* make default theme: "classic"

* start integrating design options with templates

* rename typst variables

* start working on connections integration

* polish connections

* polish design options and themes

* fix spelling mistakes and improve typst themes

* use ms instead of s in printer

* improve templates

* fix typos

* use ms instead of s in printer

* improve typst templates

* improve

* improve

* improve

* improve

* make PyMuPDF optional

* rename last_updated_date_style to last_updated_date_template

* revert changelog

* progress

* improve

* exclude gifs from sdist

* update tests

* improve templates

* improve templater

* data: update `sample_content.yaml`

* improve

* remove latex support

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* remove testdata

* remove latex

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* rename `locale_catalog` to `locale`

* docs: update developer guide faq

* add new input, rendercv_settings.date

* add show_time_span_in

* create a new function, parse_validation_errors

* improve templates

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* improve

* update templates

* fix experience entry

* improve

* finish templates

* update tests

* update testdata

* remove time_machine

* update sample content

* improve

* add sb2nov theme

* update options

* update theme.options

* update theme.options

* update theme options

* create engineeringresumes templates

* add engineering resumes

* format

* update templates

* add new theme

* fix a typo in sample content

* update templating system

* update options

* add photo support

* update workflows

* improve templates

* improve parse_validation_errors

* create a new interface for web

* fix summary

* improve

* resolve typing issues

* update mkdocs.yaml

* update pyproject.toml

* update docs scripts

* update testdata

* update tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* rename column template fields

* update

* update test data

* add moderncv

* fix problems

* moderncv

* create moderncv

* fix tests

* update

* update

* update templates

* update

* use optional dependencies

* fix

* improve

* aa

* a

* update

* update

* update

* update

* rename

* update

* update

* update

* improve

* update

* update

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update

* update

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* format

* update changelog

* update examples

* update entry figures

* update schema

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-01-07 01:30:40 +03:00
Sina Atalay
bdb320f653 fix locale_catalog (#275) 2025-01-01 01:16:14 +03:00
Sina Atalay
16dc64ff68 Move last_updated_date_style and page_numbering_style fields to locale_catalog field (#270)
* Move last_updated_date_style and page_numbering_style fields to locale_catalog field (#148)

* update testdata

* fix an example

* update locale catalog validator

* set update_testdata to False

* update
2024-12-25 17:25:20 -05:00
Sina Atalay
ce6d0b3a23 data: add a new field rendercv_settings.bold_keywords (#144) 2024-12-25 06:01:16 -05:00
D'Alcamo Kael
733f4d2226 add support for profile photo (#193)
* feat: adding "photo" in CurriculumVitae model

* feat: loading "HeaderWithPhoto" template if photo is available

* template[sb2nov]: added HeaderWithPhoto.j2.tex template

* lint: linted files

* Revert "feat: loading "HeaderWithPhoto" template if photo is available"

This reverts commit 6a760519

* template[sb2nov]: merged Header.j2.tex and HeaderWithPhoto.j2.tex after revert 3253d2c1

* template[moderncv]: added photo in template

* fix,template[moderncv]: added check if photo is present

* template[markdown]: added photo support

* feat: adding support to relative path in templates
* relative paths are always relative to cwd

* fix: fixed optional photo in pydantic model

* feat,template[engineeringresumes]: implemented propic

* feat,template[engineeringresumes]: improved template

* feat,template[classic]: implemented template

* docs,template[sb2nov]: added comment

* fix,template: found a workaround for sourcesanspro and graphicx https://github.com/sinaatalay/rendercv/pull/193#issuecomment-2458194352

* fix: using context to manage in a clean way dynamic parameters passing to pydantic models

this is required because the "os.chdir" solution (https://github.com/sinaatalay/rendercv/pull/193#discussion_r1826306847) solved the path resolution for the image but bugged the path construction for paths in rendercv_settings (which should be relative to cwd and not to the path of the input file)

* tests: fixed some tests

* templates: formatted Header.j2.tex for classic, engineeringresumes, sb2nov templates

* tests: fixed test_create_a_latex_file and test_create_a_latex_file_and_copy_theme_files tests

* tests: fixed all tests and examples

* fix: fixed paths for Windows: path in latex should always be in unix style.

* tests: improved test code quality

* tests: fixed test_copy_theme_files_to_output_directory test

* Sina's updates

remove RenderCVContextModel

resolve typing and INPUT_FILE_PATH issue

update Preambles

update templates

rebase tests

fix issues

update headers

* resolve formatting issues

* set `update_testdata` to False

* don't use the profile picture in markdown

* set update_testdata to False

* fix photo issues

* fix moderncv

* fix INPUT_FILE_DIRECTORY

---------

Co-authored-by: kael-k <gh@kael-k.io>
Co-authored-by: Sina Atalay <dev@atalay.biz>
2024-12-24 20:52:33 -05:00
Sina Atalay
da4a6c84b8 tests: remove coverage import 2024-12-10 03:21:04 -05:00
Sina Atalay
e9edae3577 tests: fix watcher tests 2024-12-10 03:07:01 -05:00
Sina Atalay
d6fd21ed62 fix linting issues 2024-12-09 04:15:41 -05:00