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

Commit 160c0f2

Browse files
committed
Merge branch 'main' into feature/b-close-button-customization
2 parents ddcc3ed + 77fe9cd commit 160c0f2

File tree

155 files changed

+5018
-12086
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+5018
-12086
lines changed

.github/pull_request_template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A clear and concise description of what the pull request does.
44

55
## Small replication
66

7-
If the change is large enough, a small replication can help demonstrate the changes made. This is optional, but can help observe the intended changes. A mentioned issue that contains a replication also works.
7+
A small replication or video walkthrough can help demonstrate the changes made. This is optional, but can help observe the intended changes. A mentioned issue that contains a replication also works.
88

99
## PR checklist
1010

.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"packages/bootstrap-vue-next": "0.9.23",
2+
"packages/bootstrap-vue-next": "0.9.26",
33
"packages/nuxt": "0.1.3"
44
}

apps/docs/.vitepress/config.ts

+25-2
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
import {defineConfig} from 'vitepress'
22
import Icons from 'unplugin-icons/vite'
3+
import {createWriteStream} from 'node:fs'
4+
import {resolve} from 'node:path'
5+
import {SitemapStream} from 'sitemap'
36

47
const title = 'BootstrapVueNext'
58
const description = 'Quickly and Easily Integrate Bootstrap V5 Components With Vue 3'
9+
const links: {url: string; lastmod: number | undefined}[] = []
10+
const baseUrl = '/bootstrap-vue-next/'
611

712
// https://vitepress.dev/reference/site-config
813
export default defineConfig({
914
title,
1015
description,
11-
base: '/bootstrap-vue-next/',
16+
base: baseUrl,
1217
srcDir: 'src',
1318
// TODO fix & remove this
1419
ignoreDeadLinks: true,
1520
head: [
16-
['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`}],
1722
['meta', {property: 'og:title', name: 'og:title', content: title}],
1823
['meta', {property: 'og:description', name: 'og:description', content: description}],
1924
['meta', {property: 'twitter:card', name: 'twitter:card', content: 'summary'}],
@@ -30,4 +35,22 @@ export default defineConfig({
3035
},
3136
},
3237
appearance: false,
38+
transformHtml: (_, id, {pageData}) => {
39+
if (!/[\\/]404\.html$/.test(id))
40+
links.push({
41+
// you might need to change this if not using clean urls mode
42+
url: pageData.relativePath.replace(/((^|\/)index)?\.md$/, '$2'),
43+
lastmod: pageData.lastUpdated,
44+
})
45+
},
46+
buildEnd: async ({outDir}) => {
47+
const sitemap = new SitemapStream({
48+
hostname: `https://bootstrap-vue-next.github.io${baseUrl}`,
49+
})
50+
const writeStream = createWriteStream(resolve(outDir, 'sitemap.xml'))
51+
sitemap.pipe(writeStream)
52+
links.forEach((link) => sitemap.write(link))
53+
sitemap.end()
54+
await new Promise((r) => writeStream.on('finish', r))
55+
},
3356
})

0 commit comments

Comments
 (0)