Skip to content

Commit

Permalink
🏗️ Move template code to template/
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Feb 11, 2025
1 parent 01fe973 commit f99c1e5
Show file tree
Hide file tree
Showing 19 changed files with 1,234 additions and 128 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: typst-community/setup-typst@v3
- uses: actions/checkout@v4
with:
repository: chengda/popular-fonts
Expand All @@ -24,15 +25,24 @@ jobs:
with:
repository: StellarCN/scp_zh
path: fonts/scp_zh
- uses: typst-community/setup-typst@v3
- uses: actions/checkout@v4
with:
repository: siaimes/pytorch
path: fonts/pytorch
- uses: actions/checkout@v4
with:
repository: Kangzhengwei/androidFront
path: fonts/androidFront
- run: |
sudo apt-get -y update
sudo apt-get -y install fonts-font-awesome
mkdir -p ~/.local/share
mv fonts ~/.local/share
typst compile main.typ
typst compile template/main.typ
- uses: actions/upload-artifact@v4
with:
path: ./*.pdf
- uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
files: main.pdf
files: template/main.pdf
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
hooks:
- id: remove-crlf
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies:
Expand All @@ -37,7 +37,7 @@ repos:
args:
- --msg-filename
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 3.1.2
rev: 3.2.0
hooks:
- id: editorconfig-checker
- repo: https://github.com/jumanjihouse/pre-commit-hooks
Expand All @@ -53,7 +53,7 @@ repos:
hooks:
- id: yamllint
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.21
rev: 0.7.22
hooks:
- id: mdformat
additional_dependencies:
Expand All @@ -73,6 +73,6 @@ repos:
additional_dependencies:
- markdown-it-texmath
- repo: https://github.com/NixOS/nixfmt
rev: 8d4bd690c247004d90d8554f0b746b1231fe2436
rev: e825e956ae967ee24aa502a90099956d1f8bc1ed
hooks:
- id: nixfmt
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# USTC proposal template
# USTC proposal

[![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)
[![github/workflow](https://github.com/ustc-ivclab/ustc-proposal/actions/workflows/main.yml/badge.svg)](https://github.com/ustc-ivclab/ustc-proposal/actions)
Expand Down Expand Up @@ -27,13 +27,33 @@
[![github/repo-size](https://shields.io/github/repo-size/ustc-ivclab/ustc-proposal)](https://github.com/ustc-ivclab/ustc-proposal)
[![github/v](https://shields.io/github/v/release/ustc-ivclab/ustc-proposal)](https://github.com/ustc-ivclab/ustc-proposal)

![screenshot](template/images/main-1.png)

## Dependencies

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

## Build

Download all fonts, then

```sh
typst compile main.typ
```

Or use Nix:

```sh
nix run '.#build'
```

## Related Projects

### USTC proposal template

- [docx](https://cicpi.ustc.edu.cn/indico/conferenceDisplay.py?confId=971)
- [LaTeX](https://github.com/cgdsss/thesis_proposal_ustc)
167 changes: 167 additions & 0 deletions flake.lock

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

Loading

0 comments on commit f99c1e5

Please sign in to comment.