Skip to content

Commit a7024aa

Browse files
committed
update reference page
1 parent ada3115 commit a7024aa

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

docs/components/main-docs.js

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import QuickLinks from '~/components/quick-links'
44
import Reload from '~/components/reload'
55
import Section from '~/components/section'
66
import { mergeData } from 'vue-functional-data-merge'
7+
import { bootstrapVersion, vueVersion } from '~/content'
78

89
// @vue/component
910
export default {
@@ -62,11 +63,25 @@ export default {
6263
const $quickLinks = h(QuickLinks)
6364

6465
// Body section
65-
const $bodySection = h(Section, {
66-
props: { play: true },
67-
domProps: { innerHTML: body || '' }
66+
const $bodySectionContent = h({
67+
delimiters: ['[[', ']]'], // change the delimiters to avoid conflicts with code examples
68+
data() {
69+
return {
70+
bootstrapVersion,
71+
vueVersion
72+
}
73+
},
74+
template: `<div>${body}</div>`
6875
})
6976

77+
const $bodySection = h(
78+
Section,
79+
{
80+
props: { play: true }
81+
},
82+
[$bodySectionContent]
83+
)
84+
7085
return h(Main, mergeData(data, { props: { tag } }), [
7186
$leadSection,
7287
$error,

docs/markdown/reference/starter-templates/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ tags to load the required JavaScript and CSS in your page.
2626
<link
2727
type="text/css"
2828
rel="stylesheet"
29-
href="https://unpkg.com/bootstrap/dist/css/bootstrap.min.css"
29+
href="https://unpkg.com/bootstrap@[[ bootstrapVersion ]]/dist/css/bootstrap.min.css"
3030
/>
3131
<link
3232
type="text/css"
@@ -38,7 +38,7 @@ tags to load the required JavaScript and CSS in your page.
3838
<script src="https://polyfill.io/v3/polyfill.min.js?features=es2015%2CIntersectionObserver"></script>
3939

4040
<!-- Required scripts -->
41-
<script src="https://unpkg.com/vue@latest/dist/vue.js"></script>
41+
<script src="https://unpkg.com/vue@[[ vueVersion ]]/dist/vue.js"></script>
4242
<script src="https://unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue.js"></script>
4343
</head>
4444
<body>

0 commit comments

Comments
 (0)