Skip to content

Commit 6b684c4

Browse files
committed
feat(contents): rewrite with YAAC
1 parent 7d3c6b2 commit 6b684c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+770
-1828
lines changed

.github/workflows/general.yaml

+15-6
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,23 @@ jobs:
3535
uses: ChiefGokhlayeh/textidote-action@v4
3636
id: textidote-main
3737
with:
38-
root_file: resume.tex
39-
args: |
40-
--check en
41-
--dict dict.txt
42-
--ignore sh:d:001,sh:d:002,sh:nonp,sh:nobreak,lt:en:PUNCTUATION_PARAGRAPH_END,lt:en:PUNCTUATION_PARAGRAPH_END,lt:en:UPPERCASE_SENTENCE_START,lt:en:UPPERCASE_SENTENCE_START,lt:en:COMMA_PARENTHESIS_WHITESPACE
38+
working_directory: .
39+
root_file: src/resume.tex
40+
report_type: plain
41+
report_file: ""
42+
- name: Run textidote to generate report
43+
uses: ChiefGokhlayeh/textidote-action@v4
44+
with:
45+
working_directory: .
46+
root_file: src/resume.tex
47+
report_type: html
48+
report_file: report.html
4349
- name: Upload textidote report
4450
uses: actions/upload-artifact@v2
4551
with:
4652
name: textidote_report
4753
path: report.html
54+
if-no-files-found: error
4855
- name: Assert num_warnings == 0
4956
if: ${{ steps.textidote-main.outputs.num_warnings != 0 }}
5057
run: 'echo "num_warnings: ${{ steps.textidote-main.outputs.num_warnings }}"; exit 1;'
@@ -58,13 +65,15 @@ jobs:
5865
- name: Compile latex documents
5966
uses: xu-cheng/latex-action@v2
6067
with:
68+
working_directory: src
6169
root_file: resume.tex
62-
latexmk_use_xelatex: true
70+
args: "-lualatex -interaction=nonstopmode -output-directory=../"
6371
- name: Upload resume.pdf
6472
uses: actions/upload-artifact@v2
6573
with:
6674
name: resume
6775
path: resume.pdf
76+
if-no-files-found: error
6877

6978
release:
7079
name: release

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*.out
99
*.toc
1010
*.synctex.gz
11+
*.fdb_latexmk
1112

1213
## Intermediate documents:
1314
*.dvi

Makefile

+47-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,49 @@
1-
CC = xelatex
1+
export SHELL:=/bin/bash
2+
export SHELLOPTS:=$(if $(SHELLOPTS),$(SHELLOPTS):)pipefail:errexit
23

3-
resume: resume.tex
4-
$(CC) $<
5-
test: resume.tex
6-
textidote $<
4+
.ONESHELL:
5+
6+
.PHONY: main
7+
main:
8+
function tearDown {
9+
$(MAKE) remove
10+
}
11+
trap tearDown EXIT
12+
$(MAKE) build
13+
14+
.PHONY: test
15+
test:
16+
function tearDown {
17+
$(MAKE) remove
18+
}
19+
trap tearDown EXIT
20+
$(MAKE) -k testAll
21+
22+
.PHONY: build
23+
build:
24+
docker run \
25+
--name latex \
26+
-v $$PWD/src:/opt/resume/src:ro \
27+
ghcr.io/xu-cheng/texlive-full:latest \
28+
latexmk -cd -lualatex -interaction=nonstopmode -output-directory=/tmp /opt/resume/src/resume.tex
29+
docker cp latex:/tmp/resume.pdf .
30+
31+
.PHONY: remove
32+
remove:
33+
docker rm -f textidote 2> /dev/null || true
34+
docker rm -f latex 2> /dev/null || true
35+
36+
.PHONY: clean
737
clean:
8-
rm *.pdf *.log *.out *.aux
38+
rm -f resume.pdf
39+
40+
.PHONY: testAll
41+
testAll: testTextidote
42+
43+
.PHONY: testTextidote
44+
testTextidote:
45+
docker run \
46+
--name textidote \
47+
-v $$PWD:/textidote \
48+
gokhlayeh/textidote:latest \
49+
/textidote/src/resume.tex /textidote plain "" 0

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
[![TeXtidote](https://img.shields.io/badge/style-TeXtidote-yellowgreen?style=for-the-badge)](https://github.com/sylvainhalle/textidote)
77
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge)](https://github.com/semantic-release/semantic-release)
88

9-
My resume written in LaTeX based on [Awesome-CV](https://github.com/posquit0/Awesome-CV) with complete CI/CD pipline. Fully automated testing, building & release process is powered by GitHub Actions & [semantic-release](https://github.com/semantic-release/semantic-release). The output pdf can be found in the [releases section](https://github.com/kirintwn/resume/releases/latest), or the preview is available [here](https://docs.google.com/viewer?url=https://github.com/kirintwn/resume/releases/latest/download/resume.pdf) with Google Docs.
9+
My resume written in LaTeX based on [yaac-another-awesome-cv](https://github.com/darwiin/yaac-another-awesome-cv) with complete CI/CD pipline. Fully automated testing, building & release process is powered by GitHub Actions & [semantic-release](https://github.com/semantic-release/semantic-release). The output pdf can be found in the [releases section](https://github.com/kirintwn/resume/releases/latest), or the preview is available [here](https://docs.google.com/viewer?url=https://github.com/kirintwn/resume/releases/latest/download/resume.pdf) with Google Docs.
1010

1111
## Download: [resume.pdf](https://github.com/kirintwn/resume/releases/latest/download/resume.pdf)
1212

1313
## Credits
1414

1515
The list of some third party components used in this project, with due credits to their authors and license terms. More details can be found in their README documentations.
1616

17-
- [posquit0/Awesome-CV](https://github.com/posquit0/Awesome-CV)
17+
- [darwiin/yaac-another-awesome-cv](https://github.com/darwiin/yaac-another-awesome-cv)
1818
- [xu-cheng/latex-action](https://github.com/xu-cheng/latex-action)
1919
- [ChiefGokhlayeh/textidote-action](https://github.com/ChiefGokhlayeh/textidote-action)

0 commit comments

Comments
 (0)