diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 435c5c25f..742b097a4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @Frodigo @bartoszherba +* @vuestorefront/integrations-team diff --git a/.github/workflows/docs-deployment.yaml b/.github/workflows/docs-deployment.yaml index 7d0d667c6..3756e838c 100644 --- a/.github/workflows/docs-deployment.yaml +++ b/.github/workflows/docs-deployment.yaml @@ -53,13 +53,17 @@ jobs: environment: production initial_status: in_progress - name: Deploy on docs.europe-west1.gcp.storefrontcloud.io/magento - run: | - if curl -s -H 'X-User-Id: ${{ secrets.DOCS_CLOUD_USERNAME }}' -H 'X-Api-Key: ${{ secrets.DOCS_CLOUD_PASSWORD }}' -H 'Content-Type: application/json' -X POST -d '{"code":"docs","region":"europe-west1.gcp","additionalApps":{"apps":[{"name":"docs-v2-magento2","tag":"${{ steps.get_version.outputs.VERSION }}","image":"registry.storefrontcloud.io/docs-storefrontcloud-io/v2-magento2","path":"/magento","port":"80"}]}}' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then - echo "Instance updated" - else - echo "Something went wrong during the update process..." - exit 1 - fi + id: publish + uses: vuestorefront/publish-docs-action@main + with: + user-id: ${{ secrets.DOCS_CLOUD_USERNAME }} + api-key: ${{ secrets.DOCS_CLOUD_PASSWORD }} + name: "docs-v2-magento" + tag: "${{ steps.get_version.outputs.VERSION }}" + image: "registry.storefrontcloud.io/docs-storefrontcloud-io/v2-magento2" + path: "/magento" + port: "80" + has-base-path: true - name: Update deployment status (success) if: success() uses: chrnorm/deployment-status@releases/v1 diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index d6d6fc1f7..c971247f6 100755 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -78,6 +78,13 @@ module.exports = { { title: '', collapsable: false, + children: [ + ['https://developer.vuestorefront.io/quiz/questions/magento', 'Test your knowledge'] + ] + }, + { + title: 'Essentials', + collapsable: false, children: [ ['/', 'Introduction'], ['/guide/supported-features', 'Supported features'], diff --git a/docs/installation-setup/configure-magento.md b/docs/installation-setup/configure-magento.md index 5fb5d71a2..4aecbabcd 100644 --- a/docs/installation-setup/configure-magento.md +++ b/docs/installation-setup/configure-magento.md @@ -84,45 +84,7 @@ Then go to the admin panel, find the configuration panel of the `GraphQL CustomC For more information, see the [GraphQL security configuration](https://devdocs.magento.com/guides/v2.4/graphql/security-configuration.html) page. -### 5. Enable CORS - -You may need to enable CORS origins in your Magento store to accept requests from other domains, e.g., `magento.dev`. In the Magento 2 folder, add the package `graycore/magento2-cors` by running the command below: - -```sh -bin/composer require graycore/magento2-cors -``` - -Then, add the following configuration at the end of `src/app/etc/env.php`: - -```php - 'system' => [ - 'default' => [ - 'web' => [ - 'graphql' => [ - 'cors_max_age' => 86400, - 'cors_allow_credentials' => 0, - 'cors_allowed_methods' => 'POST, OPTIONS, GET', - 'cors_allowed_headers' => 'Content-Currency, Store, X-Magento-Cache-Id, X-Captcha, Content-Type, Authorization, DNT, TE', - 'cors_allowed_origins' => '*' - ] - ] - ] - ] -``` - -Enable the graycore cors. - -```sh -bin/magento module:enable Graycore_Cors -``` - -Then update the configuration: - -```sh -bin/magento setup:upgrade -``` - -### 6. Populate store with sample data (optional) +### 5. Populate store with sample data (optional) In the Magento 2 folder, execute the commands below to add sample data to your store. diff --git a/docs/migration-guides/index.md b/docs/migration-guides/index.md index 823f24933..96cecf9d9 100644 --- a/docs/migration-guides/index.md +++ b/docs/migration-guides/index.md @@ -7,4 +7,12 @@ ## Release candidates - [1.0.0-rc.10](./1.0.0-rc.10/) -- [1.0.0](./1.0.0/) +- [1.0.0-rc.9](./1.0.0-rc.9/) +- [1.0.0-rc.8](./1.0.0-rc.8/) +- [1.0.0-rc.7](./1.0.0-rc.7/) + + + + + +