Commit Graph

1688 Commits

Author SHA1 Message Date
Sina Atalay
6e0629c1ab Improve publish-a-release.yaml workflow v2.2 2025-02-08 18:45:51 -05:00
Sina Atalay
3c66fdc881 Bump version to 2.2 2025-02-08 18:43:10 -05:00
Sina Atalay
3bf458042e Fix make_given_keywords_bold_in_sections 2025-02-08 18:42:43 -05:00
Saurabh Misra
39297f9957 Speed up function replace_placeholders by 10% (#338)
**Summary of Optimizations:**

1. **Redundant Calls**: Captured `get_date_input()` in the variable `date_input` to reduce redundant calls.
2. **Reuse Computations**: Calculated `name_snake_case` and `name_kebab_case` once and reused them instead of recalculating multiple times.
3. **Better Loop**: Used a tuple of tuples for `placeholders`, iterating through once and applying replacements in sequence.

These changes improve the efficiency of the `replace_placeholders` function by reducing redundant calculations and I/O operations, resulting in better runtime performance.

Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
2025-02-08 18:42:43 -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
5c69b04c83 Allow custom fonts (#69) 2025-02-08 18:08:34 -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
de24974c65 Don't use rendercv_fonts in themes.options 2025-02-04 18:53:34 -05:00
Sina Atalay
a5fc005012 Return YAML location of the error with parse_validation_errors 2025-02-03 00:04:28 -05:00
pre-commit-ci[bot]
f1c6820488 [pre-commit.ci] pre-commit autoupdate (#333)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.4 → v0.9.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.4...v0.9.3)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-02-02 23:03:23 -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
4cf62666e2 Fix Python 3.10 tests 2025-02-02 22:44:50 -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
b12fc2e759 Add design.section_titles.font_family, design.header.name_font_family, and design.header.connections_font_family options 2025-02-01 18:26:12 -05:00
Sina Atalay
5aafa205ee docs: Answer an FAQ in the developer guide 2025-02-01 17:09:04 -05:00
Sina Atalay
a6f8b888e1 Add profiling command 2025-01-28 15:43:25 -05:00
Sina Atalay
f441b5742a Handle None entries 2025-01-26 16:24:30 -05:00
Sina Atalay
89390d1af3 Improve partial installation errors 2025-01-26 15:56:51 -05:00
Sina Atalay
7c71ae62ed docs: update the style of the example YAML files 2025-01-26 01:07:42 -05:00
Sina Atalay
00c13adde2 docs: adjust width of example YAMLs 2025-01-26 00:59:47 -05:00
Sina Atalay
63bfa0dd07 tests: skip test_if_the_schema_is_the_latest v2.1 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
bdc7009b2c fix schema issues 2025-01-25 19:13:06 -05:00
Sina Atalay
95758557cb bump version 2025-01-25 19:09:35 -05:00
Sina Atalay
04e623d077 docs: update "Structure of the YAML Input File" 2025-01-25 18:59:07 -05:00
Matthew Heguy
0317e613da Link docker and pypi releases (#321)
* Tie docker release to pypi release

* minor updates

---------

Co-authored-by: Sina Atalay <dev@atalay.biz>
2025-01-25 18:31:54 -05:00
Sina Atalay
35b77d2884 tests: update test_render_command_with_invalid_arguments 2025-01-25 18:06:27 -05:00
Sina Atalay
52f6f4788b cli: improve wrong CLI input errors (#324) 2025-01-25 18:04:15 -05:00
Sina Atalay
f6eb8b48c2 tests: update api test 2025-01-25 18:00:39 -05:00
Sina Atalay
f3c85480c1 update rendercv.api.create_contents_of_a_typst_file 2025-01-25 17:58:52 -05:00
Sina Atalay
d347bc88e5 Handle render crash when the output PDF file is opened in Windows (#327) 2025-01-25 17:54:59 -05:00
Sina Atalay
3f31496af3 Fix partial installation errors (#326)
* make dependencies more flexible

* Fix partial installation errors
2025-01-25 17:11:54 -05:00
Sina Atalay
0439f14d77 disable ruff-format in pre-commit 2025-01-20 09:55:54 -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
dependabot[bot]
6fe49b82fd build(deps): bump pydantic-extra-types from 2.10.1 to 2.10.2 (#316)
Bumps [pydantic-extra-types](https://github.com/pydantic/pydantic-extra-types) from 2.10.1 to 2.10.2.
- [Release notes](https://github.com/pydantic/pydantic-extra-types/releases)
- [Changelog](https://github.com/pydantic/pydantic-extra-types/blob/main/HISTORY.md)
- [Commits](https://github.com/pydantic/pydantic-extra-types/compare/v2.10.1...v2.10.2)

---
updated-dependencies:
- dependency-name: pydantic-extra-types
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-19 23:51:30 -05:00
dependabot[bot]
67e3546348 build(deps): bump phonenumbers from 8.13.52 to 8.13.53 (#315)
Bumps [phonenumbers](https://github.com/daviddrysdale/python-phonenumbers) from 8.13.52 to 8.13.53.
- [Commits](https://github.com/daviddrysdale/python-phonenumbers/compare/v8.13.52...v8.13.53)

---
updated-dependencies:
- dependency-name: phonenumbers
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-19 23:51:22 -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
dependabot[bot]
3ae30ba30d build(deps): bump pydantic from 2.9.2 to 2.10.5 (#305)
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.9.2 to 2.10.5.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](https://github.com/pydantic/pydantic/compare/v2.9.2...v2.10.5)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-19 19:42:15 -05:00
dependabot[bot]
5bf28882d5 build(deps): bump jinja2 from 3.1.3 to 3.1.5 (#306)
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.3 to 3.1.5.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.3...3.1.5)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-19 19:42:04 -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