Skip to content

Commit 2dc1834

Browse files
jonasjabarigitbook-bot
authored andcommitted
GitBook: [main] 4 pages modified
1 parent 621f1c0 commit 2dc1834

File tree

4 files changed

+78
-50
lines changed

4 files changed

+78
-50
lines changed

docs/README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
# Install
1+
# Welcome
2+
3+
As an extension for `matestack-ui-core`, `matestack-ui-bootstrap`ships all you need to build beautiful, reactive UIs in pure Ruby and smart CRUD components based on Bootstrap v5. Don't think about styling anymore and just create admin or application UIs faster than ever before!
4+
5+
### Live Demo <a id="live-demo"></a>
6+
7+
Based on `matestack-ui-core` and `matestack-ui-bootstrap` this reactive dummy app was created in pure Ruby without writing any JavaScript, ERB/HAML/SLIM and CSS: \([check it out](https://dummy.matestack.io/) \| [source code](https://github.com/matestack/matestack-ui-bootstrap/tree/main/spec/dummy)\)
8+
9+
![https://dummy.matestack.io](https://gblobscdn.gitbook.com/assets%2F-MSlZxQYRyTJNqEznL8o%2F-MTevzmZSIIaZYSkG4fv%2F-MTfYhwWbFzn_uGOlml9%2Fimage.png?alt=media&token=cbf6d7df-7d94-450e-9925-b42eb2cb0a3f)
10+
11+
{% hint style="info" %}
12+
We do not offer Sprocktes Support in order to include the JavaScript part of `matestack-ui-bootstrap`. Please use something like Webpacker instead! Sprockets support will be dropped soon for `matestack-ui-core` as well!
13+
{% endhint %}
214

315
### Webpacker Installation
416

@@ -59,5 +71,21 @@ ActiveStorage.start()
5971
* download latest compatible icons: [https://github.com/twbs/icons/releases/tag/v1.3.0](https://github.com/twbs/icons/releases/tag/v1.3.0)
6072
* extract the bootstrap-icons.svg to this path: app/assets/images/icons \(server via assets pipeline\)
6173

74+
### Usage
75+
76+
Create Matestack apps, pages and components as described in the docs of `matestack-ui-core` and utilize the components described in the API section in order to create your UI. Just make sure to include the additional Registry in your desired controllers
77+
78+
`app/controllers/application_controller.rb`
79+
80+
```ruby
81+
class ApplicationController < ActionController::Base
82+
83+
include Matestack::Ui::Core::ApplicationHelper # described in Core docs
84+
include Matestack::Ui::Bootstrap::Registry # add Bootstrap components
85+
86+
end
87+
88+
```
89+
6290

6391

docs/SUMMARY.md

Lines changed: 49 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,52 @@
11
# Table of contents
22

3-
* [Install](README.md)
4-
* [Integrations](integrations/README.md)
5-
* [Chart.js](integrations/chartjs.md)
6-
* [Devise](integrations/devise.md)
7-
* [Flatpickr](integrations/flatpickr.md)
8-
* [API](api/README.md)
9-
* [Layout](api/layout/README.md)
10-
* [Container](api/layout/container.md)
11-
* [Col](api/layout/col.md)
12-
* [Row](api/layout/row.md)
13-
* [Components](api/components/README.md)
14-
* [Accordion](api/components/accordion.md)
15-
* [Alert](api/components/alert.md)
16-
* [Badge](api/components/badge.md)
17-
* [Breadcrumb](api/components/breadcrumb.md)
18-
* [Button](api/components/button.md)
19-
* [ButtonGroup](api/components/button_group.md)
20-
* [Card](api/components/card.md)
21-
* [Carousel](api/components/carousel.md)
22-
* [Chart](api/components/chart.md)
23-
* [Close](api/components/close.md)
24-
* [Collapse](api/components/collapse.md)
25-
* [Dropdown](api/components/dropdown.md)
26-
* [ListGroup](api/components/list_group.md)
27-
* [Modal](api/components/modal.md)
28-
* [Nav](api/components/tab_nav.md)
29-
* [Navbar](api/components/navbar.md)
30-
* [Pagination](api/components/pagination.md)
31-
* [Popover](api/components/popover.md)
32-
* [Progress](api/components/progress.md)
33-
* [Scrollspy](api/components/scrollspy.md)
34-
* [Smart collection](api/components/smart_collection.md)
35-
* [Spinner](api/components/spinner.md)
36-
* [Toast](api/components/toast.md)
37-
* [Tooltip](api/components/tooltip.md)
38-
* [Form](api/form/README.md)
39-
* [Checkbox](api/form/checkbox.md)
40-
* [Input](api/form/input.md)
41-
* [Radio](api/form/radio.md)
42-
* [Select](api/form/select.md)
43-
* [Submit](api/form/submit.md)
44-
* [Switch](api/form/switch.md)
45-
* [Templates](api/templates/README.md)
46-
* [Apps](api/templates/apps/README.md)
47-
* [Admin App Template](api/templates/apps/admin.md)
3+
* [Welcome](README.md)
4+
5+
## API
6+
7+
* [Templates](api/templates/README.md)
8+
* [Apps](api/templates/apps/README.md)
9+
* [Admin App Template](api/templates/apps/admin.md)
10+
* [Form](api/form/README.md)
11+
* [Checkbox](api/form/checkbox.md)
12+
* [Input](api/form/input.md)
13+
* [Radio](api/form/radio.md)
14+
* [Select](api/form/select.md)
15+
* [Submit](api/form/submit.md)
16+
* [Switch](api/form/switch.md)
17+
* [Components](api/components/README.md)
18+
* [Accordion](api/components/accordion.md)
19+
* [Alert](api/components/alert.md)
20+
* [Badge](api/components/badge.md)
21+
* [Breadcrumb](api/components/breadcrumb.md)
22+
* [Button](api/components/button.md)
23+
* [ButtonGroup](api/components/button_group.md)
24+
* [Card](api/components/card.md)
25+
* [Carousel](api/components/carousel.md)
26+
* [Chart](api/components/chart.md)
27+
* [Close](api/components/close.md)
28+
* [Collapse](api/components/collapse.md)
29+
* [Dropdown](api/components/dropdown.md)
30+
* [ListGroup](api/components/list_group.md)
31+
* [Modal](api/components/modal.md)
32+
* [Nav](api/components/tab_nav.md)
33+
* [Navbar](api/components/navbar.md)
34+
* [Pagination](api/components/pagination.md)
35+
* [Popover](api/components/popover.md)
36+
* [Progress](api/components/progress.md)
37+
* [Scrollspy](api/components/scrollspy.md)
38+
* [Smart collection](api/components/smart_collection.md)
39+
* [Spinner](api/components/spinner.md)
40+
* [Toast](api/components/toast.md)
41+
* [Tooltip](api/components/tooltip.md)
42+
* [Layout](api/layout/README.md)
43+
* [Container](api/layout/container.md)
44+
* [Col](api/layout/col.md)
45+
* [Row](api/layout/row.md)
46+
47+
## Integrations
48+
49+
* [Chart.js](integrations/chartjs.md)
50+
* [Flatpickr](integrations/flatpickr.md)
51+
* [Devise](integrations/devise.md)
4852

docs/api/README.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/integrations/README.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)