jointrashposs/types/content.ts

52 lines
1.4 KiB
TypeScript
Raw Normal View History

// Misskey Docs Frontmatter Types
import type { ParsedContent, MarkdownParsedContent, MarkdownRoot } from '@nuxt/content/dist/runtime/types';
/**
* Docs Frontmatter
*
* `/content/<lang>/docs/`
*/
interface MiDocsParsedContentMd extends MarkdownParsedContent {
_TYPE_: undefined;
/** もくじの見出しをさかのぼる限度 */
maxTocDepth?: number;
/** 前へ・次へボタンの階層考慮を無視 */
ignoreDirBasedNav?: boolean;
};
/**
*
*/
interface MiDocsParsedContentSteppedGuide extends ParsedContent {
_TYPE_: 'STEPPED_GUIDE';
guides: {
_AUTOSELECT_TYPE_?: 'OS_ANDROID' | 'OS_IOS';
_LAYOUT_TYPE_?: 'IMAGE_PORTRAIT_FIXED';
title: string;
description?: string | MarkdownRoot;
steps: {
title: string;
description: string | MarkdownRoot;
image?: string;
}[];
}[];
};
export type MiDocsParsedContent = MiDocsParsedContentMd | MiDocsParsedContentSteppedGuide;
/**
* Blog Frontmatter
*
* `/content/blog/`
*/
export interface MiBlogParsedContent extends MarkdownParsedContent {
/** サムネイル画像のURL・絶対パス */
thumbnail?: string;
}
/**
* Docs API
*/