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

chore: fix CI and checks #329

Merged
merged 2 commits into from
Oct 13, 2024
Merged
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
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: PR Checks
name: CI

on:
pull_request:
branches: [main]

push:
branches: [main]

env:
NODE_VERSION: 20

Expand Down
4 changes: 2 additions & 2 deletions src/routes/[...dir]/[file=asciidoc]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import type { PageData } from './$types';
// @ts-expect-error - katex auto-render is not typed
import autoRender from 'katex/dist/contrib/auto-render.mjs';
import tocbot from 'tocbot';
import { init as tocInit } from 'tocbot';

export let data: PageData;

Expand All @@ -21,7 +21,7 @@
throwOnError: false
});
// build the table of contents by finding all the headings
tocbot.init({
tocInit({
tocSelector: '#toc',
contentSelector: '#markdown',
headingSelector: 'h2, h3, h4',
Expand Down
4 changes: 2 additions & 2 deletions src/routes/[...dir]/[file=markdown]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { onMount } from 'svelte';
import type { PageData } from './$types';
import tocbot from 'tocbot';
import { init as tocInit } from 'tocbot';
// @ts-expect-error - katex auto-render is not typed
import autoRender from 'katex/dist/contrib/auto-render.mjs';
import { formatDate } from '$lib/date';
Expand All @@ -28,7 +28,7 @@
});

// build the table of contents by finding all the headings
tocbot.init({
tocInit({
tocSelector: '#toc',
contentSelector: '#markdown',
headingSelector: 'h2, h3, h4',
Expand Down