Merge Main Into Dev (#767)

See #766
This commit is contained in:
Ben C 2024-01-02 11:56:01 -05:00 committed by GitHub
commit b4cddeda64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1162 additions and 1825 deletions

View File

@ -63,7 +63,7 @@ jobs:
path: .\NewHorizons\Schemas
- name: Verify Changed Schemas
uses: tj-actions/verify-changed-files@v12
uses: tj-actions/verify-changed-files@v17
id: changed_files
with:
files: NewHorizons/Schemas/**

View File

@ -12,18 +12,18 @@
"format": "prettier --write ."
},
"dependencies": {
"@astrojs/starlight": "^0.14.0",
"astro": "3.6.4",
"@astrojs/starlight": "^0.15.1",
"astro": "4.0.8",
"rehype-external-links": "^3.0.0",
"sharp": "^0.33.0"
"sharp": "^0.33.1"
},
"devDependencies": {
"@apidevtools/json-schema-ref-parser": "^11.1.0",
"eslint": "^8.54.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "^5.1.2",
"fast-xml-parser": "^4.3.2",
"prettier": "^3.1.0",
"prettier-plugin-astro": "^0.12.2",
"prettier": "^3.1.1",
"prettier-plugin-astro": "^0.12.3",
"xml-js": "^1.6.11"
}
}

2964
docs/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,8 @@ const refSlug = SchemaTools.getRefSlug(schema);
const enumVals = SchemaTools.getEnumValues(schema);
const props = SchemaTools.getProps(schema, level);
const descSplit = description?.toString().split("\n");
const HeadingTag = levelMap[level] ?? "h6";
---
@ -60,7 +62,7 @@ const HeadingTag = levelMap[level] ?? "h6";
</div>
)
}
{description ? <p>{description}</p> : <p>No Description Found</p>}
<p>{descSplit?.map(l => <>{l}<br></>) ?? <>No Description Found</>}</p>
{
enumVals.length !== 0 && (
<>

View File

@ -2,7 +2,8 @@
import type { JSONSchema } from "@apidevtools/json-schema-ref-parser/dist/lib/types";
import type { MarkdownHeading } from "astro";
import { readFileSync } from "fs";
import { Element, xml2js } from "xml-js";
import { xml2js } from "xml-js";
import type { Element } from "xml-js";
export type InternalSchema = { type: "JSON"; val: JSONSchema } | { type: "XML"; val: Element };