Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev authored and astrobot-houston committed Jun 27, 2023
1 parent fb7af55 commit 647079d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
4 changes: 2 additions & 2 deletions packages/integrations/markdoc/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { isRelativePath } from '@astrojs/internal-helpers/path';
import type {
Config,
ConfigType as MarkdocConfig,
MaybePromise,
NodeType,
Schema,
} from '@markdoc/markdoc';
import type { AstroInstance } from 'astro';
import _Markdoc from '@markdoc/markdoc';
import type { AstroInstance } from 'astro';
import { heading } from './heading-ids.js';
import { isRelativePath } from '@astrojs/internal-helpers/path';
import { componentConfigSymbol } from './utils.js';

export type Render = ComponentConfig | AstroInstance['default'] | string;
Expand Down
8 changes: 4 additions & 4 deletions packages/integrations/markdoc/src/content-entry-type.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/* eslint-disable no-console */
import type { Config as MarkdocConfig, Node } from '@markdoc/markdoc';
import type { ErrorPayload as ViteErrorPayload } from 'vite';
import matter from 'gray-matter';
import Markdoc from '@markdoc/markdoc';
import type { AstroConfig, ContentEntryType } from 'astro';
import matter from 'gray-matter';
import fs from 'node:fs';
import { fileURLToPath } from 'node:url';
import { isValidUrl, MarkdocError, prependForwardSlash, isComponentConfig } from './utils.js';
import type { ErrorPayload as ViteErrorPayload } from 'vite';
import type { ComponentConfig } from './config.js';
import { isComponentConfig, isValidUrl, MarkdocError, prependForwardSlash } from './utils.js';
// @ts-expect-error Cannot find module 'astro/assets' or its corresponding type declarations.
import { emitESMImage } from 'astro/assets';
import path from 'node:path';
import type * as rollup from 'rollup';
import { setupConfig } from './runtime.js';
import type { MarkdocConfigResult } from './load-config.js';
import { setupConfig } from './runtime.js';

export async function getContentEntryType({
markdocConfigResult,
Expand Down
8 changes: 4 additions & 4 deletions packages/integrations/markdoc/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/* eslint-disable no-console */
import type { AstroIntegration, ContentEntryType, HookParameters, AstroConfig } from 'astro';
import { fileURLToPath } from 'node:url';
import type { AstroConfig, AstroIntegration, ContentEntryType, HookParameters } from 'astro';
import { bold, red } from 'kleur/colors';
import { fileURLToPath } from 'node:url';
import { normalizePath } from 'vite';
import { getContentEntryType } from './content-entry-type.js';
import {
loadMarkdocConfig,
type MarkdocConfigResult,
SUPPORTED_MARKDOC_CONFIG_FILES,
type MarkdocConfigResult,
} from './load-config.js';
import { getContentEntryType } from './content-entry-type.js';

type SetupHookParams = HookParameters<'astro:config:setup'> & {
// `contentEntryType` is not a public API
Expand Down
8 changes: 2 additions & 6 deletions packages/integrations/markdoc/src/runtime.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import type { MarkdownHeading } from '@astrojs/markdown-remark';
import type { AstroInstance } from 'astro';
import {
createComponent,
renderComponent,
// @ts-expect-error Cannot find module 'astro/runtime/server/index.js' or its corresponding type declarations.
} from 'astro/runtime/server/index.js';
import Markdoc, {
type ConfigType,
type Node,
type NodeType,
type RenderableTreeNode,
} from '@markdoc/markdoc';
import type { AstroInstance } from 'astro';
import { createComponent, renderComponent } from 'astro/runtime/server/index.js';
import type { AstroMarkdocConfig } from './config.js';
import { setupHeadingConfig } from './heading-ids.js';

Expand Down

0 comments on commit 647079d

Please sign in to comment.