diff --git a/.github/workflows/full-site-build.yml b/.github/workflows/full-site-build.yml deleted file mode 100644 index 306588f..0000000 --- a/.github/workflows/full-site-build.yml +++ /dev/null @@ -1,82 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: Full-Site-Build - -# Controls when the workflow will run -on: - # Triggers the workflow on push events but only for the master branch - # push: - # branches: [ preview ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains jobs called "Build-Main" and "Build-Preview" - Build-Main: - if: ${{ github.ref == 'refs/heads/main' }} - # The type of runner that the job will run on - runs-on: self-hosted - - # Steps represent a sequence of tasks that will be executed as part of the job - 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: | - cd /home/ubuntu - [ -d MWCDoc ] && rm -rf MWCDoc - [ ! -d MWCDoc ] && mkdir -p MWCDoc - [ ! -d mobile-web-capture-docs ] && git clone --depth 1 https://github.com/dynamsoft-docs/mobile-web-capture-docs.git mobile-web-capture-docs - [ ! -d Docs-Template-Repo-Preview ] && git clone --depth 1 --branch preview https://github.com/dynamsoft-docs/Docs-Template-Repo.git Docs-Template-Repo-Preview - cd mobile-web-capture-docs && git pull && cd .. && cp -rfp ./mobile-web-capture-docs/* ./MWCDoc/ - cd Docs-Template-Repo-Preview && git pull && cd .. && cp -rfp ./Docs-Template-Repo-Preview/* ./MWCDoc/ - cd MWCDoc && bundle exec jekyll build - #python3 /home/ubuntu/ftp.py /home/ubuntu/MWCDoc/_site/ ./www.dynamsoft.com/mobile-web-capture/docs/ prod - - - name: Sync files - uses: SamKirkland/FTP-Deploy-Action@4.3.0 - with: - server: ${{ secrets.FTP_DYNAMSOFT_LOCAL_SERVER }} - username: ${{ secrets.FTP_DYNAMSOFT_LOCAL_USER }} - password: ${{ secrets.FTP_DYNAMSOFT_LOCAL_PASSWORD }} - port: 21 - local-dir: /home/ubuntu/MWCDoc/_site/ - server-dir: /www.dynamsoft.com/mobile-web-capture/docs/ - - Build-Preview: - if: ${{ github.ref == 'refs/heads/preview' }} - # The type of runner that the job will run on - runs-on: self-hosted - - # Steps represent a sequence of tasks that will be executed as part of the job - 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: | - cd /home/ubuntu - [ -d MWCDocPreview ] && rm -rf MWCDocPreview - [ -d mobile-web-capture-docs-preview ] && rm -rf mobile-web-capture-docs-preview - [ ! -d MWCDocPreview ] && mkdir -p MWCDocPreview - [ ! -d mobile-web-capture-docs-preview ] && git clone --depth 1 --branch preview https://github.com/dynamsoft-docs/mobile-web-capture-docs.git mobile-web-capture-docs-preview - cd mobile-web-capture-docs-preview && git pull && cd .. && cp -rfp ./mobile-web-capture-docs-preview/* ./MWCDocPreview/ - cd Docs-Template-Repo-Preview && git pull && cd .. && cp -rfp ./Docs-Template-Repo-Preview/* ./MWCDocPreview/ - 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/FTP-Deploy-Action@4.3.0 - with: - server: ${{ secrets.FTP_TEST_SITE_SERVER }} - username: ${{ secrets.FTP_TEST_SITE_USER }} - password: ${{ secrets.FTP_TEST_SITE_PASSWORD }} - port: 7500 - local-dir: /home/ubuntu/MWCDocPreview/_site/ - server-dir: /www.dynamsoft.com/mobile-web-capture/docs/ diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8652116..0905c6c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,14 +20,14 @@ jobs: if: ${{ github.ref == 'refs/heads/main' }} uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-production.yml@main with: - doc-repo: mobile-web-capture-docs - doc-url: mobile-web-capture/docs/ + doc-repo: mobile-document-scanner-docs-js + doc-url: mobile-document-scanner/docs/web/ secrets: inherit Build-Preview: if: ${{ github.ref == 'refs/heads/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/ + doc-repo: mobile-document-scanner-docs-js + doc-url: mobile-document-scanner/docs/web/ secrets: inherit diff --git a/_config.yml b/_config.yml index 279c87d..d252933 100644 --- a/_config.yml +++ b/_config.yml @@ -1,29 +1,29 @@ 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/ +docFullPath: https://www.dynamsoft.com/mobile-document-scanner/docs/web +firstLevelUrl: /mobile-document-scanner/docs/web +docHomePage: /mobile-document-scanner/docs/web/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/ +introduction: /mobile-document-scanner/docs/web/introduction/ +gettingstarted: /mobile-document-scanner/docs/web/gettingstarted/ +codegallery: /mobile-document-scanner/docs/web/codegallery/ +code-gallery: /mobile-document-scanner/docs/web/code-gallery/ +api: /mobile-document-scanner/docs/web/api/ -guides: /mobile-web-capture/docs/guides/ +guides: /mobile-document-scanner/docs/web/guides/ -release-notes: /mobile-web-capture/docs/release-notes/ +release-notes: /mobile-document-scanner/docs/web/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 +assets: /mobile-document-scanner/docs/web/assets/ +edit_icon: /mobile-document-scanner/docs/web/assets//img-icon/edit-icon.png +smile_icon: /mobile-document-scanner/docs/web/assets/img-icon/icon-smile.png +sad_icon: /mobile-document-scanner/docs/web/assets/img-icon/icon-sad.png -baseurl: "/mobile-web-capture/docs" +baseurl: "/mobile-document-scanner/docs/web" -download: "/mobile-web-capture/downloads/" +download: "/mobile-document-scanner/downloads/" plugins: - jemoji diff --git a/_includes/mwcNav-v2.0.html b/_includes/mwcNav-v2.0.html deleted file mode 100644 index 9560106..0000000 --- a/_includes/mwcNav-v2.0.html +++ /dev/null @@ -1,67 +0,0 @@ - - -
-
- -
-
-
- -
Resource Base
-
-
-
-
-
-
-
- -
-
-
-
-
-
diff --git a/_includes/mwcNav.html b/_includes/mwcNav.html index 9560106..cf0e731 100644 --- a/_includes/mwcNav.html +++ b/_includes/mwcNav.html @@ -19,7 +19,7 @@