Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f6bed01377 | |||
| 3ec9f4b424 | |||
| 02bc0e0419 | |||
| 8bf428c6ef | |||
| cd84b8101f | |||
|
|
cb8f9701c3 | ||
| 5903a8ffcf |
4 changed files with 10 additions and 3 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
|
@ -11,7 +11,7 @@ jobs:
|
|||
build-and-test:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
os: [docker]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
|
|||
6
.github/workflows/quartz-pages.yml
vendored
6
.github/workflows/quartz-pages.yml
vendored
|
|
@ -33,7 +33,11 @@ jobs:
|
|||
repository: GameCult/GameCult-Quartz
|
||||
path: GameCult-Quartz
|
||||
|
||||
# Pages actions exist only on GitHub: the forge runner resolves actions
|
||||
# from data.forgejo.org, which has no actions/configure-pages, so the job
|
||||
# failed there. Build always; touch Pages only on the GitHub mirror.
|
||||
- name: Configure Pages
|
||||
if: github.server_url == 'https://github.com'
|
||||
uses: actions/configure-pages@v5
|
||||
|
||||
- name: Setup Node
|
||||
|
|
@ -56,11 +60,13 @@ jobs:
|
|||
--outputDir "${{ inputs.output-dir }}"
|
||||
|
||||
- name: Upload Pages artifact
|
||||
if: github.server_url == 'https://github.com'
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: ${{ inputs.output-dir }}
|
||||
|
||||
deploy:
|
||||
if: github.server_url == 'https://github.com'
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ async function generateSocialImage(
|
|||
imageBase64,
|
||||
})
|
||||
|
||||
const svg = await satori(imageComponent, {
|
||||
const svg = await satori(imageComponent as unknown as Parameters<typeof satori>[0], {
|
||||
width,
|
||||
height,
|
||||
fonts,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ import { Options as TypstOptions } from "@myriaddreamin/rehype-typst"
|
|||
interface Options {
|
||||
renderEngine: "katex" | "mathjax" | "typst"
|
||||
customMacros: MacroType
|
||||
katexOptions: Omit<KatexOptions, "macros" | "output">
|
||||
// `output` defaults to "html"; "htmlAndMathml" adds MathML for screen readers (KaTeX hides it visually).
|
||||
katexOptions: Omit<KatexOptions, "macros">
|
||||
mathJaxOptions: Omit<MathjaxOptions, "macros">
|
||||
typstOptions: TypstOptions
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue