Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 45d36ec

Browse files
authored
Merge pull request bootstrap-vue-next#1281 from VividLemon/main
docs: fix hostname for sitemap
2 parents 80f4dba + af19d98 commit 45d36ec

File tree

2 files changed

+995
-1087
lines changed

2 files changed

+995
-1087
lines changed

apps/docs/.vitepress/config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@ import {SitemapStream} from 'sitemap'
77
const title = 'BootstrapVueNext'
88
const description = 'Quickly and Easily Integrate Bootstrap V5 Components With Vue 3'
99
const links: {url: string; lastmod: number | undefined}[] = []
10+
const baseUrl = '/bootstrap-vue-next/'
1011

1112
// https://vitepress.dev/reference/site-config
1213
export default defineConfig({
1314
title,
1415
description,
15-
base: '/bootstrap-vue-next/',
16+
base: baseUrl,
1617
srcDir: 'src',
1718
// TODO fix & remove this
1819
ignoreDeadLinks: true,
1920
head: [
20-
['link', {rel: 'icon', type: 'image/x-icon', href: '/bootstrap-vue-next/favicon.ico'}],
21+
['link', {rel: 'icon', type: 'image/x-icon', href: `${baseUrl}favicon.ico`}],
2122
['meta', {property: 'og:title', name: 'og:title', content: title}],
2223
['meta', {property: 'og:description', name: 'og:description', content: description}],
2324
['meta', {property: 'twitter:card', name: 'twitter:card', content: 'summary'}],
@@ -44,7 +45,7 @@ export default defineConfig({
4445
},
4546
buildEnd: async ({outDir}) => {
4647
const sitemap = new SitemapStream({
47-
hostname: 'https://subwork.xyz/',
48+
hostname: `https://bootstrap-vue-next.github.io${baseUrl}`,
4849
})
4950
const writeStream = createWriteStream(resolve(outDir, 'sitemap.xml'))
5051
sitemap.pipe(writeStream)

0 commit comments

Comments
 (0)