Skip to content

Commit 1e904bd

Browse files
authored
fix: links and redirect rules (#110)
1 parent 392b956 commit 1e904bd

File tree

7 files changed

+22
-22
lines changed

7 files changed

+22
-22
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Mobile-Web-Capture-Docs
1+
# Mobile-Document-Scanner-Docs

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
repository: dynamsoft-docs/mobile-web-capture-docs
2-
repositoryUrl: https://github.com/dynamsoft-docs/mobile-web-capture-docs/blob/main
1+
repository: dynamsoft-docs/mobile-document-scanner-docs
2+
repositoryUrl: https://github.com/dynamsoft-docs/mobile-document-scanner-docs/blob/main
33
docFullPath: https://www.dynamsoft.com/mobile-document-scanner/docs/web
44
firstLevelUrl: /mobile-document-scanner/docs/web
55
docHomePage: /mobile-document-scanner/docs/web/introduction/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ interface DocumentViewConfig {
305305

306306
By default, the `DocumentView` displays the following when empty:
307307

308-
![Empty Document View](https://www.dynamsoft.com/mobile-web-capture/docs/assets/imgs/empty-document-view.png)
308+
![Empty Document View]({{ site.assets }}imgs/empty-document-view.png)
309309

310310
You can customize its appearance using the [`emptyContentConfig`](#emptycontentconfig) property.
311311

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: Mobile Document Scanner JS Edition User Guide
1111
# How to Customize Mobile Web Capture
1212

1313
> [!TIP]
14-
> Prerequisites: read the [MWC Getting Started Guide]({{ site.guide }}mobile-web-capture/index.html) before proceeding.
14+
> Prerequisites: read the [MWC Getting Started Guide]({{ site.code-gallery }}mobile-web-capture/index.html) before proceeding.
1515
1616
This guide expands on the **Hello World** sample from the **MWC Getting Started Guide** and explores the available customization options.
1717

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

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

152152
### Scan Directly to Document
153153

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Alternatively, the script can be referenced from a CDN:
186186
**MWC** wraps all its dependency scripts, so a **MWC** project only needs to include **MWC** itself as a single script. No additional dependency scripts are required.
187187
188188
> [!IMPORTANT]
189-
> Even if you reference the script locally, supporting resources like `.wasm` engine files are still loaded from the CDN at runtime. If you require a **fully offline setup**, follow the instructions in [Self-Hosting Resource File]({{ site.guide }}mobile-web-capture/customization-guide.html#self-hosting-resource-files).
189+
> Even if you reference the script locally, supporting resources like `.wasm` engine files are still loaded from the CDN at runtime. If you require a **fully offline setup**, follow the instructions in [Self-Hosting Resource File]({{ site.code-gallery }}mobile-web-capture/customization-guide.html#self-hosting-resource-files).
190190
191191
### Instantiate MWC
192192
@@ -197,7 +197,7 @@ const mobileWebCapture = new Dynamsoft.MobileWebCapture({
197197
});
198198
```
199199
200-
API Reference: [`MobileWebCapture()`](https://www.dynamsoft.com/mobile-web-capture/docs/api/mobile-web-capture.html#mobilewebcapture)
200+
API Reference: [`MobileWebCapture()`]({{ site.code-gallery }}}mobile-web-capture/api.html#mobilewebcapture)
201201
202202
This step creates the **MWC** UI, which, when launched, occupies the entire visible area of the browser window by default. If needed, you can specify a container to restrict the UI's size. For more details, refer to [Specify the UI Container]({{ site.code-gallery }}mobile-web-capture/customization-guide.html#example-1-specify-the-ui-container).
203203
@@ -211,7 +211,7 @@ const fileName = `New_Document_${Date.now().toString().slice(-5)}`; // Generates
211211
await mobileWebCapture.launch(fileName);
212212
```
213213
214-
API Reference: [`launch()`](https://www.dynamsoft.com/mobile-web-capture/docs/api/mobile-web-capture.html#launch)
214+
API Reference: [`launch()`]({{ site.code-gallery }}}mobile-web-capture/api.html#launch)
215215
216216
This step launches the UI, starting in **`DocumentView`**, where the user can begin building a document in two ways:
217217

release-notes/mobile-web-capture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The most notable improvement in this version is the pluggable scanner feature. T
1919
### Features
2020

2121
1. Add Pluggable Scanner feature which integrates any scanner satisfying the following:
22-
1. Implements the [`MWCScanner`](https://www.dynamsoft.com/mobile-web-capture/docs/api/mobile-web-capture.html#mwcscanner) interface
22+
1. Implements the [`MWCScanner`]({{ site.code-gallery }}}mobile-web-capture/api.html#mwcscanner) interface
2323
2. Implements a `launch()` method to return a result that includes:
2424
1. `_imageData` with a `toBlob()` function
2525
2. `imageData: true`

web.config

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,44 +21,44 @@
2121
<action type="Rewrite" url="{R:1}.webp" />
2222
<conditions>
2323
<add input="{HTTP_ACCEPT}" pattern="image/webp" />
24-
<add input="{DOCUMENT_ROOT}/mobile-web-capture/docs/{R:1}.webp" matchType="IsFile" />
24+
<add input="{DOCUMENT_ROOT}/mobile-document-scanner/docs/web/{R:1}.webp" matchType="IsFile" />
2525
</conditions>
2626
</rule>
2727

28-
<rule name="Redirec rule 1" enabled="true" patternSyntax="ECMAScript">
28+
<rule name="Redirect about page" enabled="true" patternSyntax="ECMAScript">
2929
<match url="about/index.html" ignoreCase="true" negate="false" />
3030
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
31-
<action type="Redirect" url="https://www.dynamsoft.com/mobile-web-capture/docs/introduction/" appendQueryString="false" logRewrittenUrl="false" />
31+
<action type="Redirect" url="https://www.dynamsoft.com/mobile-document-scanner/docs/web/guide/index.html" appendQueryString="false" logRewrittenUrl="false" />
3232
</rule>
33-
<rule name="Redirec hello world page" enabled="true" patternSyntax="ECMAScript">
33+
<rule name="Redirect hello world" enabled="true" patternSyntax="ECMAScript">
3434
<match url="gettingstarted/helloworld.html" ignoreCase="true" negate="false" />
3535
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
36-
<action type="Redirect" url="https://www.dynamsoft.com/mobile-web-capture/docs/gettingstarted/helloworld-continuousmode.html" appendQueryString="false" logRewrittenUrl="false" />
36+
<action type="Redirect" url="https://www.dynamsoft.com/mobile-document-scanner/docs/web/guide/index.html" appendQueryString="false" logRewrittenUrl="false" />
3737
</rule>
38-
<rule name="Redirect hello world page" enabled="true" patternSyntax="ECMAScript">
38+
<rule name="Redirect MWC release notes" enabled="true" patternSyntax="ECMAScript">
3939
<match url="releasenotes/index.html" ignoreCase="true" negate="false" />
4040
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
41-
<action type="Redirect" url="https://www.dynamsoft.com/mobile-web-capture/docs/release-notes/mobile-web-capture.html" appendQueryString="false" logRewrittenUrl="false" />
41+
<action type="Redirect" url="https://www.dynamsoft.com/mobile-document-scanner/docs/web/release-notes/index.html" appendQueryString="false" logRewrittenUrl="false" />
4242
</rule>
4343
<rule name="Redirect guide pages" enabled="true" patternSyntax="ECMAScript">
4444
<match url="^(.*/guides/)(.*)$" ignoreCase="true" negate="false" />
4545
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
46-
<action type="Redirect" url="https://www.dynamsoft.com/mobile-web-capture/docs/guide/{R:2}" appendQueryString="false" logRewrittenUrl="false" />
46+
<action type="Redirect" url="https://www.dynamsoft.com/mobile-document-scanner/docs/web/guide/{R:2}" appendQueryString="false" logRewrittenUrl="false" />
4747
</rule>
4848
<rule name="Redirect MWC guide" enabled="true" patternSyntax="ECMAScript">
4949
<match url="guides/mobile-web-capture.html" ignoreCase="true" negate="false" />
5050
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
51-
<action type="Redirect" url="https://www.dynamsoft.com/code-gallery/mobile-web-capture/index.html" appendQueryString="false" logRewrittenUrl="false" />
51+
<action type="Redirect" url="https://www.dynamsoft.com//mobile-document-scanner/docs/web/code-gallery/mobile-web-capture/index.html" appendQueryString="false" logRewrittenUrl="false" />
5252
</rule>
5353
<rule name="Redirect MWC customization guide" enabled="true" patternSyntax="ECMAScript">
5454
<match url="guides/customization-guide.html" ignoreCase="true" negate="false" />
5555
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
56-
<action type="Redirect" url="https://www.dynamsoft.com/code-gallery/mobile-web-capture/customization-guide.html" appendQueryString="false" logRewrittenUrl="false" />
56+
<action type="Redirect" url="https://www.dynamsoft.com//mobile-document-scanner/docs/web/code-gallery/mobile-web-capture/customization-guide.html" appendQueryString="false" logRewrittenUrl="false" />
5757
</rule>
5858
<rule name="Redirect MWC API Reference" enabled="true" patternSyntax="ECMAScript">
5959
<match url="api/mobile-web-capture.html" ignoreCase="true" negate="false" />
6060
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
61-
<action type="Redirect" url="https://www.dynamsoft.com/code-gallery/mobile-web-capture/api.html" appendQueryString="false" logRewrittenUrl="false" />
61+
<action type="Redirect" url="https://www.dynamsoft.com//mobile-document-scanner/docs/web/code-gallery/mobile-web-capture/api.html" appendQueryString="false" logRewrittenUrl="false" />
6262
</rule>
6363
</rules>
6464
</rewrite>

0 commit comments

Comments
 (0)