Skip to content

Commit

Permalink
v0.0.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuyanagimoto committed May 4, 2024
1 parent 83da569 commit e83f6a0
Show file tree
Hide file tree
Showing 10 changed files with 2,158 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: typstcv
Type: Package
Title: CV for Quarto & Typst
Version: 0.0.0.9004
Version: 0.0.1
Authors@R:
person(given = "Kazuharu",
family = "Yanagimoto",
Expand Down
12 changes: 12 additions & 0 deletions R/typstcv.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@
#' )
#'
#' resume_entry(educ)
#'
#' # With details
#' award <- data.frame(
#' title = c("Nobel Prize in Physics"),
#' location = c("Stockholm, Sweden"),
#' date = c("1921"),
#' description = c("For his services to"),
#' detail1 = c("Theoretical Physics"),
#' detail2 = c("Discovery of the law of the photoelectric effect")
#' )
#'
#' resume_entry(award, details = c("detail1", "detail2"))
#'
resume_entry <- function(data,
title = "title",
Expand Down
35 changes: 31 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ quarto use template kazuyanagimoto/quarto-awesomecv-typst

### YAML

![](vignettes/img/awesomecv_header.svg)

Set author information in YAML.

``` yaml
Expand Down Expand Up @@ -93,35 +95,60 @@ format:
`resume_entry()` is a helper function to create resume entryies from a
data frame.

``` r
educ
#> title location date description
#> 1 Ph.D. in Physics Zürich, Switzerland 1905 University of Zürich
#> 2 Master of Science Zürich, Switzerland 1896 - 1900 ETH
```

``` r
educ |>
resume_entry(
title = "title",
location = "location",
date = "year",
description = "detail"
date = "date",
description = "description"
)
```

![](vignettes/img/awesomecv_educ.svg)

You can add bullet points by `details` argument.

``` r
resume_entry(award, details = c("detail1", "detail2"))
# resume_entry(award, details = grep("^detail", names(award)))
```

![](vignettes/img/awesomecv_award.svg)

### Date Formatter

`date_formatter()` is a helper function to format dates in the resume.

``` r
work
#> title location start end
#> 1 Technical Assistant Bern, Switzerland 1902-01-01 1908-01-01
#> 2 Junior Professor Bern, Switzerland 1908-01-01 1909-01-01
#> 3 Associate Professor Zürich, Switzerland 1909-01-01 1911-01-01
#> description
#> 1 Federal Patent Office
#> 2 University of Bern
#> 3 University of Zürich
```

``` r
work |>
format_date(
start = "date_start",
end = "date_end",
start = "start",
end = "end",
date_format = "%Y",
sep = "->",
sort_by = "start"
) |>
resume_entry()
```

![](vignettes/img/awesomecv_work.svg)
31 changes: 26 additions & 5 deletions README.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ You can find a simple [example](https://kazuyanagimoto.com/typstcv/vignettes/awe
[qmd](https://github.com/kazuyanagimoto/typstcv/blob/main/vignettes/awesomecv/awesomecv.qmd)
code.

```{r}
#| include: false
library(typstcv)
```

### Use Template

You can use the template with `quarto` command.
Expand All @@ -52,6 +57,8 @@ quarto use template kazuyanagimoto/quarto-awesomecv-typst

### YAML

![](vignettes/img/awesomecv_header.svg)

Set author information in YAML.

```yaml
Expand Down Expand Up @@ -91,35 +98,49 @@ format:

`resume_entry()` is a helper function to create resume entryies from a data frame.

```{r}
educ
```

```r
educ |>
resume_entry(
title = "title",
location = "location",
date = "year",
description = "detail"
date = "date",
description = "description"
)
```

![](vignettes/img/awesomecv_educ.svg)

You can add bullet points by `details` argument.

```r
resume_entry(award, details = c("detail1", "detail2"))
# resume_entry(award, details = grep("^detail", names(award)))
```

![](vignettes/img/awesomecv_award.svg)

### Date Formatter

`date_formatter()` is a helper function to format dates in the resume.

```{r}
work
```

```r
work |>
format_date(
start = "date_start",
end = "date_end",
start = "start",
end = "end",
date_format = "%Y",
sep = "->",
sort_by = "start"
) |>
resume_entry()
```
```

![](vignettes/img/awesomecv_work.svg)
12 changes: 12 additions & 0 deletions man/resume_entry.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vignettes/gallery.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ listing:
author: Kazuharu Yanagimoto
image: img/cv_yanagimoto.svg
path: https://kazuyanagimoto.com/cv/cv.pdf
description: CSV Data + GitHub Actions
links:
- name: Code
url: https://github.com/kazuyanagimoto/cv
Expand Down
Loading

0 comments on commit e83f6a0

Please sign in to comment.