Skip to content

Commit aad63f3

Browse files
committed
Fix Base URL for official documentation URL
1 parent 565c446 commit aad63f3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Setup playground
4747
run: npm run dev:prepare
4848
- name: Build with VitePress
49-
run: npm run docs:build
49+
run: VITE_BASE_URL=/leaflet/ npm run docs:build
5050
- name: Upload artifact
5151
uses: actions/upload-pages-artifact@v3
5252
with:

docs/.vitepress/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { defineConfig } from 'vitepress'
44
export default defineConfig({
55
title: "Nuxt Leaflet",
66
description: "Documentation for the Nuxt Leaflet module",
7-
head: [['link', { rel: 'icon', href: '/leaflet/favicon.ico' }]],
8-
base: '/leaflet/',
7+
head: [['link', { rel: 'icon', href: '/favicon.ico' }]],
8+
base: '/',
99
themeConfig: {
1010
// https://vitepress.dev/reference/default-theme-config
1111
nav: [

playground/nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ export default defineNuxtConfig({
22
modules: ['../src/module'],
33
devtools: { enabled: true },
44
app: {
5-
baseURL: '/leaflet/'
5+
baseURL: '/'
66
}
77
})

0 commit comments

Comments
 (0)