Skip to content

Commit

Permalink
🐛 (imports) fix relative imports (src/ => ../..) as we are distributi…
Browse files Browse the repository at this point in the history
…ng the tree
  • Loading branch information
Tahul committed May 6, 2021
1 parent beb3680 commit 887f03d
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/core/parser/index.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/core/parser/markdown/compiler.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/core/parser/markdown/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/core/parser/markdown/index.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/core/parser/markdown/toc.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/core/runtime/composables/addons.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DocusAddonContext } from 'src/types'
import { DocusAddonContext } from '../../../types'

export const useDocusAddons = (context: DocusAddonContext, addons: any[]) => {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/core/runtime/composables/github.ts
Original file line number Diff line number Diff line change
@@ -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')
Expand Down
2 changes: 1 addition & 1 deletion src/core/runtime/composables/helpers.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/core/runtime/composables/navigation.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/core/runtime/composables/releases.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DocusAddonContext } from 'src/types'
import { DocusAddonContext } from '../../../types'

export const useDocusReleases = ({ api, state }: DocusAddonContext) => {
async function fetchReleases() {
Expand Down
2 changes: 1 addition & 1 deletion src/twitter/index.ts
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/types/core.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down

1 comment on commit 887f03d

@vercel
Copy link

@vercel vercel bot commented on 887f03d May 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.