Skip to content

Commit

Permalink
Merge pull request #2184 from spryker/misc-10
Browse files Browse the repository at this point in the history
Move tutorials
  • Loading branch information
andriitserkovnyi authored Oct 5, 2023
2 parents abf8bc1 + f9a225c commit 926ee7e
Show file tree
Hide file tree
Showing 319 changed files with 639 additions and 64,438 deletions.
62 changes: 0 additions & 62 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,62 +89,6 @@ jobs:

- run: bundle exec rake check_cloud

link_validation_check_mp_dev:
name: Links validation (check_mp_dev)
needs: jekyll_build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
with:
ruby-version: 2.6
bundler-cache: true

- name: Cache HTMLProofer
id: cache-htmlproofer
uses: actions/cache@v2
with:
path: tmp/.htmlproofer
key: ${{ runner.os }}-check_mp_dev-htmlproofer

- uses: actions/download-artifact@v2

- name: Unpack artifacts
run: tar -xf build-result/result.tar.gz

- run: bundle exec rake check_mp_dev

link_validation_check_mp_user:
name: Links validation (check_mp_user)
needs: jekyll_build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
with:
ruby-version: 2.6
bundler-cache: true

- name: Cache HTMLProofer
id: cache-htmlproofer
uses: actions/cache@v2
with:
path: tmp/.htmlproofer
key: ${{ runner.os }}-check_mp_user-htmlproofer

- uses: actions/download-artifact@v2

- name: Unpack artifacts
run: tar -xf build-result/result.tar.gz

- run: bundle exec rake check_mp_user

link_validation_check_scos_dev:
name: Links validation (check_scos_dev)
needs: jekyll_build
Expand Down Expand Up @@ -314,12 +258,6 @@ jobs:
ruby-version: 2.6
bundler-cache: true

- run: bundle exec jekyll algolia --config=_config.yml,algolia_config/_marketplace_dev.yml
env: # Or as an environment variable
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
- run: bundle exec jekyll algolia --config=_config.yml,algolia_config/_marketplace_user.yml
env: # Or as an environment variable
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
- run: bundle exec jekyll algolia --config=_config.yml,algolia_config/_cloud_dev.yml
env: # Or as an environment variable
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
Expand Down
45 changes: 0 additions & 45 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ task :check_acp_user do
options = commonOptions.dup
options[:file_ignore] = [
/docs\/scos\/.+/,
/docs\/marketplace\/.+/,
/docs\/cloud\/.+/,
/docs\/fes\/.+/,
/docs\/scu\/.+/,
Expand All @@ -97,7 +96,6 @@ task :check_cloud do
options[:file_ignore] = [
/docs\/scos\/.+/,
/docs\/fes\/.+/,
/docs\/marketplace\/.+/,
/docs\/scu\/.+/,
/docs\/pbc\/.+/,
/docs\/acp\/.+/,
Expand All @@ -106,49 +104,10 @@ task :check_cloud do
HTMLProofer.check_directory("./_site", options).run
end

task :check_mp_dev do
options = commonOptions.dup
options[:file_ignore] = [
/docs\/scos\/.+/,
/docs\/cloud\/.+/,
/docs\/fes\/.+/,
/docs\/scu\/.+/,
/docs\/acp\/.+/,
/docs\/marketplace\/user\/.+/,
/docs\/pbc\/.+/,
/docs\/marketplace\/\w+\/[\w-]+\/202108\.0\/.+/,
/docs\/sdk\/.+/,
/docs\/marketplace\/\w+\/[\w-]+\/202204\.0\/.+/,
/docs\/marketplace\/\w+\/[\w-]+\/202204\.0\/.+/,
/docs\/marketplace\/\w+\/[\w-]+\/202212\.0\/.+/,
/docs\/marketplace\/\w+\/[\w-]+\/202400\.0\/.+/
]
HTMLProofer.check_directory("./_site", options).run
end

task :check_mp_user do
options = commonOptions.dup
options[:file_ignore] = [
/docs\/scos\/.+/,
/docs\/cloud\/.+/,
/docs\/fes\/.+/,
/docs\/scu\/.+/,
/docs\/acp\/.+/,
/docs\/marketplace\/dev\/.+/,
/docs\/marketplace\/\w+\/[\w-]+\/202108\.0\/.+/,
/docs\/pbc\/.+/,
/docs\/sdk\/.+/,
/docs\/marketplace\/\w+\/[\w-]+\/202204\.0\/.+/,
/docs\/marketplace\/\w+\/[\w-]+\/202212\.0\/.+/,
/docs\/marketplace\/\w+\/[\w-]+\/202400\.0\/.+/
]
HTMLProofer.check_directory("./_site", options).run
end

task :check_scos_dev do
options = commonOptions.dup
options[:file_ignore] = [
/docs\/marketplace\/.+/,
/docs\/cloud\/.+/,
/docs\/fes\/.+/,
/docs\/scu\/.+/,
Expand All @@ -172,7 +131,6 @@ end
task :check_scos_user do
options = commonOptions.dup
options[:file_ignore] = [
/docs\/marketplace\/.+/,
/docs\/cloud\/.+/,
/docs\/acp\/.+/,
/docs\/scos\/dev\/.+/,
Expand All @@ -197,7 +155,6 @@ task :check_scu do
options = commonOptions.dup
options[:file_ignore] = [
/docs\/scos\/.+/,
/docs\/marketplace\/.+/,
/docs\/cloud\/.+/,
/docs\/acp\/.+/,
/docs\/fes\/.+/,
Expand All @@ -211,7 +168,6 @@ task :check_pbc do
options = commonOptions.dup
options[:file_ignore] = [
/docs\/scos\/.+/,
/docs\/marketplace\/.+/,
/docs\/sdk\/.+/,
/docs\/cloud\/.+/,
/docs\/fes\/.+/,
Expand All @@ -229,7 +185,6 @@ task :check_sdk do
options = commonOptions.dup
options[:file_ignore] = [
/docs\/scos\/.+/,
/docs\/marketplace\/.+/,
/docs\/cloud\/.+/,
/docs\/acp\/.+/,
/docs\/fes\/.+/,
Expand Down
38 changes: 0 additions & 38 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,23 +81,6 @@ defaults:
path: "docs/"
values:
feed: true
-
scope:
path: "docs/marketplace"
values:
product: "marketplace"
-
scope:
path: "docs/marketplace/dev"
values:
sidebar: "marketplace_dev_sidebar"
role: "dev"
-
scope:
path: "docs/marketplace/user"
values:
sidebar: "marketplace_user_sidebar"
role: "user"
-
scope:
path: "docs/scos"
Expand Down Expand Up @@ -179,21 +162,6 @@ versions:

# versioned categories - these must match corresponding directories
versioned_categories:
marketplace:
user:
- features
- back-office-user-guides
- merchant-portal-user-guides
dev:
- feature-integration-guides
- feature-walkthroughs
- glue-api-guides
- data-import
- data-export
- legacy-demoshop
- front-end
- setup
- technical-enhancement
scos:
user:
- features
Expand Down Expand Up @@ -252,8 +220,6 @@ versioned_categories:
# these are defaults used for the front matter for these file types

sidebars:
- marketplace_dev_sidebar
- marketplace_user_sidebar
- cloud_dev_sidebar
- scos_dev_sidebar
- scos_user_sidebar
Expand Down Expand Up @@ -285,10 +251,6 @@ algolia:
title: 'SCOS User'
- name: 'scos_dev'
title: 'SCOS Developer'
- name: 'marketplace_user'
title: 'Marketplace User'
- name: 'marketplace_dev'
title: 'Marketplace Developer'
- name: 'sdk_dev'
title: 'SDK Developer'
- name: 'cloud_dev'
Expand Down
Loading

0 comments on commit 926ee7e

Please sign in to comment.