Skip to content

Commit c0fca86

Browse files
committed
feat: add Bootstrap compatibility and Bootstrap theme
1 parent 22464c8 commit c0fca86

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed

build/generate-sri.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ const files = [
3535
},
3636
{
3737
file: 'dist/css/themes/bootstrap/bootstrap.min.css',
38-
configPropertyName: 'css_bs_hash'
38+
configPropertyName: 'css_bs_pro_hash'
3939
},
4040
{
4141
file: 'dist/css/themes/bootstrap/bootstrap.rtl.min.css',
42-
configPropertyName: 'css_bs_rtl_hash'
42+
configPropertyName: 'css_bs_pro_rtl_hash'
4343
},
4444
{
4545
file: 'dist/js/coreui.min.js',
@@ -51,11 +51,11 @@ const files = [
5151
},
5252
{
5353
file: 'dist/js/bootstrap.min.js',
54-
configPropertyName: 'js_bs_hash'
54+
configPropertyName: 'js_bs_pro_hash'
5555
},
5656
{
5757
file: 'dist/js/bootstrap.bundle.min.js',
58-
configPropertyName: 'js_bs_bundle_hash'
58+
configPropertyName: 'js_bs_pro_bundle_hash'
5959
},
6060
{
6161
file: 'node_modules/@popperjs/core/dist/umd/popper.min.js',

docs/content/getting-started/introduction.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@ Copy-paste the stylesheet `<link>` into your `<head>` before all other styleshee
109109
<link href="{{< param "cdn.css_bs" >}}" rel="stylesheet" integrity="{{< param "cdn.css_bs_hash" >}}" crossorigin="anonymous">
110110
```
111111

112+
If you use CoreUI PRO version.
113+
114+
```html
115+
<link href="{{< param "cdn.css_bs_pro" >}}" rel="stylesheet" integrity="{{< param "cdn.css_bs_pro_hash" >}}" crossorigin="anonymous">
116+
```
117+
118+
112119
#### JS
113120

114121
Many of our components require the use of JavaScript to function. Specifically, they require our own JavaScript plugins and [Popper](https://popper.js.org/). Place **one of the following `<script>`s** near the end of your pages, right before the closing `</body>` tag, to enable them.
@@ -121,6 +128,13 @@ Include every CoreUI for Bootstrap JavaScript plugin and dependency with one of
121128
<script src="{{< param "cdn.js_bs_bundle" >}}" integrity="{{< param "cdn.js_bs_bundle_hash" >}}" crossorigin="anonymous"></script>
122129
```
123130

131+
132+
If you use CoreUI PRO version.
133+
134+
```html
135+
<script src="{{< param "cdn.js_bs_pro_bundle" >}}" integrity="{{< param "cdn.js_bs_pro_bundle_hash" >}}" crossorigin="anonymous"></script>
136+
```
137+
124138
##### Separate
125139

126140
If you decide to go with the separate scripts solution, Popper must come first (if you're using tooltips or popovers), and then our JavaScript plugins.
@@ -130,6 +144,13 @@ If you decide to go with the separate scripts solution, Popper must come first (
130144
<script src="{{< param "cdn.js_bs" >}}" integrity="{{< param "cdn.js_bs_hash" >}}" crossorigin="anonymous"></script>
131145
```
132146

147+
If you use CoreUI PRO version.
148+
149+
```html
150+
<script src="{{< param "cdn.popper" >}}" integrity="{{< param "cdn.popper_hash" >}}" crossorigin="anonymous"></script>
151+
<script src="{{< param "cdn.js_bs_pro" >}}" integrity="{{< param "cdn.js_bs_pro_hash" >}}" crossorigin="anonymous"></script>
152+
```
153+
133154
## Starter template
134155

135156
Be sure to have your pages set up with the latest design and development standards. That means using an HTML5 doctype and including a viewport meta tag for proper responsive behaviors. Put it all together and your pages should look like this:

hugo.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,18 @@ params:
103103
css_pro_hash: "sha384-styrHw5ARomA8xPUVXJSXXchmA9xX4sqIeUqZtGkcT2zBp/DidIW1GYUNVO5FbmJ"
104104
css_pro_rtl: "https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/css/coreui.rtl.min.css"
105105
css_pro_rtl_hash: "sha384-xoitnQeZCVl39uuq0t/cGqyY+p9btu0/oE9qRRQb/t4IXs4Zl9szbhxQxRIL+Q2n"
106+
css_bs_pro: "https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/css/themes/bootstrap/bootstrap.min.css"
107+
css_bs_pro_hash: "sha384-styrHw5ARomA8xPUVXJSXXchmA9xX4sqIeUqZtGkcT2zBp/DidIW1GYUNVO5FbmJ"
108+
css_bs_pro_rtl: "https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/css/themes/bootstrap/bootstrap.rtl.min.css"
109+
css_bs_pro_rtl_hash: "sha384-xoitnQeZCVl39uuq0t/cGqyY+p9btu0/oE9qRRQb/t4IXs4Zl9szbhxQxRIL+Q2n"
106110
js_pro: "https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/js/coreui.min.js"
107111
js_pro_hash: "sha384-rMzcWhQyg0HyrahJIZKq4ajsGpFLe/9V3sZ9E9PN6PX35KFLMlZh8bB2tYSkRx6u"
108112
js_pro_bundle: "https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/js/coreui.bundle.min.js"
109113
js_pro_bundle_hash: "sha384-KW7wTEji2ZsXsIoA4O34wfu6+kd/92iZmHLLSbrfj3D5JlgAJNWobqk0VRB2UvIK"
114+
js_bs_pro: "https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/js/bootstrap.min.js"
115+
js_bs_pro_hash: "sha384-rMzcWhQyg0HyrahJIZKq4ajsGpFLe/9V3sZ9E9PN6PX35KFLMlZh8bB2tYSkRx6u"
116+
js_bs_pro_bundle: "https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/js/bootstrap.bundle.min.js"
117+
js_bs_pro_bundle_hash: "sha384-KW7wTEji2ZsXsIoA4O34wfu6+kd/92iZmHLLSbrfj3D5JlgAJNWobqk0VRB2UvIK"
110118

111119
anchors:
112120
min: 2

0 commit comments

Comments
 (0)