Skip to content

Commit 116cfe0

Browse files
authored
Merge branch 'dynamsoft-docs:preview' into preview
2 parents 3681bfc + f933104 commit 116cfe0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+3737
-3840
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ jobs:
5050
run: |
5151
cd /home/ubuntu
5252
[ ! -d web-twain-docs-preview ] && git clone --depth 1 --branch preview https://github.com/dynamsoft-docs/web-twain-docs.git web-twain-docs-preview
53-
[ ! -d Docs-Template-Repo-preview ] && git clone --depth 1 --branch preview https://github.com/dynamsoft-docs/Docs-Template-Repo.git Docs-Template-Repo-preview
53+
[ ! -d Docs-Template-Repo-Preview ] && git clone --depth 1 --branch preview https://github.com/dynamsoft-docs/Docs-Template-Repo.git Docs-Template-Repo-Preview
5454
[ ! -d DWTDocPreview ] && mkdir -p DWTDocPreview
5555
cd web-twain-docs-preview && git pull && cd .. && cp -rfp ./web-twain-docs-preview/* ./DWTDocPreview/
56-
cd Docs-Template-Repo-preview && git pull && cd .. && cp -rfp ./Docs-Template-Repo-preview/* ./DWTDocPreview/
56+
cd Docs-Template-Repo-Preview && git pull && cd .. && cp -rfp ./Docs-Template-Repo-Preview/* ./DWTDocPreview/
5757
sed -i -e "1,3s/blob\/master$/blob\/preview/" \
5858
-e "1,3s/blob\/main$/blob\/preview/" /home/ubuntu/DWTDocPreview/_config.yml
5959
cd DWTDocPreview && bundle exec jekyll build --incremental

_config.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,36 @@ theme: jekyll-theme-cayman
3333

3434
useVersionTreeV2: true
3535

36+
webp:
37+
enabled: true
38+
# The quality of the webp conversion 0 to 100 (where 100 is least lossy)
39+
quality: 75
40+
# List of directories containing images to optimize, nested directories will only be checked if `nested` is true
41+
# By default the generator will search for a folder called `/img` under the site root and process all jpg, png and tiff image files found there.
42+
img_dir: ["/assets/img-icon", "/assets/imgs/"]
43+
# Whether to search in nested directories or not
44+
nested: true
45+
# add ".gif" to the format list to generate webp for animated gifs as well
46+
formats: [".jpeg", ".jpg", ".png", ".tiff"]
47+
# File extensions for animated gif files
48+
gifs: [".gif"]
49+
# Set to true to always regenerate existing webp files
50+
regenerate: false
51+
# Local path to the WebP utilities to use (relative or absolute)
52+
# Omit or leave as nil to use the utilities shipped with the gem, override only to use your local install
53+
# Eg : "/usr/local/bin/cwebp"
54+
webp_path: nil
55+
# List of files or directories to exclude
56+
# e.g. custom or hand generated webp conversion files
57+
exclude: []
58+
# append '.webp' to filename after original extension rather than replacing it.
59+
# Default transforms `image.png` to `image.webp`, while changing to true transforms `image.png` to `image.png.webp`
60+
append_ext: false
61+
62+
63+
3664
plugins:
3765
- jemoji
66+
- jekyll-webp
3867

3968
url: "https://www.dynamsoft.com" # sitemap root

_data/full_tree.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ tree_list:
4040
- name: Barcode Recognition
4141
path: /indepth/features/barcode.html
4242
- name: PDF Handling
43-
path: /indepth/features/pdf.html
43+
path: /indepth/features/pdf.html
44+
- name: Remote Scan
45+
path: https://www.dynamsoft.com/remote-scan/docs/introduction/
4446
- name: Samples and Demos
4547
childList:
4648
- name: Use Web TWAIN in Angular
@@ -49,8 +51,10 @@ tree_list:
4951
path: /indepth/development/react.html
5052
- name: Use Web TWAIN in Vue
5153
path: /indepth/development/vue.html
54+
- name: Use Web TWAIN in Vue 3
55+
path: /indepth/development/vue3.html
5256
- name: Simple Demo
53-
path: /getstarted/Helloworld.html
57+
path: https://www.dynamsoft.com/web-twain/resources/code-gallery/
5458
- name: API Reference
5559
path: /info/api/
5660
childList:
@@ -60,8 +64,8 @@ tree_list:
6064
path: /info/api/Dynamsoft_Enum.html
6165
- name: Interfaces
6266
path: /info/api/Interfaces.html
63-
- name: Device
64-
path: /info/api/Device.html
67+
#- name: Device
68+
# path: /info/api/Device.html
6569
- name: WebTwain_Scanner
6670
path: /info/api/WebTwain_Acquire.html
6771
- name: WebTwain_Buffer
@@ -76,8 +80,8 @@ tree_list:
7680
path: /info/api/WebTwain_Util.html
7781
- name: Addon_BarcodeReader
7882
path: /info/api/Addon_BarcodeReader.html
79-
- name: Addon_Camera
80-
path: /info/api/Addon_Camera.html
83+
# - name: Addon_Camera
84+
# path: /info/api/Addon_Camera.html
8185
- name: Addon_PDF
8286
path: /info/api/Addon_PDF.html
8387
- name: Addon_Webcam

_includes/version-list.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<span class="fullVersionHistory">
22
<ul class="fullVersionInfo">
3-
<li onclick="changeVersion(this)">Latest Version</li>
3+
<li onclick="changeVersion(this)">Latest Version (18.2)</li>
4+
<li onclick="changeVersion(this)">Version 18.1</li>
5+
<li onclick="changeVersion(this)">Version 18.0</li>
46
<li onclick="changeVersion(this)">Version 17.3</li>
57
<li onclick="changeVersion(this)">Version 17.2.1</li>
68
<li onclick="changeVersion(this)">Version 17.1.1</li>

_layouts/default-layout.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@
1515
</style>
1616

1717
<body>
18-
<div class="headWrapper">
18+
<header class="headWrapper">
1919
{%- include page_header.html -%}
20-
</div>
20+
</header>
2121
{%- include dwtNav.html -%}
2222
<div class="sideBarIcon"><i class="fa fa-list" style="margin-right: 5px;"></i> Table of contents</div>
23-
<div class="container" id="categoryMenuTree">
23+
<main class="container" id="categoryMenuTree">
2424
<div class="row">
25-
<div class="sideBar col-xs-12 col-md-3 hide-xs hide-sm">
25+
<aside class="sideBar col-xs-12 col-md-3 hide-xs hide-sm">
2626
<div id="sideBarCnt">
2727
<div class="docSearchPart" style="margin-top: 30px;">
2828
<input id="txtSearch" class="search" type="text">
2929
</div>
30-
<div class="mainPage">
30+
<nav class="mainPage">
3131
<ul id="fullTreeMenuListContainer" name="listLevel1">
3232
{%- assign treeList = site.data.full_tree.tree_list -%}
3333
{%- include liquid_generateFullTree.html treeList=treeList -%}
3434
</ul>
35-
</div>
35+
</nav>
3636
</div>
37-
</div>
38-
<div class="docContainer col-xs-12 col-md-9">
37+
</aside>
38+
<section class="docContainer col-xs-12 col-md-9">
3939
<div id="docHead" class = "head row hide-xs hide-sm">
4040
{%- include main-page-head.html -%}
4141
</div>
@@ -62,9 +62,9 @@
6262
<div class="lds-ring"><div></div><div></div><div></div><div></div></div>
6363
</div>
6464
</div>
65-
</div>
65+
</section>
6666
</div>
67-
</div>
67+
</main>
6868

6969
<div class="history list" id="categoryMenuTree_history">
7070
<div class="container">
@@ -75,14 +75,14 @@
7575
</div>
7676
</div>
7777

78-
<div id="footerWrapper">
78+
<footer id="footerWrapper">
7979
{%- include page_footer.html -%}
80-
</div>
81-
82-
<script type="text/javascript">anchors.add();</script>
83-
<script type="text/javascript">UrlReplace();</script>
80+
</footer>
8481

8582
<script type="text/javascript">
83+
$(".currentVersion").text("latest version (18.2)");
84+
anchors.add();
85+
UrlReplace();
8686
FullTreeMenuList('{{page.needAutoGenerateSidebar}}', '{{page.needGenerateH3Content}}');
8787
</script>
8888

about/hardware.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ permalink: /getstarted/hardware.html
1212

1313
Dynamic Web TWAIN's main feature is interacting with imaging devices like scanners and cameras. In this section, we'll look at the supported devices.
1414

15-
- [TWAIN Scanners](#twain-scanners)
16-
- [ICA Scanners](#ica-scanners)
17-
- [SANE Scanners](#sane-scanners)
18-
- [DirectShow Cameras](#directshow-cameras)
19-
- [MediaDevices Cameras](#mediadevices-cameras)
15+
- [Imaging Hardware](#imaging-hardware)
16+
- [TWAIN Scanners](#twain-scanners)
17+
- [Facts about TWAIN](#facts-about-twain)
18+
- [ICA Scanners](#ica-scanners)
19+
- [Facts about ICA](#facts-about-ica)
20+
- [SANE Scanners](#sane-scanners)
21+
- [Facts about SANE](#facts-about-sane)
22+
- [DirectShow Cameras](#directshow-cameras)
2023

2124
## TWAIN Scanners
2225

@@ -72,12 +75,4 @@ See more: <a href="{{site.faq}}how-to-test-if-your-device-is-SANE-compliant.html
7275

7376
`DirectShow Cameras` refer to the cameras which can be accessed via the [Microsoft DirectShow architecture](https://docs.microsoft.com/en-us/windows/win32/directshow/introduction-to-directshow). These cameras are either built into desktops / laptops or connected via USB.
7477

75-
See more: <a href="{{site.faq}}how-to-test-if-your-camera-is-DirectShow-compliant.html" target="_blank">Is my Camera DirectShow Compliant?</a>
76-
77-
## MediaDevices Cameras
78-
79-
`MediaDevices Cameras` refers to the cameras accessible via the [MediaDevices interface](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices). These cameras are either built into desktops/laptops/mobile devices, including phones and tablets, or connected via USB.
80-
81-
> `DirectShow Cameras` and `MediaDevices Cameras` could refer to the same devices which can be accessed either way.
82-
83-
See more: <a href="{{site.faq}}how-to-test-if-your-camera-is-MediaDevices-compliant.html" target="_blank">Is my Camera MediaDevices Compliant?</a>
78+
See more: <a href="{{site.faq}}how-to-test-if-your-camera-is-DirectShow-compliant.html" target="_blank">Is my Camera DirectShow Compliant?</a>

about/index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,19 @@ To ensure your data is safe, Dynamic Web TWAIN offers advanced security features
7070

7171
Learn more about [Dynamic Web TWAIN Security Features](https://www.dynamsoft.com/Products/Dynamic-Web-TWAIN-Security-Features.pdf)
7272

73+
74+
## Example Apps
75+
76+
Check out our Angular, React and Vue sample project on GitHub:
77+
78+
![](https://www.dynamsoft.com/web-twain/docs/assets/imgs/download.png) [Sample of dwt-angular-advanced](https://github.com/dynamsoft-dwt/dwt-angular-advanced)
79+
![](https://www.dynamsoft.com/web-twain/docs/assets/imgs/download.png) [Sample of dwt-react-advanced](https://github.com/Dynamsoft/web-twain-react-advanced)
80+
![](https://www.dynamsoft.com/web-twain/docs/assets/imgs/download.png) [Sample of dwt-vue-advanced](https://github.com/Dynamsoft/web-twain-vue-advanced)
81+
82+
## Live Online Demo
83+
84+
Click <a href="https://demo.dynamsoft.com/web-twain/" target="_blank">here</a> to go to online demo.
85+
7386
## Assumptions
7487

7588
These docs are meant for developers who are already familiar with HTML, CSS, JavaScript, and some related ideas, tools, etc.

assets/js/setLatestVersion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var versionNoteLatestVersion = "18.0"
1+
var versionNoteLatestVersion = "18.2"
22

33
$(function() {
44
$("#versionNoteLatestVersion").text(" (" + versionNoteLatestVersion + ")")

faq/HTTP-process-error.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ permalink: /faq/HTTP-process-error.html
1515

1616
### Symptom
1717

18-
When attempting to upload images using any of the HTTPUploadThroughPost\*\*\* methods the upload fails and you receive this error.
18+
When attempting to upload images using any of the HTTPUpload\*\*\* methods the upload fails and you receive this error.
1919

2020
### Cause
2121

faq/change-dynamsoft-service-certificate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ To replace the default certificate, the steps are:
2222
- Replace the old keys in `C:\Windows\SysWOW64\Dynamsoft\DynamsoftServicex64_17\cert`
2323
- Restart the service
2424

25-
NOTE: For v17.2 or higher versions, you can use the new API <a href="{{site.info}}api/Dynamsoft_WebTwainEnv.html#updatecert" target="_blank">UpdateCert</a> to automatically update the client side certificate.
25+
<!-- NOTE: For v17.2 or higher versions, you can use the new API <a href="{{site.info}}api/Dynamsoft_WebTwainEnv.html#updatecert" target="_blank">UpdateCert</a> to automatically update the client side certificate. -->

0 commit comments

Comments
 (0)