363 Commits

Author SHA1 Message Date
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
Sina Atalay
a1150b095f cli: fix path issues (#240) 2024-12-09 03:17:35 -05:00
Sina Atalay
7291349eaa generalize the individual YAML files and improve tests 2024-12-09 01:45:49 -05:00
pre-commit-ci[bot]
0ff58cefcf [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-12-09 01:45:49 -05:00
Sina Atalay
d28864aad5 merge conftest.py 2024-12-09 01:45:49 -05:00
Dan Sabath
6ea7c0ac72 add tests for seperation of CV data from design and rendercv settings 2024-12-09 01:45:49 -05:00
Dan Sabath
6ce18666fc add tests for seperation of CV data from design and rendercv settings 2024-12-09 01:45:49 -05:00
Dan Sabath
994f60bca4 add tests for seperation of CV data from design and rendercv settings 2024-12-09 01:45:49 -05:00
Dan Sabath
6e6abce018 main-test-update: baseline test data 2024-12-09 01:45:49 -05:00
Sina Atalay
063941e93e tests: revert Windows fix 2024-12-08 20:01:11 -05:00
Sina Atalay
109370c2a4 tests: fix Windows 2024-12-08 19:52:43 -05:00
Sina Atalay
8cb4850d35 tests: fix coverage issues 2024-12-08 19:43:19 -05:00
Sina Atalay
d8947049fa fix linting issues 2024-12-08 15:46:24 -05:00
Sina Atalay
350c959eda tests: increase coverage 2024-12-08 15:45:20 -05:00
anschmieg
31d1fab882 add support for LaTeX math expressions in HTML (#200)
* add mathjax via CDN to HTML template

* adjust tests for added script tag

* Replace Mathjax with KaTeX

* Add math expression tests

put back in place from branch main (?)

* Revert "Add math expression tests"

This reverts commit 5d7e98f621cfb184dcc316763cb342d34f630ca8.

* minor fixes

* tests: update `testdata`

---------

Co-authored-by: schmiega <6830368+schmiega@users.noreply.github.com>
Co-authored-by: Sina Atalay <dev@atalay.biz>
2024-12-08 15:23:37 -05:00
Sina Atalay
686c8e1a15 refactor and clean the code 2024-12-08 15:07:38 -05:00
Sina Atalay
d93bc5fb12 simplify --watch option 2024-12-08 05:24:32 -05:00
Criyl
f3f8704eff chore: missed a spot 2024-12-08 05:24:32 -05:00
Criyl
c071740df5 chore: linting, formatting, and typing 2024-12-08 05:24:32 -05:00
Criyl
4b4bc25c03 chore: better describe utilities 2024-12-08 05:24:32 -05:00
Criyl
f16f79afaa chore: address linting,typing, and documentation concerns 2024-12-08 05:24:32 -05:00
Criyl
f33979a882 chore: rename utility for triggering write events in tests 2024-12-08 05:24:32 -05:00
Criyl
f772b181ed chore: use sys instead of os for platform identification, fix flaky test, add command argument test 2024-12-08 05:24:32 -05:00
Criyl
d87680c84d chore: add tests for watcher, address naming issues with watcher file 2024-12-08 05:24:32 -05:00
Sina Atalay
9c2e5caac5 fix minor issues and add more tests 2024-11-17 18:35:28 -05:00
Shawn Zivontsis
c9e453d8d0 Improve placeholder tests to check more fields 2024-11-17 18:18:37 -05:00
Sina Atalay
4992fc881e renderer: allow LaTeX commands 2024-11-03 01:43:04 -04:00
Sina Atalay
3322172a27 docs: don't use python formatting for inline strings 2024-11-03 01:35:37 -04:00
Sina Atalay
45cdab4024 fix special latex character escaper 2024-11-01 20:35:50 -04:00
Sina Atalay
97226a525d make math equations inline 2024-11-01 20:13:25 -04:00
Sina Atalay
d7322ad919 tests: update testdata 2024-11-01 19:58:33 -04:00