Skip to content

Commit 392a837

Browse files
committed
Fix FAQ with new mdsvex version
1 parent dc44c9a commit 392a837

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@sveltejs/kit": "^2.7.2",
1616
"@sveltejs/vite-plugin-svelte": "^3.1.2",
1717
"@types/semver": "^7.5.8",
18-
"mdsvex": "^0.12.3",
18+
"mdsvex": "^0.12.6",
1919
"postcss": "^8.4.47",
2020
"postcss-import": "^15.1.0",
2121
"semver": "^7.6.3",

src/routes/faq/getting-log/+page.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
layout: faq
3+
---
4+
15
The Minecraft launcher keeps logs of game events as they happen which can be useful for debugging errors or other issues
26
that may occur within the game.
37

src/routes/faq/old-versions/+page.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
layout: faq
3+
---
4+
15
## Meteor and older versions of Minecraft
26

37
Meteor is always kept up to date with the latest stable release of Minecraft, this means we do not support the use of

svelte.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import { sveltePreprocess } from "svelte-preprocess";
33
import atImport from "postcss-import";
44
import { mdsvex } from "mdsvex";
55
import { markdown } from "./src/lib/markdown.js";
6+
import { join, dirname } from "path";
7+
import { fileURLToPath } from "url";
8+
9+
const __filename = fileURLToPath(import.meta.url);
10+
const __dirname = dirname(__filename);
611

712
/** @type {import("@sveltejs/kit").Config} */
813
const config = {
@@ -23,7 +28,7 @@ const config = {
2328
mdsvex({
2429
extensions: [ ".md" ],
2530
layout: {
26-
faq: "src/layouts/faq.svelte"
31+
faq: join(__dirname, "./src/layouts/faq.svelte")
2732
},
2833
remarkPlugins: [markdown]
2934
})

0 commit comments

Comments
 (0)