Skip to content

Commit

Permalink
docs: fixed data not being loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
khawarizmus committed Oct 6, 2023
1 parent 3674aaf commit 9caa22b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/components/MethodsMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
import { onMounted, ref, shallowRef, watch } from 'vue'
import * as Plot from '@observablehq/plot'
import { json } from 'd3'
import { useData } from 'vitepress'
import { useData, withBase } from 'vitepress'
import { CountryMethods } from '../../src/data/methods'
import { Methods } from '../../src'
const isLoading = ref(true)
const { isDark } = useData()
const map = ref<HTMLElement | null>(null)
const dataPath = '../data/countries.geojson'
const dataPath = withBase('/data/countries.geojson')
const world = shallowRef<any | null>(null)
onMounted(async () => {
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export default defineConfig({
define: {
'import.meta.vitest': 'undefined',
},
publicDir: 'public',
test: {
coverage: {
provider: 'istanbul', // or 'c8'
Expand Down

0 comments on commit 9caa22b

Please sign in to comment.