Commit Graph

300 Commits

Author SHA1 Message Date
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
Sina Atalay
c3433209d4 tests: revert update_testdata to False 2024-11-01 19:52:55 -04:00
Sina Atalay
815bfad0b4 tests: update theme_auxiliary_file.cls 2024-11-01 19:48:58 -04:00
Sina Atalay
6ff5b32c28 fix ruff issue 2024-11-01 19:48:38 -04:00
Sina Atalay
a77e3460a5 fix "Cant render with some DOIs" #184 2024-11-01 19:41:34 -04:00
Sina Atalay
5dc31e8024 add Telegram as a social network (#187) 2024-11-01 19:25:53 -04:00
Sina Atalay
b6200d8621 fix characters are not escaped in LaTeX, leading to render errors #129 2024-11-01 19:14:38 -04:00
Sina Atalay
b0c7d77e2c escape LaTeX characters in section titles #191 2024-11-01 19:02:13 -04:00
Sina Atalay
d25d54dc62 tests: remove label from CurriculumVitae 2024-11-01 18:53:16 -04:00
Sina Atalay
9c4a6f958c remove return types from docstrings 2024-11-01 18:30:51 -04:00
Sina Atalay
e0eac8ca58 remove types from the docstrings 2024-11-01 18:26:30 -04:00
Sina Atalay
073f9921b3 tests: fix a lint error 2024-09-29 18:11:14 -04:00
Sina Atalay
e4c5dd14a0 tests: refactor and update config 2024-09-29 18:07:37 -04:00
Sina Atalay
f8a8809ff0 tests: test rendercv_settings 2024-09-07 18:47:02 -04:00