md2cv 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.ja.md +5 -1
- package/README.md +6 -2
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +25 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/generator/index.d.ts.map +1 -1
- package/dist/generator/index.js +17 -4
- package/dist/generator/index.js.map +1 -1
- package/dist/generator/resume_en.d.ts +1 -0
- package/dist/generator/resume_en.d.ts.map +1 -1
- package/dist/generator/resume_en.js +68 -41
- package/dist/generator/resume_en.js.map +1 -1
- package/dist/generator/resume_ja.d.ts +1 -0
- package/dist/generator/resume_ja.d.ts.map +1 -1
- package/dist/generator/resume_ja.js +62 -37
- package/dist/generator/resume_ja.js.map +1 -1
- package/dist/generator/rirekisho/index.d.ts.map +1 -1
- package/dist/generator/rirekisho/index.js +6 -2
- package/dist/generator/rirekisho/index.js.map +1 -1
- package/dist/generator/rirekisho/styles.d.ts.map +1 -1
- package/dist/generator/rirekisho/styles.js +40 -23
- package/dist/generator/rirekisho/styles.js.map +1 -1
- package/dist/generator/rirekisho/types.d.ts +2 -0
- package/dist/generator/rirekisho/types.d.ts.map +1 -1
- package/dist/generator/rirekisho/types.js.map +1 -1
- package/dist/types/config.d.ts +3 -0
- package/dist/types/config.d.ts.map +1 -1
- package/examples/README.md +74 -0
- package/package.json +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Examples
|
|
2
|
+
|
|
3
|
+
This directory contains sample files for md2cv.
|
|
4
|
+
|
|
5
|
+
## Sample Files
|
|
6
|
+
|
|
7
|
+
- `example-cv-en.md` - English CV sample
|
|
8
|
+
- `example-cv-ja.md` - Japanese CV sample
|
|
9
|
+
- `sample-photo.png` - Sample photo for rirekisho
|
|
10
|
+
|
|
11
|
+
## Build Commands
|
|
12
|
+
|
|
13
|
+
### English CV (HTML)
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
node dist/bin.js -i examples/example-cv-en.md -o examples/output-en -f cv -t html -p a4
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### English CV (PDF)
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
node dist/bin.js -i examples/example-cv-en.md -o examples/output-en -f cv -t pdf -p a4
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Japanese CV (HTML)
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
node dist/bin.js -i examples/example-cv-ja.md -o examples/output-ja -f cv -t html -p a4
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Japanese CV (PDF)
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
node dist/bin.js -i examples/example-cv-ja.md -o examples/output-ja -f cv -t pdf -p a4
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Rirekisho (HTML)
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
node dist/bin.js -i examples/example-cv-ja.md -o examples/output-rirekisho -f rirekisho -t html -p a3
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Rirekisho (PDF with photo)
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
node dist/bin.js -i examples/example-cv-ja.md -o examples/output-rirekisho -f rirekisho -t pdf --photo examples/sample-photo.png -p a3
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Generate both CV and Rirekisho
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
node dist/bin.js -i examples/example-cv-ja.md -o examples/output-both -f both -t both -p a3
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Apply custom stylesheet
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
node dist/bin.js -i examples/example-cv-en.md -o examples/output-styled -f cv -t html --stylesheet path/to/custom.css -p a4
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Options
|
|
62
|
+
|
|
63
|
+
| Option | Description |
|
|
64
|
+
|--------|-------------|
|
|
65
|
+
| `-i, --input` | Input Markdown file |
|
|
66
|
+
| `-o, --output` | Output file path (without extension) |
|
|
67
|
+
| `-f, --format` | Output format: `cv`, `rirekisho`, `both` |
|
|
68
|
+
| `-t, --output-type` | Output type: `html`, `pdf`, `both` |
|
|
69
|
+
| `-p, --paper-size` | Paper size: `a3`, `a4`, `b4`, `b5`, `letter` |
|
|
70
|
+
| `--order` | Chronological order: `asc` (oldest first), `desc` (newest first) |
|
|
71
|
+
| `--photo` | Photo file for rirekisho |
|
|
72
|
+
| `--stylesheet` | Custom CSS file |
|
|
73
|
+
| `--section-order` | Section display order (comma-separated) |
|
|
74
|
+
| `--hide-motivation` | Hide motivation section in rirekisho |
|
package/package.json
CHANGED