diff --git a/src/core/parser/index.ts b/src/core/parser/index.ts index 0377713fb..95d980765 100644 --- a/src/core/parser/index.ts +++ b/src/core/parser/index.ts @@ -1,5 +1,5 @@ import { extname } from 'path' -import { ParserOptions } from 'src/types' +import { ParserOptions } from '../../types' import { logger } from '../utils' import { useJSONParser } from './json' import { useMarkdownParser } from './markdown' diff --git a/src/core/parser/markdown/compiler.ts b/src/core/parser/markdown/compiler.ts index ef37d2eb8..23102ca82 100644 --- a/src/core/parser/markdown/compiler.ts +++ b/src/core/parser/markdown/compiler.ts @@ -1,5 +1,5 @@ import { Node } from 'unist' -import { DocusRootNode, DocusMarkdownNode } from 'src/types' +import { DocusRootNode, DocusMarkdownNode } from '../../../types' /** * Parses nodes for JSON structure. Attempts to drop diff --git a/src/core/parser/markdown/content.ts b/src/core/parser/markdown/content.ts index 572bcea6d..1b4739714 100644 --- a/src/core/parser/markdown/content.ts +++ b/src/core/parser/markdown/content.ts @@ -2,7 +2,7 @@ import unified from 'unified' import parse from 'remark-parse' import remark2rehype from 'remark-rehype' -import { DocusRootNode } from 'src/types' +import { DocusRootNode } from '../../../types' import handlers from './handler' import compiler from './compiler' import { flattenNodeText } from './utils' diff --git a/src/core/parser/markdown/index.ts b/src/core/parser/markdown/index.ts index 0f27cd6d4..706267032 100644 --- a/src/core/parser/markdown/index.ts +++ b/src/core/parser/markdown/index.ts @@ -1,7 +1,7 @@ import { resolve } from 'path' import defu from 'defu' import matter from 'gray-matter' -import { MarkdownParserOptions, Toc } from 'src/types' +import { MarkdownParserOptions, Toc } from '../../../types' import { processOptions } from './utils' import { generateToc } from './toc' import { generateBody, generateDescription } from './content' diff --git a/src/core/parser/markdown/toc.ts b/src/core/parser/markdown/toc.ts index 4a2b518ac..65ba8f071 100644 --- a/src/core/parser/markdown/toc.ts +++ b/src/core/parser/markdown/toc.ts @@ -1,4 +1,4 @@ -import { DocusRootNode, DocusMarkdownNode, Toc, TocLink } from 'src/types' +import { DocusRootNode, DocusMarkdownNode, Toc, TocLink } from '../../../types' import { expandTags } from '../../runtime/utils' import { logger } from '../../utils' import { flattenNode, flattenNodeText } from './utils' diff --git a/src/core/runtime/composables/addons.ts b/src/core/runtime/composables/addons.ts index 76bedceeb..2d6120cc0 100644 --- a/src/core/runtime/composables/addons.ts +++ b/src/core/runtime/composables/addons.ts @@ -1,4 +1,4 @@ -import { DocusAddonContext } from 'src/types' +import { DocusAddonContext } from '../../../types' export const useDocusAddons = (context: DocusAddonContext, addons: any[]) => { /** diff --git a/src/core/runtime/composables/github.ts b/src/core/runtime/composables/github.ts index f48f676f0..0e2cffba2 100644 --- a/src/core/runtime/composables/github.ts +++ b/src/core/runtime/composables/github.ts @@ -1,6 +1,6 @@ import { computed } from '@nuxtjs/composition-api' -import { DocusAddonContext } from 'src/types' import { joinURL, withoutTrailingSlash } from 'ufo' +import { DocusAddonContext } from '../../../types' export const useDocusGithub = ({ state }: DocusAddonContext) => { const previewUrl = computed(() => withoutTrailingSlash(state.settings.url) + '/preview.png') diff --git a/src/core/runtime/composables/helpers.ts b/src/core/runtime/composables/helpers.ts index 8c0c6273d..181732e6a 100644 --- a/src/core/runtime/composables/helpers.ts +++ b/src/core/runtime/composables/helpers.ts @@ -1,5 +1,5 @@ -import { DocusAddonContext } from 'src/types' import Vue from 'vue' +import { DocusAddonContext } from '../../../types' export const docusInit = async ({ context, state }: DocusAddonContext, fetch: any) => { // HotReload on development diff --git a/src/core/runtime/composables/navigation.ts b/src/core/runtime/composables/navigation.ts index 2f01c287a..59eb75dc2 100644 --- a/src/core/runtime/composables/navigation.ts +++ b/src/core/runtime/composables/navigation.ts @@ -1,8 +1,8 @@ -import { DocusAddonContext } from 'src/types' import { pascalCase } from 'scule' import { withoutTrailingSlash, withTrailingSlash } from 'ufo' import { computed } from '@nuxtjs/composition-api' import Vue from 'vue' +import { DocusAddonContext } from '../../../types' export const useDocusNavigation = ({ $nuxt, context, state, api }: DocusAddonContext) => { const app = context.app diff --git a/src/core/runtime/composables/releases.ts b/src/core/runtime/composables/releases.ts index 96dea7604..029af5530 100644 --- a/src/core/runtime/composables/releases.ts +++ b/src/core/runtime/composables/releases.ts @@ -1,4 +1,4 @@ -import { DocusAddonContext } from 'src/types' +import { DocusAddonContext } from '../../../types' export const useDocusReleases = ({ api, state }: DocusAddonContext) => { async function fetchReleases() { diff --git a/src/twitter/index.ts b/src/twitter/index.ts index 67e55dd60..f00550147 100644 --- a/src/twitter/index.ts +++ b/src/twitter/index.ts @@ -1,6 +1,6 @@ import { resolve } from 'path' import { Module } from '@nuxt/types' -import { ParserOptions } from 'src/types' +import { ParserOptions } from '../types' import tweetDirective from './lib/directive' const r = (...args) => resolve(__dirname, ...args) diff --git a/src/types/core.ts b/src/types/core.ts index 7ce675c5d..a96ce6f00 100644 --- a/src/types/core.ts +++ b/src/types/core.ts @@ -1,6 +1,6 @@ import { Context } from '@nuxt/types' -import { useDocusApi } from 'src/core/runtime/composables/api' import { MetaInfo } from 'vue-meta' +import { useDocusApi } from '../core/runtime/composables/api' import { DefaultThemeSettings } from '../defaultTheme/index.d' import { DocusRootNode } from './markdown'