Skip to content

Commit

Permalink
Rename example
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw committed Nov 30, 2024
1 parent b61eb3a commit f6edb38
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659
- name: Use local package
run: |
sed -i 's/#import .*/#import "..\/lib.typ": */' template/example.typ
sed -i 's/#import .*/#import "..\/lib.typ": */' template/cv.typ
- name: compile
run: pixi run compile
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
path: template/example.pdf
path: template/cv.pdf
if-no-files-found: error
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ You can download fontawesome [here](https://fontawesome.com/download).
## Examples

![Jane Doe's CV](assets/example.png)
![Jane Doe's CV](assets/thumbnail.png)

## Building and Testing Locally

To build and test the template locally, you can run `pixi run watch` in the root of this repository.
Please ensure to use the version of moderner-cv that is in this repository instead of the one on the typst universe by temporarily changing the import in [`example.typ`](./template/example.typ) to `#import "../lib.typ": *`.
Please ensure to use the version of moderner-cv that is in this repository instead of the one on the typst universe by temporarily changing the import in [`cv.typ`](./template/cv.typ) to `#import "../lib.typ": *`.
File renamed without changes
4 changes: 2 additions & 2 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ channels = ["conda-forge"]
platforms = ["osx-arm64", "linux-64", "win-64"]

[tasks]
watch = "typst watch template/example.typ --root ."
compile = "typst compile template/example.typ --root ."
watch = "typst watch template/cv.typ --root ."
compile = "typst compile template/cv.typ --root ."
pre-commit-run = "pre-commit run -a"

[dependencies]
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions typst.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ repository = "https://github.com/pavelzw/moderner-cv"

[template]
path = "template"
entrypoint = "example.typ"
thumbnail = "assets/example.png"
entrypoint = "cv.typ"
thumbnail = "assets/thumbnail.png"

0 comments on commit f6edb38

Please sign in to comment.