Skip to content

Commit 05bb5ca

Browse files
[update] sidebar and minor fixes
1 parent d568bf2 commit 05bb5ca

3 files changed

Lines changed: 39 additions & 21 deletions

File tree

docs/guides/integration-with-angular.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,32 +186,32 @@ export function getData() : any {
186186
price: "$25",
187187
review: {
188188
stars: 5,
189-
count: 10,
189+
count: 10
190190
},
191191
slots: [
192192
{
193193
from: 14,
194194
to: 17,
195195
size: 30,
196-
gap: 10,
196+
gap: 10
197197
},
198198
{
199199
from: 12,
200200
to: 19,
201201
size: 50,
202202
gap: 20,
203203
days: [2],
204-
dates: [getDate(0)],
204+
dates: [getDate(0)]
205205
},
206206
{
207207
from: "18:30",
208208
to: 20,
209209
size: 20,
210210
gap: 20,
211-
days: [3, 4, 5],
211+
days: [3, 4, 5]
212212
},
213213
],
214-
usedSlots: [getDate(0, 12), getDate(0, 18)],
214+
usedSlots: [getDate(0, 12), getDate(0, 18)]
215215
},
216216
// ...
217217
];

docs/guides/integration-with-react.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ In this tutorial you can see how to configure the **trial** version of Booking.
9090

9191
To display Booking on the page, you need to create the container for Booking, and initialize this component using the corresponding constructor:
9292

93-
~~~jsx {2,6,9-10} title="Booking.jsx"
93+
~~~jsx {2,6,9-10,17} title="Booking.jsx"
9494
import { useEffect, useRef } from "react";
9595
import { Booking } from "@dhx/trial-booking";
9696
import "@dhx/trial-booking/dist/booking.css"; // include Booking styles
@@ -184,7 +184,7 @@ export function getData() {
184184
price: "$25",
185185
review: {
186186
stars: 5,
187-
count: 10,
187+
count: 10
188188
},
189189
slots: [
190190
{
@@ -207,9 +207,9 @@ export function getData() {
207207
size: 20,
208208
gap: 20,
209209
days: [3, 4, 5]
210-
},
210+
}
211211
],
212-
usedSlots: [getDate(0, 12), getDate(0, 18)],
212+
usedSlots: [getDate(0, 12), getDate(0, 18)]
213213
},
214214
// ...
215215
];

sidebars.js

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ module.exports = {
3131
link: {
3232
type: "doc",
3333
id: "api/overview/booking-methods-overview"
34-
},
34+
},
3535
items: [
3636
"api/methods/booking-serialize-method",
3737
"api/methods/booking-setconfig-method",
3838
"api/methods/booking-setconfirmhandler-method",
39-
"api/methods/booking-setlocale-method",
39+
"api/methods/booking-setlocale-method"
4040
]
4141
},
4242
// Booking internal methods
@@ -61,7 +61,7 @@ module.exports = {
6161
"api/internal/booking-exec",
6262
"api/internal/booking-intercept",
6363
"api/internal/booking-on",
64-
"api/internal/booking-setnext",
64+
"api/internal/booking-setnext"
6565
]
6666
},
6767
{
@@ -76,9 +76,9 @@ module.exports = {
7676
items: [
7777
// "api/internal/booking_innermethodname_method",
7878
"api/internal/booking-getreactivestate",
79-
"api/internal/booking-getstate",
79+
"api/internal/booking-getstate"
8080
]
81-
},
81+
}
8282
]
8383
},
8484
{
@@ -97,7 +97,7 @@ module.exports = {
9797
"api/events/booking-filterdata-event",
9898
"api/events/booking-selectslot-event",
9999
"api/events/booking-selectitem-event",
100-
"api/events/booking-selectitemdate-event",
100+
"api/events/booking-selectitemdate-event"
101101
]
102102
},
103103
{
@@ -122,11 +122,30 @@ module.exports = {
122122
"api/config/booking-locale",
123123
"api/config/booking-slotgap",
124124
"api/config/booking-slotsize",
125-
"api/config/booking-start",
125+
"api/config/booking-start"
126126
]
127127
}
128128
]
129129
},
130+
//start Backend and frameworks integration
131+
{
132+
type: "category",
133+
label: "Backend and frameworks integration",
134+
link: {
135+
type: 'generated-index',
136+
title: "Backend and frameworks integration",
137+
keywords: ['backend and frameworks integration'],
138+
image: '/img/docusaurus.png'
139+
},
140+
items: [
141+
"guides/saving-reservations",
142+
"guides/integration-with-angular",
143+
"guides/integration-with-react",
144+
"guides/integration-with-vue",
145+
"guides/integration-with-svelte"
146+
]
147+
},
148+
// end Backend and frameworks integration
130149
{
131150
type: "category",
132151
label: "Guides",
@@ -136,16 +155,15 @@ module.exports = {
136155
type: 'generated-index',
137156
title: 'Guides',
138157
keywords: ['guides'],
139-
image: '/img/docusaurus.png',
158+
image: '/img/docusaurus.png'
140159
},
141160
items: [
142161
"guides/initialization",
143162
"guides/loading-data",
144163
"guides/configuration",
145164
"guides/localization",
146-
"guides/saving-reservations",
147-
"guides/styling",
148-
],
149-
},
165+
"guides/styling"
166+
]
167+
}
150168
]
151169
};

0 commit comments

Comments
 (0)