78 Commits

Author SHA1 Message Date
Sina Atalay
361df43c57 Improve markdown_to_typst 2025-02-08 18:42:43 -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
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
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
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
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
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
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
7291349eaa generalize the individual YAML files and improve tests 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
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
d7322ad919 tests: update testdata 2024-11-01 19:58:33 -04:00
Sina Atalay
815bfad0b4 tests: update theme_auxiliary_file.cls 2024-11-01 19:48:58 -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
b0c7d77e2c escape LaTeX characters in section titles #191 2024-11-01 19:02:13 -04:00
Sina Atalay
80bcfd1ca3 tests: refactor 2024-07-23 18:12:53 +03:00
Sina Atalay
9700450a2d tests: update testdata 2024-07-19 17:24:19 +03:00
Sina Atalay
7d0cebdad9 format and sort imports 2024-07-16 16:26:06 +03:00
Sina Atalay
c011ad3388 cli: fix data model overriding in rendercv render command 2024-07-16 15:38:46 +03:00
Sina Atalay
400bf683f6 renderer: refactor 2024-07-16 13:36:31 +03:00
Sina Atalay
1434368fdb tests: update tests for new section titles 2024-07-13 19:35:58 +03:00
Sina Atalay
b75139210f tests: update for the new package structure 2024-07-05 15:01:02 +03:00
Sina Atalay
4fc622dd4d sort imports 2024-06-24 16:08:07 +03:00
Sina Atalay
2cc17b38c9 data_models: remove Twitter (#109) 2024-06-19 14:52:52 +03:00
Sina Atalay
2d4917167b themes: add the pdfcreator tag 2024-06-19 14:37:53 +03:00
Sina Atalay
06d426bd3b tests: update testdata 2024-06-10 20:53:13 +03:00
Sina Atalay
1738f58421 tests: update testdata 2024-06-06 17:32:56 +03:00
Sina Atalay
2c2bfff140 tests: update 2024-06-05 01:14:08 +03:00
Sina Atalay
6def22e618 markdown: fix templates 2024-06-01 17:13:42 +03:00
Sina Atalay
39e1f3ccec tests: update testdata 2024-05-31 20:05:23 +03:00
Sina Atalay
477bfa84d2 tests: update testdata 2024-05-31 19:56:38 +03:00
Sina Atalay
ef733e1c33 tests: test Google Scholar 2024-05-29 16:05:51 +03:00
Sina Atalay
e60821898d tests: update testdata 2024-05-25 16:02:15 +03:00
Sina Atalay
57113f4d8f tests: update testdata 2024-05-20 22:11:02 +03:00
Sina Atalay
339509ea9f tests: update testdata 2024-05-19 17:43:10 +03:00
Sina Atalay
6c63248091 tests: update testdata 2024-05-19 15:52:18 +03:00
Sina Atalay
ad77b410ea tests: update testdata 2024-05-19 01:02:23 +03:00
Sina Atalay
446db517fa tests: update testdata 2024-05-19 00:59:07 +03:00
Sina Atalay
78dbb389f5 tests: update testdata 2024-05-19 00:50:04 +03:00
Sina Atalay
13df394e03 Merge branch 'main' of https://github.com/sinaatalay/rendercv 2024-05-17 16:07:08 +03:00
Sina Atalay
103b5f997d tests: update testdata 2024-05-17 16:04:38 +03:00