Skip to content

Commit a0a11f1

Browse files
committed
ustc-proposal:0.0.1
1 parent 3bd12de commit a0a11f1

File tree

19 files changed

+2102
-0
lines changed

19 files changed

+2102
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
"on":
3+
push:
4+
paths-ignore:
5+
- "**.md"
6+
pull_request:
7+
paths-ignore:
8+
- "**.md"
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
deploy:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: typst-community/setup-typst@v3
20+
- uses: actions/checkout@v4
21+
with:
22+
repository: chengda/popular-fonts
23+
path: fonts/popular-fonts
24+
- uses: actions/checkout@v4
25+
with:
26+
repository: StellarCN/scp_zh
27+
path: fonts/scp_zh
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
36+
- run: |
37+
sudo apt-get -y update
38+
sudo apt-get -y install fonts-font-awesome
39+
mkdir -p ~/.local/share/typst/packages/preview/ustc-proposal
40+
mv fonts ~/.local/share
41+
ln -s "$PWD" ~/.local/share/typst/packages/preview/ustc-proposal/0.0.1
42+
typst compile template/main.typ
43+
- uses: actions/upload-artifact@v4
44+
with:
45+
path: ./*.pdf
46+
- uses: softprops/action-gh-release@v2
47+
if: github.ref_type == 'tag'
48+
with:
49+
files: ./*.pdf
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env -S gitlint -C
2+
[ignore-by-title]
3+
regex=.*
4+
ignore=body-is-missing
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
---
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v5.0.0
5+
hooks:
6+
- id: check-added-large-files
7+
- id: fix-byte-order-marker
8+
- id: check-case-conflict
9+
- id: check-shebang-scripts-are-executable
10+
- id: check-merge-conflict
11+
- id: trailing-whitespace
12+
- id: mixed-line-ending
13+
- id: end-of-file-fixer
14+
- id: detect-private-key
15+
- id: check-symlinks
16+
- id: check-ast
17+
- id: debug-statements
18+
- id: requirements-txt-fixer
19+
- id: check-xml
20+
- id: check-yaml
21+
- id: check-toml
22+
- id: check-json
23+
- repo: https://github.com/Lucas-C/pre-commit-hooks
24+
rev: v1.5.5
25+
hooks:
26+
- id: remove-crlf
27+
- repo: https://github.com/codespell-project/codespell
28+
rev: v2.4.1
29+
hooks:
30+
- id: codespell
31+
additional_dependencies:
32+
- tomli
33+
- repo: https://github.com/jorisroovers/gitlint
34+
rev: v0.19.1
35+
hooks:
36+
- id: gitlint
37+
args:
38+
- --msg-filename
39+
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
40+
rev: 3.2.0
41+
hooks:
42+
- id: editorconfig-checker
43+
- repo: https://github.com/jumanjihouse/pre-commit-hooks
44+
rev: 3.0.0
45+
hooks:
46+
- id: check-mailmap
47+
- repo: https://github.com/rhysd/actionlint
48+
rev: v1.7.7
49+
hooks:
50+
- id: actionlint
51+
- repo: https://github.com/adrienverge/yamllint
52+
rev: v1.35.1
53+
hooks:
54+
- id: yamllint
55+
- repo: https://github.com/executablebooks/mdformat
56+
rev: 0.7.22
57+
hooks:
58+
- id: mdformat
59+
additional_dependencies:
60+
- mdformat-pyproject
61+
- mdformat-gfm
62+
- mdformat-myst
63+
- mdformat-toc
64+
- mdformat-deflist
65+
- mdformat-beautysh
66+
- mdformat-ruff
67+
- mdformat-config
68+
- mdformat-web
69+
- repo: https://github.com/DavidAnson/markdownlint-cli2
70+
rev: v0.17.2
71+
hooks:
72+
- id: markdownlint-cli2
73+
additional_dependencies:
74+
- markdown-it-texmath
75+
- repo: https://github.com/NixOS/nixfmt
76+
rev: e825e956ae967ee24aa502a90099956d1f8bc1ed
77+
hooks:
78+
- id: nixfmt
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env -S yamllint -c
2+
---
3+
extends: default
4+
5+
rules:
6+
comments:
7+
# https://github.com/prettier/prettier/issues/6780
8+
min-spaces-from-content: 1

0 commit comments

Comments
 (0)