Skip to content

Commit 923d216

Browse files
committed
chore: update configs
1 parent 1dec054 commit 923d216

File tree

16 files changed

+315
-295
lines changed

16 files changed

+315
-295
lines changed

Justfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ default:
99
# generate manual
1010
doc:
1111
typst compile docs/manual.typ docs/manual.pdf
12-
typst compile docs/thumbnail.typ thumbnail-light.svg
13-
typst compile --input theme=dark docs/thumbnail.typ thumbnail-dark.svg
12+
typst compile docs/thumbnail.typ thumbnail.png
1413

1514
# run test suite
1615
test *args:

README.md

Lines changed: 1 addition & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1 @@
1-
# The `my-package` Package
2-
<div align="center">Version 0.1.0</div>
3-
4-
A short description about the project and/or client.
5-
6-
## Template adaptation checklist
7-
8-
- [ ] Fill out `README.md`
9-
- Change the `my-package` package name, including code snippets
10-
- Check section contents and/or delete sections that don't apply
11-
- [ ] Check and/or replace `LICENSE` by something that suits your needs
12-
- [ ] Fill out `typst.toml`
13-
- See also the [typst/packages README](https://github.com/typst/packages/?tab=readme-ov-file#package-format)
14-
- [ ] Adapt Repository URLs in `CHANGELOG.md`
15-
- Consider only committing that file with your first release, or removing the "Initial Release" part in the beginning
16-
- [ ] Adapt or deactivate the release workflow in `.github/workflows/release.yml`
17-
- to deactivate it, delete that file or remove/comment out lines 2-4 (`on:` and following)
18-
- to use the workflow
19-
- [ ] check the values under `env:`, particularly `REGISTRY_REPO`
20-
- [ ] if you don't have one, [create a fine-grained personal access token](https://github.com/settings/tokens?type=beta) with [only Contents permission](https://stackoverflow.com/a/75116350/371191) for the `REGISTRY_REPO`
21-
- [ ] on this repo, create a secret `REGISTRY_TOKEN` (at `https://github.com/[user]/[repo]/settings/secrets/actions`) that contains the so created token
22-
23-
if configured correctly, whenever you create a tag `v...`, your package will be pushed onto a branch on the `REGISTRY_REPO`, from which you can then create a pull request against [typst/packages](https://github.com/typst/packages/)
24-
- [ ] remove/replace the example test case
25-
- [ ] (add your actual code, docs and tests)
26-
- [ ] remove this section from the README
27-
28-
## Getting Started
29-
30-
These instructions will get you a copy of the project up and running on the typst web app. Perhaps a short code example on importing the package and a very simple teaser usage.
31-
32-
```typ
33-
#import "@preview/my-package:0.1.0": *
34-
35-
#show: my-show-rule.with()
36-
#my-func()
37-
```
38-
39-
<picture>
40-
<source media="(prefers-color-scheme: dark)" srcset="./thumbnail-dark.svg">
41-
<img src="./thumbnail-light.svg">
42-
</picture>
43-
44-
### Installation
45-
46-
A step by step guide that will tell you how to get the development environment up and running. This should explain how to clone the repo and where to (maybe a link to the typst documentation on it), along with any pre-requisite software and installation steps.
47-
48-
```
49-
$ First step
50-
$ Another step
51-
$ Final step
52-
```
53-
54-
## Usage
55-
56-
A more in-depth description of usage. Any template arguments? A complicated example that showcases most if not all of the functions the package provides? This is also an excellent place to signpost the manual.
57-
58-
```typ
59-
#import "@preview/my-package:0.1.0": *
60-
61-
#let my-complicated-example = ...
62-
```
63-
64-
## Additional Documentation and Acknowledgments
65-
66-
* Project folder on server:
67-
* Confluence link:
68-
* Asana board:
69-
* etc...
1+
# Jsume (JSON Resume) Typst Template

docs/jsume-en.json

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
{
2+
"$schema": "https://unpkg.com/@jsume/schemas/dist/draft-2020-12.json",
3+
"basics": {
4+
"name": "John Doe",
5+
"label": "Software Engineer",
6+
"image": "https://example.com/profile.jpg",
7+
"email": "john@example.com",
8+
"phone": "(912) 555-4321",
9+
"url": "https://johndoe.com",
10+
"summary": "I am John Doe, a software engineer with 5 years of experience in web development...",
11+
"location": {
12+
"city": "New York",
13+
"country": "United States"
14+
},
15+
"profiles": [
16+
{
17+
"network": "X/Twitter",
18+
"username": "john",
19+
"url": "https://x.com/john"
20+
}
21+
]
22+
},
23+
"work": [
24+
{
25+
"company": "The Company",
26+
"location": "Remote",
27+
"position": "Software Engineer",
28+
"website": "https://company.com",
29+
"startDate": {
30+
"year": 2023,
31+
"month": 1
32+
},
33+
"endDate": false,
34+
"summary": "Here is the summary of my work...",
35+
"highlights": [
36+
"Highlight 1",
37+
"Highlight 2"
38+
]
39+
}
40+
],
41+
"projects": [
42+
{
43+
"name": "Project",
44+
"website": "https://project.com",
45+
"githubUrl": "https://github.com/johndoe/reponame",
46+
"startDate": {
47+
"year": 2023,
48+
"month": 1
49+
},
50+
"endDate": false,
51+
"summary": "Here is the summary of my project...",
52+
"highlights": [
53+
"Highlight 1",
54+
"Highlight 2"
55+
]
56+
}
57+
],
58+
"publications": [
59+
{
60+
"name": "The World Wide Web",
61+
"releaseDate": {
62+
"year": 2023,
63+
"month": 1
64+
},
65+
"publisher": "IEEE, Computer Magazine",
66+
"summary": "Discussion of the World Wide Web, HTTP, HTML.",
67+
"url": "https://www.computer.org.example.com/csdl/mags/co/1996/10/rx069-abs.html"
68+
}
69+
],
70+
"education": [
71+
{
72+
"institution": "University of Example",
73+
"location": "Online",
74+
"major": "Computer Science",
75+
"degree": "Bachelor of Science",
76+
"gpa": 3.8,
77+
"startDate": {
78+
"year": 2023,
79+
"month": 1
80+
},
81+
"endDate": {
82+
"year": 2023,
83+
"month": 1
84+
},
85+
"activities": [
86+
"Activity 1",
87+
"Activity 2"
88+
],
89+
"courses": [
90+
"Course 1",
91+
"Course 2"
92+
]
93+
}
94+
],
95+
"certificates": [
96+
{
97+
"name": "Certified Kubernetes Administrator",
98+
"issueDate": {
99+
"year": 2023,
100+
"month": 1
101+
},
102+
"expDate": false,
103+
"issuer": "CNCF",
104+
"url": "https://www.youracclaim.com/badges/xxxx"
105+
}
106+
],
107+
"awards": [
108+
{
109+
"title": "Employee of the month",
110+
"date": {
111+
"year": 2023,
112+
"month": 1,
113+
"day": 1
114+
},
115+
"awarder": "Tech Company Inc.",
116+
"summary": "Awarded for outstanding performance and dedication to the team.",
117+
"description": "I play a key role in the team and help the team achieve its goals..."
118+
}
119+
],
120+
"skills": [
121+
{
122+
"name": "Frontend",
123+
"keywords": [
124+
"JavaScript",
125+
"React",
126+
"Vue"
127+
]
128+
}
129+
],
130+
"languages": [
131+
{
132+
"language": "English",
133+
"fluency": "Fluent"
134+
},
135+
{
136+
"language": "Chinese",
137+
"fluency": "Native"
138+
}
139+
]
140+
}

docs/manual.pdf

2.26 KB
Binary file not shown.

docs/thumbnail.typ

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
#import "/src/lib.typ" as my-package: *
1+
#import "/src/lib.typ": jsume
22

3-
#set page(height: auto, margin: 5mm, fill: none)
3+
// #set page(height: auto, margin: 5mm, fill: none)
44

55
// style thumbnail for light and dark theme
66
#let theme = sys.inputs.at("theme", default: "light")
77
#set text(white) if theme == "dark"
88

9-
#set text(22pt)
10-
#align(center)[_a thumbnail showing the package's output_]
9+
// #set text(22pt)
10+
// #align(center)[_a thumbnail showing the package's output_]
11+
12+
#show: jsume.with(
13+
jsume-data: json("jsume-en.json"),
14+
)

src/components/sections.typ

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#import "@preview/nerd-icons:0.2.0": nf-icon
2-
#import "./share.typ": *
3-
#import "./layouts.typ": *
4-
#import "../locales.typ": *
5-
#import "../utils.typ": *
2+
#import "./share.typ": box-text
3+
#import "./layouts.typ": generic_2x2
4+
#import "../locales.typ": i18n
5+
#import "../utils.typ": date-to-str, location-to-str
66

77
#let contact_item(value, link-type: "", prefix: "") = {
88
if value != "" {

src/jsume.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "@preview/zh-format:0.1.0": *
1+
#import "@preview/zh-format:0.1.0": zh-format
22
#import "@preview/nerd-icons:0.2.0": change-nerd-font
33
#import "./components/sections.typ": *
44

@@ -8,7 +8,7 @@
88
bottom-margin: 0.3in,
99
left-margin: 0.3in,
1010
right-margin: 0.3in,
11-
font: "New Computer Modern",
11+
font: "Libertinus Serif",
1212
nerd-font: "Symbols Nerd Font",
1313
font-size: 11pt,
1414
lang: "en",

0 commit comments

Comments
 (0)