Skip to content

Commit 5ca7551

Browse files
Preview (#99)
* Chores and fixes (#97) * chore: remove VS Code config * chore: update .gitignore for local builds * chore: fix .gitignore * chore: fix .gitignore * remove ignored templates * chore: fix whitespace and EOF newline * chore: fix .gitignore * chore: remove extra .editorconfig * fix: release notes linking * fix: rename release notes sidelist * fix: rename release notes sidelist --------- Co-authored-by: Tom Kent <Tom-Dynamsoft@users.noreply.github.com> * Staging (#98) - Clean up repo - Fix GitHub actions - Fix formatting and syntax - Add MWC framework sample and link --------- Co-authored-by: Tom Kent <Tom-Dynamsoft@users.noreply.github.com> --------- Co-authored-by: Tom Kent <Tom-Dynamsoft@users.noreply.github.com>
1 parent ba8fc70 commit 5ca7551

File tree

62 files changed

+449
-889
lines changed

Some content is hidden

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

62 files changed

+449
-889
lines changed

.editorconfig

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

.github/workflows/full-site-build.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ jobs:
4343
server: ${{ secrets.FTP_DYNAMSOFT_LOCAL_SERVER }}
4444
username: ${{ secrets.FTP_DYNAMSOFT_LOCAL_USER }}
4545
password: ${{ secrets.FTP_DYNAMSOFT_LOCAL_PASSWORD }}
46-
port: 21
46+
port: 21
4747
local-dir: /home/ubuntu/MWCDoc/_site/
48-
server-dir: /www.dynamsoft.com/mobile-web-capture/docs/
49-
48+
server-dir: /www.dynamsoft.com/mobile-web-capture/docs/
5049

5150
Build-Preview:
5251
if: ${{ github.ref == 'refs/heads/preview' }}
@@ -57,8 +56,7 @@ jobs:
5756
steps:
5857
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
5958
#- uses: actions/checkout@v2
60-
61-
59+
6260
# Runs a set of commands using the runners shell
6361
- name: Build the site
6462
run: |
@@ -72,15 +70,13 @@ jobs:
7270
sed -i -e "1,3s/blob\/master$/blob\/preview/" \
7371
-e "1,3s/blob\/main$/blob\/preview/" /home/ubuntu/MWCDocPreview/_config.yml
7472
cd MWCDocPreview && bundle exec jekyll build
75-
7673
7774
- name: Sync files
7875
uses: SamKirkland/FTP-Deploy-Action@4.3.0
7976
with:
8077
server: ${{ secrets.FTP_TEST_SITE_SERVER }}
8178
username: ${{ secrets.FTP_TEST_SITE_USER }}
8279
password: ${{ secrets.FTP_TEST_SITE_PASSWORD }}
83-
port: 7500
80+
port: 7500
8481
local-dir: /home/ubuntu/MWCDocPreview/_site/
8582
server-dir: /www.dynamsoft.com/mobile-web-capture/docs/
86-

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ name: CI
44

55
# Controls when the workflow will run
66
on:
7-
# Triggers the workflow on push events but only for the master branch
7+
# Triggers the workflow on push events to the main and preview branches
88
push:
9-
branches:
10-
- main
11-
# - preview
9+
branches:
10+
- main
11+
- preview
1212

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

2727
Build-Preview:
2828
if: ${{ github.ref == 'refs/heads/preview' }}
29-
uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-testing.yml@preview
29+
uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-testing.yml@main
3030
with:
3131
doc-repo: mobile-web-capture-docs
3232
doc-url: mobile-web-capture/docs/
33-
secrets: inherit
33+
secrets: inherit

.gitignore

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
1-
################################################################################
2-
# 此 .gitignore 文件已由 Microsoft(R) Visual Studio 自动创建。
3-
################################################################################
1+
# Layout templates
2+
_layouts/
43

5-
/.vs
4+
# Assets
5+
assets/font-face/
6+
assets/img-icon/
7+
assets/js/**
8+
!assets/js/setLatestVersion.js
9+
assets/scripts/
10+
assets/css/
11+
12+
# Includes
13+
_includes/productNav/
14+
_includes/auto-version-list.html
15+
_includes/head.html
16+
_includes/liquid_autoGenerateHistoryList.html
17+
_includes/liquid_breadcrumb.html
18+
_includes/liquid_generateFullTree.html
19+
_includes/liquid_searchVersionTreeFile.html
20+
_includes/livehelp.html
21+
_includes/main-page-head.html
22+
_includes/page_footer.html
23+
_includes/page_header.html
24+
_includes/productNav_OLD.html
25+
_includes/productNav.html
26+
_includes/search-input.html
27+
_includes/trialLicense.html
28+
29+
# Plugins
30+
_plugins/
31+
32+
# Site resources
33+
_site/
34+
35+
sitemap.xml
36+
Hide_Tree_Page.md
37+
Gemfile.lock
38+
Gemfile

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

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-Web-Capture-Docs

_config.yml

Lines changed: 45 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,45 @@
1-
repository: dynamsoft-docs/mobile-web-capture-docs
2-
repositoryUrl: https://github.com/dynamsoft-docs/mobile-web-capture-docs/blob/main
3-
docFullPath: https://www.dynamsoft.com/mobile-web-capture/docs
4-
firstLevelUrl: /mobile-web-capture/docs
5-
docHomePage: /mobile-web-capture/docs/introduction/
6-
7-
introduction: /mobile-web-capture/docs/introduction/
8-
gettingstarted: /mobile-web-capture/docs/gettingstarted/
9-
codegallery: /mobile-web-capture/docs/codegallery/
10-
api: /mobile-web-capture/docs/api/
11-
12-
guides: /mobile-web-capture/docs/guides/
13-
14-
15-
releasenotes: /mobile-web-capture/docs/releasenotes/
16-
17-
useVersionTree: true
18-
19-
assets: /mobile-web-capture/docs/assets/
20-
edit_icon: /mobile-web-capture/docs/assets/img-icon/edit-icon.png
21-
smile_icon: /mobile-web-capture/docs/assets/img-icon/icon-smile.png
22-
sad_icon: /mobile-web-capture/docs/assets/img-icon/icon-sad.png
23-
24-
baseurl: "/mobile-web-capture/docs"
25-
26-
download: "/mobile-web-capture/downloads/"
27-
28-
plugins:
29-
- jemoji
30-
- jekyll-sitemap
31-
32-
33-
defaults:
34-
- scope:
35-
path: ""
36-
values:
37-
layout: "default-layout"
38-
noTitleIndex: true
39-
needAutoGenerateSidebar: true
40-
needGenerateH3Content: true
41-
- scope:
42-
path: "Hide_Tree_Page.html"
43-
values:
44-
sitemap: false
45-
46-
url: "https://www.dynamsoft.com" # sitemap root
1+
repository: dynamsoft-docs/mobile-web-capture-docs
2+
repositoryUrl: https://github.com/dynamsoft-docs/mobile-web-capture-docs/blob/main
3+
docFullPath: https://www.dynamsoft.com/mobile-web-capture/docs
4+
firstLevelUrl: /mobile-web-capture/docs
5+
docHomePage: /mobile-web-capture/docs/introduction/
6+
7+
introduction: /mobile-web-capture/docs/introduction/
8+
gettingstarted: /mobile-web-capture/docs/gettingstarted/
9+
codegallery: /mobile-web-capture/docs/codegallery/
10+
code-gallery: /mobile-web-capture/docs/code-gallery/
11+
api: /mobile-web-capture/docs/api/
12+
13+
guides: /mobile-web-capture/docs/guides/
14+
15+
release-notes: /mobile-web-capture/docs/release-notes/
16+
17+
useVersionTree: true
18+
19+
assets: /mobile-web-capture/docs/assets/
20+
edit_icon: /mobile-web-capture/docs/assets/img-icon/edit-icon.png
21+
smile_icon: /mobile-web-capture/docs/assets/img-icon/icon-smile.png
22+
sad_icon: /mobile-web-capture/docs/assets/img-icon/icon-sad.png
23+
24+
baseurl: "/mobile-web-capture/docs"
25+
26+
download: "/mobile-web-capture/downloads/"
27+
28+
plugins:
29+
- jemoji
30+
- jekyll-sitemap
31+
32+
defaults:
33+
- scope:
34+
path: ""
35+
values:
36+
layout: "default-layout"
37+
noTitleIndex: true
38+
needAutoGenerateSidebar: true
39+
needGenerateH3Content: true
40+
- scope:
41+
path: "Hide_Tree_Page.html"
42+
values:
43+
sitemap: false
44+
45+
url: "https://www.dynamsoft.com" # sitemap root

_data/full_tree.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
tree_file_list:
22
- sidelist-introduction.html
33
- sidelist-guides.html
4+
- sidelist-code-gallery.html
45
- sidelist-api.html
5-
- sidelist-releasenotes.html
6+
- sidelist-release-notes.html
67
- sidelist-full-tree.html
78
- sidelist-apis-v2.0.html
89
- sidelist-full-tree.v2.0.html
9-
- sidelist-introduction-v2.0.html
10+
- sidelist-introduction-v2.0.html

_data/product_version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ version_info_list:
66
- value: 2.0
77
- value: 1.x
88
child:
9-
- 1.1
9+
- 1.1

_includes/sidelist-api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
<li><a href="{{ site.api }}document-scanner.html" class="otherLinkColour">Document Scanner</a></li>
44
<li><a href="{{ site.api }}mobile-web-capture.html" class="otherLinkColour">Mobile Web Capture</a></li>
55
</ul>
6-
</li>
6+
</li>

0 commit comments

Comments
 (0)