fix: bad AstroMarkdocConfig type
This commit is contained in:
parent
e9866bab23
commit
b46b0ec64c
1 changed files with 2 additions and 3 deletions
|
@ -2,8 +2,7 @@ import type { AstroConfig } from 'astro';
|
||||||
import type { Plugin } from 'vite';
|
import type { Plugin } from 'vite';
|
||||||
import type { PluginContext } from 'rollup';
|
import type { PluginContext } from 'rollup';
|
||||||
import { loadMarkdocConfig } from './load-config.js';
|
import { loadMarkdocConfig } from './load-config.js';
|
||||||
import type { AstroMarkdocConfig } from './config.js';
|
import type { Schema, Config as MarkdocConfig } from '@markdoc/markdoc';
|
||||||
import type { Schema } from '@markdoc/markdoc';
|
|
||||||
import type { Render } from './config.js';
|
import type { Render } from './config.js';
|
||||||
import { setupConfig } from './runtime.js';
|
import { setupConfig } from './runtime.js';
|
||||||
|
|
||||||
|
@ -58,7 +57,7 @@ export function vitePluginMarkdocConfig({ astroConfig }: { astroConfig: AstroCon
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function getRenderUrlMap(tagsOrNodes: Record<string, Schema<AstroMarkdocConfig, Render>>) {
|
function getRenderUrlMap(tagsOrNodes: Record<string, Schema<MarkdocConfig, Render>>) {
|
||||||
const renderPathnameMap: Record<string, string> = {};
|
const renderPathnameMap: Record<string, string> = {};
|
||||||
for (const [name, value] of Object.entries(tagsOrNodes)) {
|
for (const [name, value] of Object.entries(tagsOrNodes)) {
|
||||||
if (value.render instanceof URL) {
|
if (value.render instanceof URL) {
|
||||||
|
|
Loading…
Reference in a new issue