Skip to content

Commit 48e3dbe

Browse files
update to internal commit f1b4c734
1 parent 0196587 commit 48e3dbe

File tree

5 files changed

+23
-11
lines changed

5 files changed

+23
-11
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ docFullPath: https://www.dynamsoft.com/barcode-reader/docs/web/
44
firstLevelUrl: /barcode-reader/docs/web
55
docRootName: "Barcode Reader JS Edition"
66
docHomePage: /barcode-reader/docs/web/programming/javascript/
7+
searchIndexName: Crawler-DBR-Docs-New
8+
searchNeedFilter: true
79

810
useVersionTree: true
911

programming/javascript/user-guide/index.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ In this guide, you will learn step by step on how to integrate the DBR-JS SDK in
3737
- [Run the example](#run-the-example)
3838
- [Preparing the SDK](#preparing-the-sdk)
3939
- [Step 1: Include the SDK](#step-1-include-the-sdk)
40-
- [Option 1: Use a public CDN](#option-1-use-a-public-cdn)
41-
- [Option 2: Host the SDK yourself (optional)](#option-2-host-the-sdk-yourself-optional)
4240
- [Step 2: Prepare the SDK](#step-2-prepare-the-sdk)
4341
- [1. Specify the license](#1-specify-the-license)
4442
- [2. \[Optional\] Specify the location of the "engine" files](#2-optional-specify-the-location-of-the-engine-files)
@@ -216,7 +214,13 @@ Alternatively, you can test locally by copying and pasting the code shown above
216214
217215
### Step 1: Include the SDK
218216
219-
#### Option 1: Use a public CDN
217+
<div class="multi-panel-switching-prefix"></div>
218+
<!--
219+
- [Use a public CDN](#useapubliccdn)
220+
- [Host the SDK yourself](#hostthesdkyourself) -->
221+
222+
<div class="multi-panel-start"></div>
223+
<div class="multi-panel-title">Use a public CDN</div>
220224
221225
The simplest way to include the SDK is to use either the [jsDelivr](https://jsdelivr.com/) or [UNPKG](https://unpkg.com/) CDN. The "hello world" example above uses **jsDelivr**.
222226
@@ -232,13 +236,13 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
232236
<script src="https://unpkg.com/dynamsoft-barcode-reader-bundle@10.4.3100/dist/dbr.bundle.js"></script>
233237
```
234238
235-
- In some rare cases (such as some restricted areas), you might not be able to access the CDN. If this happens, you can use the following files for the test.
239+
<!-- - In some rare cases (such as some restricted areas), you might not be able to access the CDN. If this happens, you can use the following files for the test.
236240
237241
```html
238242
<script src="https://download2.dynamsoft.com/packages/dynamsoft-barcode-reader-bundle@10.4.3100/dist/dbr.bundle.js"></script>
239243
```
240244
241-
However, please **DO NOT** use `download2.dynamsoft.com` resources in a production application as they are for temporary testing purposes only. Instead, you can try hosting the SDK yourself.
245+
However, please **DO NOT** use `download2.dynamsoft.com` resources in a production application as they are for temporary testing purposes only. Instead, you can try hosting the SDK yourself. -->
242246
243247
- In frameworks like React, Vue and Angular, you may want to add the package as a dependency.
244248
@@ -248,9 +252,11 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
248252
yarn add dynamsoft-barcode-reader-bundle@10.4.3100 -E
249253
```
250254
251-
NOTE that in frameworks, you need to [specify the engineResourcePaths](#specify-the-location-of-the-engine-files-optional).
255+
NOTE that in frameworks, you need to [specify the location of the engine files](#2-optional-specify-the-location-of-the-engine-files).
256+
<div class="multi-panel-end"></div>
252257
253-
#### Option 2: Host the SDK yourself (optional)
258+
<div class="multi-panel-start"></div>
259+
<div class="multi-panel-title">Host the SDK yourself</div>
254260
255261
Besides using the public CDN, you can also download the SDK and host its files on your own server or a commercial CDN before including it in your application.
256262
@@ -277,6 +283,9 @@ You can typically include SDK like this:
277283
```html
278284
<script src="path/to/dynamsoft-barcode-reader-bundle@10.4.3100/dist/dbr.bundle.js"></script>
279285
```
286+
<div class="multi-panel-end"></div>
287+
288+
<div class="multi-panel-switching-end"></div>
280289
281290
*Note*:
282291

programming/javascript/user-guide/use-in-framework-v10.4.2002.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Assuming you have an existing project using a framework, you should have a `pack
3939
}
4040
```
4141

42-
Notice that there is no `^` before `10.2.1000`. No `^` indicates an exact version, ensuring stability and avoids automatic upgrades even without `package-lock.json`.
42+
Notice that there is no `^` before `10.4.2002`. No `^` indicates an exact version, ensuring stability and avoids automatic upgrades even without `package-lock.json`.
4343

4444
While we keep the SDK's external interface relatively stable, the SDK's internal communication often change with each new version. These changes can potentially lead to compatibility issues with `engineResourcePaths` settings. To prevent any unexpected difficulties and surprises, it's essential to use the exact version of the SDK.
4545

programming/javascript/user-guide/use-in-framework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Assuming you have an existing project using a framework, you should have a `pack
3939
}
4040
```
4141

42-
Notice that there is no `^` before `10.2.1000`. No `^` indicates an exact version, ensuring stability and avoids automatic upgrades even without `package-lock.json`.
42+
Notice that there is no `^` before `10.4.3100`. No `^` indicates an exact version, ensuring stability and avoids automatic upgrades even without `package-lock.json`.
4343

4444
While we keep the SDK's external interface relatively stable, the SDK's internal communication often change with each new version. These changes can potentially lead to compatibility issues with `engineResourcePaths` settings. To prevent any unexpected difficulties and surprises, it's essential to use the exact version of the SDK.
4545

search.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
2-
layout: search-page
2+
layout: search-layout
33
title: Dynamsoft Barcode Reader SDK Documentation Search
44
keywords: Dynamsoft Barcode Reader SDK Documentation Search
5+
h1: Dynamsoft Barcode Reader SDK Documentation Search
56
breadcrumbText: HomePage
6-
cx: 32039cdf85bc7ae2b
7+
indexName: Crawler-DBR-Docs-New
78
---

0 commit comments

Comments
 (0)