Fix docs build

This commit is contained in:
Ben C 2024-10-26 12:02:27 -04:00
parent 0622d2aa87
commit 14c0231a34
No known key found for this signature in database
3 changed files with 8 additions and 6 deletions

View File

@ -11,9 +11,9 @@ an image you'll need to clear the cache located in the `SlideReelsCache` folder
## My planet is flying away at light speed and also I have anglerfish
Be sure to disable `hasFluidDetector` (previous had to enable `invulnerableToSun`). The anglerfish have fluid volumes in their mouths for killing you
Be sure to disable `hasFluidDetector` (previous had to enable `invulnerableToSun`). The anglerfish have fluid volumes in their mouths for killing you
which interact poorly with the fluid detector and can mess up the movement of the planet.
## My Nomai text isn't updating
Either clear the .nhcache files or enable Debug mode to always regenerate the text cache.
Either clear the .nhcache files or enable Debug mode to always regenerate the text cache.

View File

@ -1,8 +1,8 @@
---
title: Celestial Body Schema
description: Describes a celestial body to generate
title: "Celestial Body Schema"
description: "Describes a celestial body to generate"
editUrl: false
schemaFile: body_schema.json
schemaFile: "body_schema.json"
---
import Schema from "/src/components/Schemas/Schema.astro";

View File

@ -5,7 +5,9 @@ const addFrontmatter = (
content: string,
frontmatter: Record<string, boolean | string | object>
) => {
const entries = Object.entries(frontmatter).map(([key, value]) => `${key}: ${value}`);
const entries = Object.entries(frontmatter).map(
([key, value]) => `${key}: ${JSON.stringify(value)}`
);
if (entries.length === 0) {
return content;