Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/jeff/fix_build_process'
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Apr 25, 2024
2 parents b13546c + 4632797 commit f69ada3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { existsSync } from 'node:fs'
import { basename, dirname, join } from 'node:path'
import { basename, dirname } from 'node:path'
import { env } from 'node:process'
import { defineConfig, resolveConfig } from 'vitepress'
import { defineConfig } from 'vitepress'
import { spawn } from 'cross-spawn'
import { readPackageJSON } from 'pkg-types'
import consola from 'consola'
Expand Down
11 changes: 6 additions & 5 deletions .vitepress/theme/components/header/Header.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<script setup lang="ts">
import { breakpointsTailwind, useMagicKeys } from '@vueuse/core'
import { watch } from 'vue'
import { breakpointsTailwind } from '@vueuse/core'
import { ContextMenu } from 'radix-vue/namespaced'
import { inBrowser } from 'vitepress'
import { getIconSnippet } from '../../composables/icons/icon'
import Navigation from './Navigation.vue'
import MobileMenu from './MobileMenu.vue'
const SearchBox = defineAsyncComponent(() => import('vitepress/dist/client/theme-default/components/VPLocalSearchBox.vue'))
const Navigation = defineAsyncComponent(() => import('./Navigation.vue'))
const MobileMenu = defineAsyncComponent(() => import('./MobileMenu.vue'))
const { smaller } = useBreakpoints(breakpointsTailwind)
const isSmall = smaller('lg')
Expand All @@ -29,7 +30,7 @@ const { copy, isSupported } = useClipboard({ copiedDuring: 3000 })
const showEnvironment = __BUILD_ENVIRONMENT__ !== 'production'
const isMac = document.documentElement.classList.contains('mac')
const isMac = inBrowser ? document.documentElement.classList.contains('mac') : false
</script>

<template>
Expand Down

0 comments on commit f69ada3

Please sign in to comment.