[ci] format
This commit is contained in:
parent
e2019be6ff
commit
163a9a9d0e
4 changed files with 45 additions and 46 deletions
|
@ -42,45 +42,44 @@ declare module 'astro:content' {
|
||||||
};
|
};
|
||||||
|
|
||||||
const entryMap: {
|
const entryMap: {
|
||||||
"blog": {
|
blog: {
|
||||||
"first-post.md": {
|
'first-post.md': {
|
||||||
id: "first-post.md",
|
id: 'first-post.md';
|
||||||
slug: "first-post",
|
slug: 'first-post';
|
||||||
body: string,
|
body: string;
|
||||||
collection: "blog",
|
collection: 'blog';
|
||||||
data: InferEntrySchema<"blog">
|
data: InferEntrySchema<'blog'>;
|
||||||
},
|
};
|
||||||
"markdown-style-guide.md": {
|
'markdown-style-guide.md': {
|
||||||
id: "markdown-style-guide.md",
|
id: 'markdown-style-guide.md';
|
||||||
slug: "markdown-style-guide",
|
slug: 'markdown-style-guide';
|
||||||
body: string,
|
body: string;
|
||||||
collection: "blog",
|
collection: 'blog';
|
||||||
data: InferEntrySchema<"blog">
|
data: InferEntrySchema<'blog'>;
|
||||||
},
|
};
|
||||||
"second-post.md": {
|
'second-post.md': {
|
||||||
id: "second-post.md",
|
id: 'second-post.md';
|
||||||
slug: "second-post",
|
slug: 'second-post';
|
||||||
body: string,
|
body: string;
|
||||||
collection: "blog",
|
collection: 'blog';
|
||||||
data: InferEntrySchema<"blog">
|
data: InferEntrySchema<'blog'>;
|
||||||
},
|
};
|
||||||
"third-post.md": {
|
'third-post.md': {
|
||||||
id: "third-post.md",
|
id: 'third-post.md';
|
||||||
slug: "third-post",
|
slug: 'third-post';
|
||||||
body: string,
|
body: string;
|
||||||
collection: "blog",
|
collection: 'blog';
|
||||||
data: InferEntrySchema<"blog">
|
data: InferEntrySchema<'blog'>;
|
||||||
},
|
};
|
||||||
"using-mdx.mdx": {
|
'using-mdx.mdx': {
|
||||||
id: "using-mdx.mdx",
|
id: 'using-mdx.mdx';
|
||||||
slug: "using-mdx",
|
slug: 'using-mdx';
|
||||||
body: string,
|
body: string;
|
||||||
collection: "blog",
|
collection: 'blog';
|
||||||
data: InferEntrySchema<"blog">
|
data: InferEntrySchema<'blog'>;
|
||||||
},
|
};
|
||||||
},
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
type ContentConfig = typeof import("./config");
|
type ContentConfig = typeof import('./config');
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { renderMarkdown } from '@astrojs/markdown-remark';
|
import { renderMarkdown } from '@astrojs/markdown-remark';
|
||||||
import {
|
import {
|
||||||
safelyGetAstroData,
|
|
||||||
InvalidAstroDataError,
|
InvalidAstroDataError,
|
||||||
|
safelyGetAstroData,
|
||||||
} from '@astrojs/markdown-remark/dist/internal.js';
|
} from '@astrojs/markdown-remark/dist/internal.js';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import matter from 'gray-matter';
|
import matter from 'gray-matter';
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
import { rehypeHeadingIds } from '@astrojs/markdown-remark';
|
import { rehypeHeadingIds } from '@astrojs/markdown-remark';
|
||||||
|
import {
|
||||||
|
InvalidAstroDataError,
|
||||||
|
safelyGetAstroData,
|
||||||
|
} from '@astrojs/markdown-remark/dist/internal.js';
|
||||||
import { nodeTypes } from '@mdx-js/mdx';
|
import { nodeTypes } from '@mdx-js/mdx';
|
||||||
import type { PluggableList } from '@mdx-js/mdx/lib/core.js';
|
import type { PluggableList } from '@mdx-js/mdx/lib/core.js';
|
||||||
import type { Options as MdxRollupPluginOptions } from '@mdx-js/rollup';
|
import type { Options as MdxRollupPluginOptions } from '@mdx-js/rollup';
|
||||||
import type { AstroConfig } from 'astro';
|
import type { AstroConfig } from 'astro';
|
||||||
import {
|
|
||||||
safelyGetAstroData,
|
|
||||||
InvalidAstroDataError,
|
|
||||||
} from '@astrojs/markdown-remark/dist/internal.js';
|
|
||||||
import type { Literal, MemberExpression } from 'estree';
|
import type { Literal, MemberExpression } from 'estree';
|
||||||
import { visit as estreeVisit } from 'estree-util-visit';
|
import { visit as estreeVisit } from 'estree-util-visit';
|
||||||
import { bold, yellow } from 'kleur/colors';
|
import { bold, yellow } from 'kleur/colors';
|
||||||
|
@ -16,7 +16,7 @@ import rehypeRaw from 'rehype-raw';
|
||||||
import remarkGfm from 'remark-gfm';
|
import remarkGfm from 'remark-gfm';
|
||||||
import remarkSmartypants from 'remark-smartypants';
|
import remarkSmartypants from 'remark-smartypants';
|
||||||
import { visit } from 'unist-util-visit';
|
import { visit } from 'unist-util-visit';
|
||||||
import type { Data, VFile } from 'vfile';
|
import type { VFile } from 'vfile';
|
||||||
import { MdxOptions } from './index.js';
|
import { MdxOptions } from './index.js';
|
||||||
import { rehypeInjectHeadingsExport } from './rehype-collect-headings.js';
|
import { rehypeInjectHeadingsExport } from './rehype-collect-headings.js';
|
||||||
import rehypeMetaString from './rehype-meta-string.js';
|
import rehypeMetaString from './rehype-meta-string.js';
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import type { MarkdownRenderingOptions, MarkdownRenderingResult, MarkdownVFile } from './types';
|
import type { MarkdownRenderingOptions, MarkdownRenderingResult, MarkdownVFile } from './types';
|
||||||
|
|
||||||
|
import { toRemarkInitializeAstroData } from './frontmatter-injection.js';
|
||||||
import { loadPlugins } from './load-plugins.js';
|
import { loadPlugins } from './load-plugins.js';
|
||||||
import { rehypeHeadingIds } from './rehype-collect-headings.js';
|
import { rehypeHeadingIds } from './rehype-collect-headings.js';
|
||||||
import rehypeEscape from './rehype-escape.js';
|
import rehypeEscape from './rehype-escape.js';
|
||||||
|
@ -8,7 +9,6 @@ import rehypeIslands from './rehype-islands.js';
|
||||||
import rehypeJsx from './rehype-jsx.js';
|
import rehypeJsx from './rehype-jsx.js';
|
||||||
import toRemarkContentRelImageError from './remark-content-rel-image-error.js';
|
import toRemarkContentRelImageError from './remark-content-rel-image-error.js';
|
||||||
import remarkEscape from './remark-escape.js';
|
import remarkEscape from './remark-escape.js';
|
||||||
import { toRemarkInitializeAstroData } from './frontmatter-injection.js';
|
|
||||||
import remarkMarkAndUnravel from './remark-mark-and-unravel.js';
|
import remarkMarkAndUnravel from './remark-mark-and-unravel.js';
|
||||||
import remarkMdxish from './remark-mdxish.js';
|
import remarkMdxish from './remark-mdxish.js';
|
||||||
import remarkPrism from './remark-prism.js';
|
import remarkPrism from './remark-prism.js';
|
||||||
|
|
Loading…
Reference in a new issue