Skip to content

Commit 7f340a6

Browse files
authored
Staging (#106)
* fix: intro description link * fix: API reference links
1 parent c5f8737 commit 7f340a6

File tree

8 files changed

+490
-523
lines changed

8 files changed

+490
-523
lines changed

_includes/sidelist-api.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
<li><a href="{{ site.api }}index.html" class="otherLinkColour">API References</a>
2-
<ul>
3-
<li><a href="{{ site.api }}document-scanner.html" class="otherLinkColour">Document Scanner</a></li>
4-
<li><a href="{{ site.api }}mobile-web-capture.html" class="otherLinkColour">Mobile Web Capture</a></li>
5-
</ul>
1+
<li><a href="{{ site.api }}index.html" class="otherLinkColour">API Reference</a>
62
</li>

api/document-scanner.md

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

api/index-v3.0.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ keywords: Documentation, Mobile Web Capture, API Index
88
description: Mobile Web Capture Documentation API Reference Index
99
---
1010

11-
# API Reference Index
11+
# API Reference Index
1212

13-
## Scan Single-Page Documents
13+
## Scan Single-Page Documents
1414

15-
If you need to scan single-page documents and do not require handling PDF files (import or export), you only need **Dynamsoft Document Scanner (DDS)**, a component of **Mobile Web Capture (MWC)**. You can find its API reference here:
15+
If you need to scan single-page documents and do not require handling PDF files (import or export), you only need **Dynamsoft Document Scanner (DDS)**, a component of **Mobile Web Capture (MWC)**. You can find its API reference here:
1616

17-
- [Dynamsoft Document Scanner API Reference]({{ site.api }}document-scanner.html)
17+
- [Dynamsoft Document Scanner API Reference]({{ site.api }}document-scanner.html)
1818

19-
> See it in action with the [Dynamsoft Document Scanner Demo](https://demo.dynamsoft.com/document-scanner/).
19+
> See it in action with the [Dynamsoft Document Scanner Demo](https://demo.dynamsoft.com/document-scanner/).
2020
21-
## Scan Multi-Page Documents
21+
## Scan Multi-Page Documents
2222

23-
If you need to handle multi-page documents, PDF files, annotations, and more, you will need the full-featured **Mobile Web Capture (MWC)**. You can find its API reference here:
23+
If you need to handle multi-page documents, PDF files, annotations, and more, you will need the full-featured **Mobile Web Capture (MWC)**. You can find its API reference here:
2424

25-
- [Mobile Web Capture API Reference]({{ site.api }}mobile-web-capture.html)
25+
- [Mobile Web Capture API Reference]({{ site.code-gallery }}}mobile-web-capture/api.html)
2626

27-
> See it in action with the [Mobile Web Capture Demo](https://demo.dynamsoft.com/mobile-web-capture/).
27+
> See it in action with the [Mobile Web Capture Demo](https://demo.dynamsoft.com/mobile-web-capture/).

api/index.md

Lines changed: 437 additions & 15 deletions
Large diffs are not rendered by default.

code-gallery/mobile-web-capture/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ interface MobileWebCaptureConfig {
203203

204204
##### See Also
205205

206-
- [`DocumentScannerConfig`]({{ site.api }}document-scanner.html#documentscannerconfig)
206+
- [`DocumentScannerConfig`]({{ site.api }}index.html#documentscannerconfig)
207207

208208
#### Example
209209

code-gallery/mobile-web-capture/customization-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Keep TOC only for npm /github as readme
6868
2. `toolbarButtonsConfig`: Configures the button in the toolbar of the history view.
6969
12. `ddvResourcePath`: Paths to extra resources such as `.wasm` engine files and CSS files.
7070

71-
API Reference: [`MobileWebCaptureConfig`]({{ site.api }}mobile-web-capture.html#mobilewebcaptureconfig)
71+
API Reference: [`MobileWebCaptureConfig`]({{ site.code-gallery }}}mobile-web-capture/api.html#mobilewebcaptureconfig)
7272

7373
## Overall UI and Workflow Customization
7474

@@ -146,7 +146,7 @@ document.getElementById("initialFile").onchange = async function () {
146146
```
147147

148148
API Reference:
149-
- [`hasLaunched`]({{ site.api }}mobile-web-capture.html#haslaunched)
149+
- [`hasLaunched`]({{ site.code-gallery }}}mobile-web-capture/.html#haslaunched)
150150
- [`dispose`]({{ site.api }}mobile-web-capture.html#dispose)
151151

152152
### Scan Directly to Document

guide/index.md

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description: Mobile Document Scanner JS Edition User Guide
1212
# Scan Single-Page Documents with Mobile Document Scanner
1313

1414
> [!TIP]
15-
> Read the [Introduction]({{ site.introduction }}index.html) for an overview of the SDK architecture.
15+
> Read the [Introduction]({{ site.introduction }}index.html) for common use cases, an overview of the SDK architecture, and system requirements.
1616
1717
Dynamsoft's **Mobile Document Scanner JavaScript Edition (MDS)** is a web SDK designed for scanning single-page documents. MDS captures images of the documents and enhances their quality to professional standards, making it an ideal tool for mobile document scanning.
1818

@@ -209,7 +209,7 @@ First, download a copy of the resources:
209209
210210
#### Point to Resources
211211
212-
The library uses [`engineResourcePaths`]({{ site.api }}document-scanner.html#engineresourcepaths) to locate required Dynamsoft `node` dependencies by pointing to the location of the resources on your web server. The library also uses `scannerViewConfig.cameraEnhancerUIPath` similarly to set the path for the HTML UI template of the `ScannerView`. Later steps will place both the `node` dependencies and the HTML template in the local `dist` directory. Therefore, set `engineResourcePaths` in the MDS constructor to point to the local `dist` directory (along with setting your license key, and all other configurations):
212+
The library uses [`engineResourcePaths`]({{ site.api }}index.html#engineresourcepaths) to locate required Dynamsoft `node` dependencies by pointing to the location of the resources on your web server. The library also uses `scannerViewConfig.cameraEnhancerUIPath` similarly to set the path for the HTML UI template of the `ScannerView`. Later steps will place both the `node` dependencies and the HTML template in the local `dist` directory. Therefore, set `engineResourcePaths` in the MDS constructor to point to the local `dist` directory (along with setting your license key, and all other configurations):
213213
214214
```javascript
215215
const documentScanner = new Dynamsoft.DocumentScanner({
@@ -230,11 +230,11 @@ const documentScanner = new Dynamsoft.DocumentScanner({
230230
231231
API Reference:
232232
233-
- [`DocumentScanner()`]({{ site.api }}document-scanner.html#documentscanner)
234-
- [`DocumentScannerConfig`]({{ site.api }}document-scanner.html#documentscannerconfig)
235-
- [`DocumentScannerViewConfig`]({{ site.api }}document-scanner.html#documentscannerviewconfig)
236-
- [`engineResourcePaths`]({{ site.api }}document-scanner.html#engineresourcepaths)
237-
- [`cameraEnhancerUIPath`]({{ site.api }}document-scanner.html#cameraenhanceruipaths)
233+
- [`DocumentScanner()`]({{ site.api }}index.html#documentscanner)
234+
- [`DocumentScannerConfig`]({{ site.api }}index.html#documentscannerconfig)
235+
- [`DocumentScannerViewConfig`]({{ site.api }}index.html#documentscannerviewconfig)
236+
- [`engineResourcePaths`]({{ site.api }}index.html#engineresourcepaths)
237+
- [`cameraEnhancerUIPath`]({{ site.api }}index.html#cameraenhanceruipaths)
238238
239239
#### Modify the Build Script
240240
@@ -351,7 +351,7 @@ const documentScanner = new Dynamsoft.DocumentScanner({
351351
352352
API Reference:
353353
354-
- [`DocumentScanner()`]({{ site.api }}document-scanner.html#documentscanner)
354+
- [`DocumentScanner()`]({{ site.api }}index.html#documentscanner)
355355
356356
This step creates the **MDS** UI, which occupies the entire visible area of the browser window by default when launched. If needed, you can specify a container to restrict the UI's size. For more details, refer to [Confine DocumentScanner UI to a Specific Container](#example-1-confine-documentscanner-ui-to-a-specific-container).
357357
@@ -366,7 +366,7 @@ const result = await documentScanner.launch();
366366
367367
API Reference:
368368
369-
- [`launch()`]({{ site.api }}document-scanner.html#launch)
369+
- [`launch()`]({{ site.api }}index.html#launch)
370370
371371
This step launches the user into the document scanning workflow, beginning in the `DocumentScannerView`, where they can scan a document using one of three methods:
372372
@@ -394,7 +394,7 @@ The workflow returns a scanned image object of type `CorrectedImageResult`. To d
394394
395395
API Reference:
396396
397-
- [`DocumentResult`]({{ site.api }}document-scanner.html#documentresult)
397+
- [`DocumentResult`]({{ site.api }}index.html#documentresult)
398398
399399
The following code clears the result container and displays the scanned result as a canvas:
400400
@@ -414,7 +414,7 @@ This section builds on the Hello World sample to demonstrate how to configure **
414414
415415
### `DocumentScannerConfig` Overview
416416
417-
[`DocumentScannerConfig`]({{ site.api }}document-scanner.html#documentscannerconfig) is the primary configuration object for customizing **MDS**. It includes the following properties:
417+
[`DocumentScannerConfig`]({{ site.api }}index.html#documentscannerconfig) is the primary configuration object for customizing **MDS**. It includes the following properties:
418418
419419
1. `license`: The license key.
420420
2. `container`: The HTML container for the entire workflow. If not specified (like in the Hello World Sample), one is created automatically.
@@ -493,8 +493,8 @@ const documentScanner = new Dynamsoft.DocumentScanner({
493493
494494
API Reference:
495495
496-
- [`DocumentScanner()`]({{ site.api }}document-scanner.html#documentscanner)
497-
- [`DocumentScannerConfig`]({{ site.api }}document-scanner.html#documentscannerconfig)
496+
- [`DocumentScanner()`]({{ site.api }}index.html#documentscanner)
497+
- [`DocumentScannerConfig`]({{ site.api }}index.html#documentscannerconfig)
498498
499499
#### Example 2: Only Show `DocumentScannerView`
500500
@@ -510,8 +510,8 @@ const documentScanner = new Dynamsoft.DocumentScanner({
510510
511511
API Reference:
512512
513-
- [`DocumentScanner()`]({{ site.api }}document-scanner.html#documentscanner)
514-
- [`DocumentScannerConfig`]({{ site.api }}document-scanner.html#documentscannerconfig)
513+
- [`DocumentScanner()`]({{ site.api }}index.html#documentscanner)
514+
- [`DocumentScannerConfig`]({{ site.api }}index.html#documentscannerconfig)
515515
516516
#### Example 3: Specify Individual View Containers
517517
@@ -546,8 +546,8 @@ const documentScanner = new Dynamsoft.DocumentScanner({
546546
547547
API Reference:
548548
549-
- [`DocumentScanner()`]({{ site.api }}document-scanner.html#documentscanner)
550-
- [`DocumentScannerConfig`]({{ site.api }}document-scanner.html#documentscannerconfig)
549+
- [`DocumentScanner()`]({{ site.api }}index.html#documentscanner)
550+
- [`DocumentScannerConfig`]({{ site.api }}index.html#documentscannerconfig)
551551
552552
#### Example 4: Scan Static Image Directly
553553
@@ -614,9 +614,9 @@ const documentScanner = new Dynamsoft.DocumentScanner({
614614
615615
API Reference:
616616
617-
- [`DocumentScanner()`]({{ site.api }}document-scanner.html#documentscanner)
618-
- [`DocumentScannerConfig`]({{ site.api }}document-scanner.html#documentscannerconfig)
619-
- [`DocumentScannerViewConfig`]({{ site.api }}document-scanner.html#documentscannerviewconfig)
617+
- [`DocumentScanner()`]({{ site.api }}index.html#documentscanner)
618+
- [`DocumentScannerConfig`]({{ site.api }}index.html#documentscannerconfig)
619+
- [`DocumentScannerViewConfig`]({{ site.api }}index.html#documentscannerviewconfig)
620620
621621
### View-Based Customization
622622
@@ -671,9 +671,9 @@ This file defines the UI for `DocumentScannerView`. However, since files on the
671671
672672
API Reference:
673673
674-
- [`DocumentScanner()`]({{ site.api }}document-scanner.html#documentscanner)
675-
- [`DocumentScannerConfig`]({{ site.api }}document-scanner.html#documentscannerconfig)
676-
- [`DocumentScannerViewConfig`]({{ site.api }}document-scanner.html#documentscannerviewconfig)
674+
- [`DocumentScanner()`]({{ site.api }}index.html#documentscanner)
675+
- [`DocumentScannerConfig`]({{ site.api }}index.html#documentscannerconfig)
676+
- [`DocumentScannerViewConfig`]({{ site.api }}index.html#documentscannerviewconfig)
677677
678678
##### Customizing the Scanning Region
679679
@@ -695,7 +695,7 @@ interface ScanRegion {
695695
696696
API Reference:
697697
698-
[`ScanRegion`]({{ site.api }}document-scanner.html#scanregion)
698+
[`ScanRegion`]({{ site.api }}index.html#scanregion)
699699
700700
Here is how the scanning region is set:
701701
@@ -769,9 +769,9 @@ const documentScanner = new Dynamsoft.DocumentScanner({
769769
770770
API Reference:
771771
772-
- [`DocumentScanner()`]({{ site.api }}document-scanner.html#documentscanner)
773-
- [`DocumentScannerConfig`]({{ site.api }}document-scanner.html#documentscannerconfig)
774-
- [`DocumentCorrectionViewConfig`]({{ site.api }}document-scanner.html#documentcorrectionviewconfig)
772+
- [`DocumentScanner()`]({{ site.api }}index.html#documentscanner)
773+
- [`DocumentScannerConfig`]({{ site.api }}index.html#documentscannerconfig)
774+
- [`DocumentCorrectionViewConfig`]({{ site.api }}index.html#documentcorrectionviewconfig)
775775
776776
##### Customizing Apply Button Callback
777777
@@ -791,9 +791,9 @@ const documentScanner = new Dynamsoft.DocumentScanner({
791791
792792
API Reference:
793793
794-
- [`DocumentScanner()`]({{ site.api }}document-scanner.html#documentscanner)
795-
- [`DocumentScannerConfig`]({{ site.api }}document-scanner.html#documentscannerconfig)
796-
- [`DocumentCorrectionViewConfig`]({{ site.api }}document-scanner.html#documentcorrectionviewconfig)
794+
- [`DocumentScanner()`]({{ site.api }}index.html#documentscanner)
795+
- [`DocumentScannerConfig`]({{ site.api }}index.html#documentscannerconfig)
796+
- [`DocumentCorrectionViewConfig`]({{ site.api }}index.html#documentcorrectionviewconfig)
797797
798798
#### `DocumentResultView` Configuration
799799
@@ -847,9 +847,9 @@ const documentScanner = new Dynamsoft.DocumentScanner({
847847
848848
API Reference:
849849
850-
- [`DocumentScanner()`]({{ site.api }}document-scanner.html#documentscanner)
851-
- [`DocumentScannerConfig`]({{ site.api }}document-scanner.html#documentscannerconfig)
852-
- [`DocumentResultViewConfig`]({{ site.api }}document-scanner.html#documentresultviewconfig)
850+
- [`DocumentScanner()`]({{ site.api }}index.html#documentscanner)
851+
- [`DocumentScannerConfig`]({{ site.api }}index.html#documentscannerconfig)
852+
- [`DocumentResultViewConfig`]({{ site.api }}index.html#documentresultviewconfig)
853853
854854
##### Customizing the "Done" Button Callback
855855
@@ -869,9 +869,9 @@ const documentScanner = new Dynamsoft.DocumentScanner({
869869
870870
API Reference:
871871
872-
- [`DocumentScanner()`]({{ site.api }}document-scanner.html#documentscanner)
873-
- [`DocumentScannerConfig`]({{ site.api }}document-scanner.html#documentscannerconfig)
874-
- [`DocumentResultViewConfig`]({{ site.api }}document-scanner.html#documentresultviewconfig)
872+
- [`DocumentScanner()`]({{ site.api }}index.html#documentscanner)
873+
- [`DocumentScannerConfig`]({{ site.api }}index.html#documentscannerconfig)
874+
- [`DocumentResultViewConfig`]({{ site.api }}index.html#documentresultviewconfig)
875875
876876
##### Customizing the "Upload" Button
877877
@@ -907,9 +907,9 @@ const documentScanner = new Dynamsoft.DocumentScanner({
907907
908908
API Reference:
909909
910-
- [`DocumentScanner()`]({{ site.api }}document-scanner.html#documentscanner)
911-
- [`DocumentScannerConfig`]({{ site.api }}document-scanner.html#documentscannerconfig)
912-
- [`DocumentResultViewConfig`]({{ site.api }}document-scanner.html#documentresultviewconfig)
910+
- [`DocumentScanner()`]({{ site.api }}index.html#documentscanner)
911+
- [`DocumentScannerConfig`]({{ site.api }}index.html#documentscannerconfig)
912+
- [`DocumentResultViewConfig`]({{ site.api }}index.html#documentresultviewconfig)
913913
914914
## Next Step
915915

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ description: Mobile Document Scanner JS Edition Documentation Homepage
1414
- [Customization Guide]({{ site.code-gallery }}mobile-web-capture/customization-guide.html)
1515
- [API Reference]({{ site.code-gallery }}mobile-web-capture/api.html)
1616
- [Frameworks]({{ site.code-gallery }}frameworks.html)
17-
- [API References]({{ site.api }}index.html)
17+
- [API Reference]({{ site.api }}index.html)
1818
- [Release notes]({{ site.release-notes }}index.html)

0 commit comments

Comments
 (0)