Skip to content

Commit 1ddf5b5

Browse files
committed
🏗️ Move template code to template/
1 parent 01fe973 commit 1ddf5b5

File tree

19 files changed

+1238
-128
lines changed

19 files changed

+1238
-128
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v4
19+
- uses: typst-community/setup-typst@v3
1920
- uses: actions/checkout@v4
2021
with:
2122
repository: chengda/popular-fonts
@@ -24,15 +25,24 @@ jobs:
2425
with:
2526
repository: StellarCN/scp_zh
2627
path: fonts/scp_zh
27-
- uses: typst-community/setup-typst@v3
28+
- uses: actions/checkout@v4
29+
with:
30+
repository: siaimes/pytorch
31+
path: fonts/pytorch
32+
- uses: actions/checkout@v4
33+
with:
34+
repository: Kangzhengwei/androidFront
35+
path: fonts/androidFront
2836
- run: |
37+
sudo apt-get -y update
38+
sudo apt-get -y install fonts-font-awesome
2939
mkdir -p ~/.local/share
3040
mv fonts ~/.local/share
31-
typst compile main.typ
41+
typst compile template/main.typ
3242
- uses: actions/upload-artifact@v4
3343
with:
3444
path: ./*.pdf
3545
- uses: softprops/action-gh-release@v2
3646
if: github.ref_type == 'tag'
3747
with:
38-
files: main.pdf
48+
files: template/main.pdf

.pre-commit-config.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
hooks:
2626
- id: remove-crlf
2727
- repo: https://github.com/codespell-project/codespell
28-
rev: v2.3.0
28+
rev: v2.4.1
2929
hooks:
3030
- id: codespell
3131
additional_dependencies:
@@ -37,7 +37,7 @@ repos:
3737
args:
3838
- --msg-filename
3939
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
40-
rev: 3.1.2
40+
rev: 3.2.0
4141
hooks:
4242
- id: editorconfig-checker
4343
- repo: https://github.com/jumanjihouse/pre-commit-hooks
@@ -53,7 +53,7 @@ repos:
5353
hooks:
5454
- id: yamllint
5555
- repo: https://github.com/executablebooks/mdformat
56-
rev: 0.7.21
56+
rev: 0.7.22
5757
hooks:
5858
- id: mdformat
5959
additional_dependencies:
@@ -72,7 +72,11 @@ repos:
7272
- id: markdownlint-cli2
7373
additional_dependencies:
7474
- markdown-it-texmath
75+
- repo: https://github.com/Enter-tainer/typstyle
76+
rev: v0.12.14
77+
hooks:
78+
- id: typstyle
7579
- repo: https://github.com/NixOS/nixfmt
76-
rev: 8d4bd690c247004d90d8554f0b746b1231fe2436
80+
rev: e825e956ae967ee24aa502a90099956d1f8bc1ed
7781
hooks:
7882
- id: nixfmt

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# USTC proposal template
1+
# USTC proposal
22

33
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/ustc-ivclab/ustc-proposal/main.svg)](https://results.pre-commit.ci/latest/github/ustc-ivclab/ustc-proposal/main)
44
[![github/workflow](https://github.com/ustc-ivclab/ustc-proposal/actions/workflows/main.yml/badge.svg)](https://github.com/ustc-ivclab/ustc-proposal/actions)
@@ -27,13 +27,33 @@
2727
[![github/repo-size](https://shields.io/github/repo-size/ustc-ivclab/ustc-proposal)](https://github.com/ustc-ivclab/ustc-proposal)
2828
[![github/v](https://shields.io/github/v/release/ustc-ivclab/ustc-proposal)](https://github.com/ustc-ivclab/ustc-proposal)
2929

30+
![screenshot](template/images/main-1.png)
31+
3032
## Dependencies
3133

3234
- [华文字体](https://github.com/chengda/popular-fonts)
3335
- [中易字体](https://github.com/StellarCN/scp_zh/tree/master/fonts)
36+
- [方正字体](https://github.com/Kangzhengwei/androidFront)
37+
- [Times New Roman](https://github.com/siaimes/pytorch/tree/main/fonts)
38+
- [font-awesome](https://github.com/FortAwesome/Font-Awesome)
3439

3540
## Build
3641

42+
Download all fonts, then
43+
3744
```sh
3845
typst compile main.typ
3946
```
47+
48+
Or use Nix:
49+
50+
```sh
51+
nix run '.#build'
52+
```
53+
54+
## Related Projects
55+
56+
### USTC proposal template
57+
58+
- [docx](https://cicpi.ustc.edu.cn/indico/conferenceDisplay.py?confId=971)
59+
- [LaTeX](https://github.com/cgdsss/thesis_proposal_ustc)

flake.lock

Lines changed: 167 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)