Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 0 additions & 59 deletions .editorconfig

This file was deleted.

12 changes: 4 additions & 8 deletions .github/workflows/full-site-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ jobs:
server: ${{ secrets.FTP_DYNAMSOFT_LOCAL_SERVER }}
username: ${{ secrets.FTP_DYNAMSOFT_LOCAL_USER }}
password: ${{ secrets.FTP_DYNAMSOFT_LOCAL_PASSWORD }}
port: 21
port: 21
local-dir: /home/ubuntu/MWCDoc/_site/
server-dir: /www.dynamsoft.com/mobile-web-capture/docs/

server-dir: /www.dynamsoft.com/mobile-web-capture/docs/

Build-Preview:
if: ${{ github.ref == 'refs/heads/preview' }}
Expand All @@ -57,8 +56,7 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
#- uses: actions/checkout@v2



# Runs a set of commands using the runners shell
- name: Build the site
run: |
Expand All @@ -72,15 +70,13 @@ jobs:
sed -i -e "1,3s/blob\/master$/blob\/preview/" \
-e "1,3s/blob\/main$/blob\/preview/" /home/ubuntu/MWCDocPreview/_config.yml
cd MWCDocPreview && bundle exec jekyll build


- name: Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_TEST_SITE_SERVER }}
username: ${{ secrets.FTP_TEST_SITE_USER }}
password: ${{ secrets.FTP_TEST_SITE_PASSWORD }}
port: 7500
port: 7500
local-dir: /home/ubuntu/MWCDocPreview/_site/
server-dir: /www.dynamsoft.com/mobile-web-capture/docs/

12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push events but only for the master branch
# Triggers the workflow on push events to the main and preview branches
push:
branches:
- main
# - preview
branches:
- main
- preview

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -26,8 +26,8 @@ jobs:

Build-Preview:
if: ${{ github.ref == 'refs/heads/preview' }}
uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-testing.yml@preview
uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-testing.yml@main
with:
doc-repo: mobile-web-capture-docs
doc-url: mobile-web-capture/docs/
secrets: inherit
secrets: inherit
41 changes: 37 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
################################################################################
# 此 .gitignore 文件已由 Microsoft(R) Visual Studio 自动创建。
################################################################################
# Layout templates
_layouts/

/.vs
# Assets
assets/font-face/
assets/img-icon/
assets/js/**
!assets/js/setLatestVersion.js
assets/scripts/
assets/css/

# Includes
_includes/productNav/
_includes/auto-version-list.html
_includes/head.html
_includes/liquid_autoGenerateHistoryList.html
_includes/liquid_breadcrumb.html
_includes/liquid_generateFullTree.html
_includes/liquid_searchVersionTreeFile.html
_includes/livehelp.html
_includes/main-page-head.html
_includes/page_footer.html
_includes/page_header.html
_includes/productNav_OLD.html
_includes/productNav.html
_includes/search-input.html
_includes/trialLicense.html

# Plugins
_plugins/

# Site resources
_site/

sitemap.xml
Hide_Tree_Page.md
Gemfile.lock
Gemfile
1 change: 0 additions & 1 deletion .vscode/settings.json

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Mobile-Web-Capture-Docs
# Mobile-Web-Capture-Docs
91 changes: 45 additions & 46 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,45 @@
repository: dynamsoft-docs/mobile-web-capture-docs
repositoryUrl: https://github.com/dynamsoft-docs/mobile-web-capture-docs/blob/main
docFullPath: https://www.dynamsoft.com/mobile-web-capture/docs
firstLevelUrl: /mobile-web-capture/docs
docHomePage: /mobile-web-capture/docs/introduction/

introduction: /mobile-web-capture/docs/introduction/
gettingstarted: /mobile-web-capture/docs/gettingstarted/
codegallery: /mobile-web-capture/docs/codegallery/
api: /mobile-web-capture/docs/api/

guides: /mobile-web-capture/docs/guides/


releasenotes: /mobile-web-capture/docs/releasenotes/

useVersionTree: true

assets: /mobile-web-capture/docs/assets/
edit_icon: /mobile-web-capture/docs/assets/img-icon/edit-icon.png
smile_icon: /mobile-web-capture/docs/assets/img-icon/icon-smile.png
sad_icon: /mobile-web-capture/docs/assets/img-icon/icon-sad.png

baseurl: "/mobile-web-capture/docs"

download: "/mobile-web-capture/downloads/"

plugins:
- jemoji
- jekyll-sitemap


defaults:
- scope:
path: ""
values:
layout: "default-layout"
noTitleIndex: true
needAutoGenerateSidebar: true
needGenerateH3Content: true
- scope:
path: "Hide_Tree_Page.html"
values:
sitemap: false

url: "https://www.dynamsoft.com" # sitemap root
repository: dynamsoft-docs/mobile-web-capture-docs
repositoryUrl: https://github.com/dynamsoft-docs/mobile-web-capture-docs/blob/main
docFullPath: https://www.dynamsoft.com/mobile-web-capture/docs
firstLevelUrl: /mobile-web-capture/docs
docHomePage: /mobile-web-capture/docs/introduction/

introduction: /mobile-web-capture/docs/introduction/
gettingstarted: /mobile-web-capture/docs/gettingstarted/
codegallery: /mobile-web-capture/docs/codegallery/
code-gallery: /mobile-web-capture/docs/code-gallery/
api: /mobile-web-capture/docs/api/

guides: /mobile-web-capture/docs/guides/

release-notes: /mobile-web-capture/docs/release-notes/

useVersionTree: true

assets: /mobile-web-capture/docs/assets/
edit_icon: /mobile-web-capture/docs/assets/img-icon/edit-icon.png
smile_icon: /mobile-web-capture/docs/assets/img-icon/icon-smile.png
sad_icon: /mobile-web-capture/docs/assets/img-icon/icon-sad.png

baseurl: "/mobile-web-capture/docs"

download: "/mobile-web-capture/downloads/"

plugins:
- jemoji
- jekyll-sitemap

defaults:
- scope:
path: ""
values:
layout: "default-layout"
noTitleIndex: true
needAutoGenerateSidebar: true
needGenerateH3Content: true
- scope:
path: "Hide_Tree_Page.html"
values:
sitemap: false

url: "https://www.dynamsoft.com" # sitemap root
5 changes: 3 additions & 2 deletions _data/full_tree.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
tree_file_list:
- sidelist-introduction.html
- sidelist-guides.html
- sidelist-code-gallery.html
- sidelist-api.html
- sidelist-releasenotes.html
- sidelist-release-notes.html
- sidelist-full-tree.html
- sidelist-apis-v2.0.html
- sidelist-full-tree.v2.0.html
- sidelist-introduction-v2.0.html
- sidelist-introduction-v2.0.html
2 changes: 1 addition & 1 deletion _data/product_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version_info_list:
- value: 2.0
- value: 1.x
child:
- 1.1
- 1.1
2 changes: 1 addition & 1 deletion _includes/sidelist-api.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
<li><a href="{{ site.api }}document-scanner.html" class="otherLinkColour">Document Scanner</a></li>
<li><a href="{{ site.api }}mobile-web-capture.html" class="otherLinkColour">Mobile Web Capture</a></li>
</ul>
</li>
</li>
2 changes: 1 addition & 1 deletion _includes/sidelist-apis-v2.0.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<li><a href="{{ site.api }}relatedapi.html" class="otherLinkColour">Related API Reference</a></li>
<li><a href="{{ site.api }}relatedapi.html" class="otherLinkColour">Related API Reference</a></li>
5 changes: 5 additions & 0 deletions _includes/sidelist-code-gallery.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<li><a class="otherLinkColour">Code Gallery</a>
<ul>
<li><a href="{{ site.code-gallery }}frameworks.html" class="otherLinkColour">Frameworks</a></li>
</ul>
</li>
2 changes: 1 addition & 1 deletion _includes/sidelist-codegallery-v1.1.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
</li>
{% comment %} <li><a href="{{ site.codegallery }}demo/index.html" class="otherLinkColour">Demo</a></li> {% endcomment %}
</ul>
</li>
</li>
2 changes: 1 addition & 1 deletion _includes/sidelist-codegallery-v2.0.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
</li>
{% comment %} <li><a href="{{ site.codegallery }}demo/index.html" class="otherLinkColour">Demo</a></li> {% endcomment %}
</ul>
</li>
</li>
2 changes: 1 addition & 1 deletion _includes/sidelist-codegallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
</li>
{% comment %} <li><a href="{{ site.codegallery }}demo/index.html" class="otherLinkColour">Demo</a></li> {% endcomment %}
</ul>
</li>
</li>
10 changes: 5 additions & 5 deletions _includes/sidelist-full-tree-v2.0.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-introduction.html" -%}
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-gettingstarted.html" -%}
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-codegallery.html" -%}
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-apis.html" -%}
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-releasenotes.html" -%}
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-introduction-v2.0.html" -%}
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-gettingstarted-v2.0.html" -%}
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-codegallery-v2.0.html" -%}
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-apis-v2.0.html" -%}
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-release-notes-v2.0.html" -%}
6 changes: 2 additions & 4 deletions _includes/sidelist-full-tree.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-introduction.html" -%}
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-guides.html" -%}
<!-- {%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-gettingstarted.html" -%} -->
<!-- {%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-codegallery.html" -%} -->
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-code-gallery.html" -%}
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-api.html" -%}
<!-- {%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-apis.html" -%} -->
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-releasenotes.html" -%}
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-release-notes.html" -%}
6 changes: 3 additions & 3 deletions _includes/sidelist-gettingstarted-v1.1.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ul>
<li><a href="{{ site.gettingstarted }}sys_requirement.html" class="otherLinkColour">System requirements</a></li>
<li><a href="{{ site.gettingstarted }}license.html" class="otherLinkColour">License</a></li>
<li><a href="{{ site.gettingstarted }}add_dependency.html" class="otherLinkColour">Adding the dependency</a></li>
<li><a href="{{ site.gettingstarted }}helloworld-v1.1.html" class="otherLinkColour">Creating HelloWorld</a></li>
<li><a href="{{ site.gettingstarted }}add_dependency.html" class="otherLinkColour">Adding the dependency</a></li>
<li><a href="{{ site.gettingstarted }}helloworld-v1.1.html" class="otherLinkColour">Creating HelloWorld</a></li>
</ul>
</li>
</li>
6 changes: 3 additions & 3 deletions _includes/sidelist-gettingstarted-v2.0.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<ul>
<li><a href="{{ site.gettingstarted }}sys_requirement.html" class="otherLinkColour">System Requirements</a></li>
<li><a href="{{ site.gettingstarted }}license.html" class="otherLinkColour">License</a></li>
<li><a href="{{ site.gettingstarted }}add_dependency.html" class="otherLinkColour">Adding the Dependency</a></li>
<li><a href="{{ site.gettingstarted }}add_dependency.html" class="otherLinkColour">Adding the Dependency</a></li>
<li><a href="{{ site.gettingstarted }}helloworld-singlepage.html" class="otherLinkColour">Creating HelloWorld - Single Page</a></li>
<li><a href="{{ site.gettingstarted }}helloworld-continuousmode.html" class="otherLinkColour">Creating HelloWorld - Continuous Mode</a></li>
<li><a href="{{ site.gettingstarted }}helloworld-continuousmode.html" class="otherLinkColour">Creating HelloWorld - Continuous Mode</a></li>
</ul>
</li>
</li>
6 changes: 3 additions & 3 deletions _includes/sidelist-gettingstarted.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<ul>
<li><a href="{{ site.gettingstarted }}sys_requirement.html" class="otherLinkColour">System Requirements</a></li>
<li><a href="{{ site.gettingstarted }}license.html" class="otherLinkColour">License</a></li>
<li><a href="{{ site.gettingstarted }}add_dependency.html" class="otherLinkColour">Adding the Dependency</a></li>
<li><a href="{{ site.gettingstarted }}add_dependency.html" class="otherLinkColour">Adding the Dependency</a></li>
<li><a href="{{ site.gettingstarted }}helloworld-singlepage.html" class="otherLinkColour">Creating HelloWorld - Single Page</a></li>
<li><a href="{{ site.gettingstarted }}helloworld-continuousmode.html" class="otherLinkColour">Creating HelloWorld - Continuous Mode</a></li>
<li><a href="{{ site.gettingstarted }}helloworld-continuousmode.html" class="otherLinkColour">Creating HelloWorld - Continuous Mode</a></li>
</ul>
</li>
</li>
Loading