Compare commits

..
4 changed files with 3 additions and 10 deletions

View file

@ -11,7 +11,7 @@ jobs:
build-and-test: build-and-test:
strategy: strategy:
matrix: matrix:
os: [docker] os: [ubuntu-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

View file

@ -33,11 +33,7 @@ jobs:
repository: GameCult/GameCult-Quartz repository: GameCult/GameCult-Quartz
path: 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 - name: Configure Pages
if: github.server_url == 'https://github.com'
uses: actions/configure-pages@v5 uses: actions/configure-pages@v5
- name: Setup Node - name: Setup Node
@ -60,13 +56,11 @@ jobs:
--outputDir "${{ inputs.output-dir }}" --outputDir "${{ inputs.output-dir }}"
- name: Upload Pages artifact - name: Upload Pages artifact
if: github.server_url == 'https://github.com'
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3
with: with:
path: ${{ inputs.output-dir }} path: ${{ inputs.output-dir }}
deploy: deploy:
if: github.server_url == 'https://github.com'
environment: environment:
name: github-pages name: github-pages
url: ${{ steps.deployment.outputs.page_url }} url: ${{ steps.deployment.outputs.page_url }}

View file

@ -98,7 +98,7 @@ async function generateSocialImage(
imageBase64, imageBase64,
}) })
const svg = await satori(imageComponent as unknown as Parameters<typeof satori>[0], { const svg = await satori(imageComponent, {
width, width,
height, height,
fonts, fonts,

View file

@ -12,8 +12,7 @@ import { Options as TypstOptions } from "@myriaddreamin/rehype-typst"
interface Options { interface Options {
renderEngine: "katex" | "mathjax" | "typst" renderEngine: "katex" | "mathjax" | "typst"
customMacros: MacroType customMacros: MacroType
// `output` defaults to "html"; "htmlAndMathml" adds MathML for screen readers (KaTeX hides it visually). katexOptions: Omit<KatexOptions, "macros" | "output">
katexOptions: Omit<KatexOptions, "macros">
mathJaxOptions: Omit<MathjaxOptions, "macros"> mathJaxOptions: Omit<MathjaxOptions, "macros">
typstOptions: TypstOptions typstOptions: TypstOptions
} }