Skip to content

Commit 867733d

Browse files
committed
chore: update documentation
1 parent 9b539c1 commit 867733d

6 files changed

Lines changed: 251 additions & 153 deletions

File tree

LICENSE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MIT License
2+
3+
Copyright (c) 2026 Gelencsér Gergő
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<p align="center">
2-
<img src="logo.svg" alt="bs-elements" width="128" height="128">
2+
<img src="https://programmerg.github.io/bs-elements/logo.svg" alt="bs-elements" width="128" height="128">
33
</p>
44

55
# bs-elements
66

7-
A **Bootstrap 5–based, framework-agnostic Web Component library** built around the Bootstrap philosophy:
7+
A **Bootstrap 5–based, framework-agnostic Web Component library** built around the Bootstrap philosophy:<br>
88
_class-first markup, minimal abstraction, and a thin DOM wrapper_.
99

10-
bs-elements augments existing Bootstrap HTML and JavaScript with a **declarative Custom Element API**
10+
bs-elements augments existing Bootstrap HTML and JavaScript with a **declarative Custom Element API**<br>
1111
— without hiding, replacing, or reinventing Bootstrap.
1212

1313
## 🎯 Goals
@@ -28,14 +28,21 @@ Explicitly not a goal:
2828
Good old way
2929

3030
1. Follow the [official guide](https://getbootstrap.com/docs/5.3/getting-started/introduction/)
31-
2. replace `bootstrap.boundle.min.js` with `bs-elements.boundle.min.js`
32-
3. or add the `<script src="bs-elements.min.js"></script>` next to it
31+
2. replace `bootstrap.boundle.min.js` with our `bs-elements.boundle.min.js`<br>
32+
or keep it and add `bs-elements.min.js` next to it.
33+
34+
CDN links
35+
36+
```html
37+
<script src="https://cdn.jsdelivr.net/npm/@programmerg/bs-elements@0.1.0/dist/bs-elements.min.js"></script>
38+
<script src="https://cdn.jsdelivr.net/npm/@programmerg/bs-elements@0.1.0/dist/bs-elements.boundle.min.js"></script>
39+
<script src="https://cdn.jsdelivr.net/npm/@programmerg/bs-elements@0.1.0/dist/bs-elements.esm.js" type="module"></script>
40+
```
3341

3442
ES Modules
3543

36-
- Use the `<script src="bs-elements.esm.js" type="module"></script>`
37-
- or install it with the command: `npm i programmerg/bs-elements`
38-
- then you can import it as `import * from 'bs-elements'`
44+
- Run the `npm i @programmerg/bs-elements` command
45+
- and use `import * from '@programmerg/bs-elements'`
3946

4047
## 🧠 Design Principles
4148

@@ -146,3 +153,7 @@ If required Bootstrap structure is missing, BsElements fills the gap.
146153
- `connectedCallback` → initialize Bootstrap instance
147154
- Attribute changes → synchronize options
148155
- `disconnectedCallback` → clean up
156+
157+
---
158+
159+
<p align="center">Made with ❤️, HTML and JS.</p>

dist/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*
2-
!.gitignore
2+
!.gitignore
3+
!.npmignore

dist/.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.gitignore

0 commit comments

Comments
 (0)