Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ustc-proposal:0.0.1 #1710

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions packages/preview/ustc-proposal/0.0.1/.github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
"on":
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
workflow_dispatch:

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: typst-community/setup-typst@v3
- uses: actions/checkout@v4
with:
repository: chengda/popular-fonts
path: fonts/popular-fonts
- uses: actions/checkout@v4
with:
repository: StellarCN/scp_zh
path: fonts/scp_zh
- 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/typst/packages/preview/ustc-proposal
mv fonts ~/.local/share
ln -s "$PWD" ~/.local/share/typst/packages/preview/ustc-proposal/0.0.1
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: ./*.pdf
4 changes: 4 additions & 0 deletions packages/preview/ustc-proposal/0.0.1/.gitlint
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env -S gitlint -C
[ignore-by-title]
regex=.*
ignore=body-is-missing
78 changes: 78 additions & 0 deletions packages/preview/ustc-proposal/0.0.1/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: fix-byte-order-marker
- id: check-case-conflict
- id: check-shebang-scripts-are-executable
- id: check-merge-conflict
- id: trailing-whitespace
- id: mixed-line-ending
- id: end-of-file-fixer
- id: detect-private-key
- id: check-symlinks
- id: check-ast
- id: debug-statements
- id: requirements-txt-fixer
- id: check-xml
- id: check-yaml
- id: check-toml
- id: check-json
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: remove-crlf
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies:
- tomli
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
args:
- --msg-filename
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 3.2.0
hooks:
- id: editorconfig-checker
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: check-mailmap
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.22
hooks:
- id: mdformat
additional_dependencies:
- mdformat-pyproject
- mdformat-gfm
- mdformat-myst
- mdformat-toc
- mdformat-deflist
- mdformat-beautysh
- mdformat-ruff
- mdformat-config
- mdformat-web
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.17.2
hooks:
- id: markdownlint-cli2
additional_dependencies:
- markdown-it-texmath
- repo: https://github.com/NixOS/nixfmt
rev: e825e956ae967ee24aa502a90099956d1f8bc1ed
hooks:
- id: nixfmt
8 changes: 8 additions & 0 deletions packages/preview/ustc-proposal/0.0.1/.yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env -S yamllint -c
---
extends: default

rules:
comments:
# https://github.com/prettier/prettier/issues/6780
min-spaces-from-content: 1
Loading
Loading