Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: delete docs to redirect #666

Merged
merged 9 commits into from
Apr 4, 2024
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
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ We have a career page listing our current positions: [Centra Careers](https://ca
## License

The documentation is licensed under the [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/?) license.

## Storyblok migarition

As part of migration to Storyblok we have to make redirects to [centra.dev](https://centra.dev). Those redirects you can find in `/config/site.yaml` file.
External redirections in Grav CMS are working only when page you are trying to visit hasn't any content. This is why we deleted most of `.md` files. For more informations check [this PR](https://github.com/centrahq/api-documentation/pull/666)
90 changes: 46 additions & 44 deletions config/site.yaml
mateusz-001 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,38 @@ taxonomies: [category,tag,author]
metadata:
description: 'Centra Documentation'
summary:
size: 300
routes:
/overview/installation: '/api-references/api-intro#installation'
/overview/endpoints: '/api-references/api-intro#endpoints'
/overview/authentication: '/api-references/api-intro#authentication'
/guides/checkout-api/index: '/api-references/checkout-api'
/guides/checkout-api/breaking-changes-v2-69: '/api-references/checkout-api'
/guides/shop-api/index: '/api-references/shop-api'
/guides/shop-api/payment-method-flows: '/fe-development/payments/payment-flows'
/guides/shop-api/checklist-for-launching: '/fe-development/launch-checklist'
/guides/shop-api/changes-between-v0-and-v1: '/api-references/shop-api'
/guides/cms/index: '/fe-development/cms'
/guides/cms/slot-properties: '/fe-development/cms'
/guides/cms/custom-attributes: '/overview/custom-attributes'
/guides/plugins/adyen-checkout: '/plugins/adyen'
/guides/plugins/adyen-drop-in: '/plugins/adyen-drop-in'
/guides/plugins/klarna-checkout-v3: '/plugins/klarna'
/guides/plugins/mailchimp-ecommerce: '/plugins/mailchimp'
/guides/plugins/quickpay: '/plugins/quickpay'
/guides/plugins/paypal-commerce: '/plugins/paypal'
/guides/plugins/stripe-checkout: '/plugins/stripe'
/guides/plugins/stripe-payment-intents: '/plugins/stripe-payment-intents'
/guides/plugins/external-payment: '/plugins/external-payment-plugin'
/guides/plugins/centra-webhook: '/plugins/centra-webhook'
/guides/plugins/voyado-promotions: '/plugins/voyado-vouchers'
/guides/soap-api/index: '/api-references/soap-integration-api'
/guides/soap-api/centra-concepts: '/overview/centra-overview'
size: 300
redirects:
/reference/stable/order-api/(.*): '/api-references/order-api/api-reference/$1'
/reference/stable/checkout-api/index: '/api-references/checkout-api/api-reference/overview'
/reference/stable/checkout-api/(.*): '/api-references/checkout-api/api-reference/$1'
/guides/erp-with-gql: '/guides/pim-gql-integration'
/plugins/%20post-purchase-upsell: '/fe-development/cross-sell'
/plugins/post-purchase-upsell: '/fe-development/cross-sell'
/overview: 'https://centra.dev/docs'
/reference/stable/order-api/.*: 'https://centra.dev/docs/apis/order-api/api-reference'
/reference/stable/checkout-api/index: 'https://centra.dev/docs/checkout-api/api-reference'
/reference/stable/checkout-api/.*: 'https://centra.dev/docs/checkout-api/api-reference'
/overview/installation: 'https://centra.dev/guides/introduction-to-centra-apis'
/overview/endpoints: 'https://centra.dev/guides/introduction-to-centra-apis'
/overview/authentication: 'https://centra.dev/guides/introduction-to-centra-apis'
/plugins/post-purchase-upsell: 'https://centra.dev/docs/crafting-frontends/cross-sell'
/plugins/%20post-purchase-upsell: https://centra.dev/docs/crafting-frontends/cross-sell'
/guides/checkout-api/index: 'https://centra.dev/docs/checkout-api/what-you-can-do-with-it'
/guides/erp-with-gql: 'https://centra.dev/guides/integrating-centra-with-pim-systems-using-graphql-integration-api'
/guides/checkout-api/breaking-changes-v2-69: 'https://centra.dev/docs/checkout-api/what-you-can-do-with-it'
/guides/shop-api/index: 'https://centra.dev/docs/apis/shop-api/api-reference'
/guides/shop-api/payment-method-flows: 'https://centra.dev/docs/crafting-frontends/payments/payment-flows'
/guides/shop-api/checklist-for-launching: 'https://centra.dev/guides/the-ecommerce-launch-checklist'
/guides/shop-api/changes-between-v0-and-v1: 'https://centra.dev/docs/apis/shop-api/api-reference'
/guides/cms/index: 'https://centra.dev/docs/crafting-frontends/building-a-frontend'
/guides/cms/slot-properties: 'https://centra.dev/docs/crafting-frontends/building-a-frontend'
/guides/cms/custom-attributes: 'https://centra.dev/docs/centra-concepts/extending/custom-attributes'
/guides/plugins/adyen-checkout: 'https://centra.dev/docs/extend-with-plugins/checkout/adyen-checkout'
/guides/plugins/adyen-drop-in: 'https://centra.dev/docs/extend-with-plugins/checkout/adyen-drop-in'
/guides/plugins/klarna-checkout-v3: 'https://centra.dev/docs/extend-with-plugins/checkout/klarna-checkout'
/guides/plugins/mailchimp-ecommerce: 'https://centra.dev/docs/extend-with-plugins/automations/mailchimp'
/guides/plugins/paypal-commerce: 'https://centra.dev/docs/extend-with-plugins/checkout/paypal-commerce'
/guides/plugins/stripe-checkout: 'https://centra.dev/docs/extend-with-plugins/checkout/stripe-checkout'
/guides/plugins/stripe-payment-intents: 'https://centra.dev/docs/extend-with-plugins/checkout/stripe-payment-intents'
/guides/plugins/external-payment: 'https://centra.dev/docs/extend-with-plugins/checkout/external-payment-plugin'
/guides/plugins/centra-webhook: 'https://centra.dev/docs/extend-with-plugins/integrations/centra-webhooks'
/guides/plugins/voyado-promotions: 'https://centra.dev/docs/extend-with-plugins/discounts/voyado-vouchers'
/guides/soap-api/index: 'https://centra.dev/docs/apis/soap-integration-api/what-you-can-do-with-it'
/guides/soap-api/centra-concepts: 'https://centra.dev/docs/centra-concepts'
/overview/glossary: 'https://centra.dev/docs/centra-concepts/reference/centra-a-z'
/overview/centra-overview: 'https://centra.dev/docs/centra-concepts'
/overview/products: 'https://centra.dev/docs/centra-concepts/product'
Expand All @@ -52,14 +49,15 @@ redirects:
/overview/orderflow: 'https://centra.dev/docs/centra-concepts/order'
/overview/custom-attributes: 'https://centra.dev/docs/centra-concepts/extending/custom-attributes'
/overview/custom-client-config: 'https://centra.dev/docs/centra-concepts/extending/custom-client-config'
/overview: 'https://centra.dev/docs'
/fe-development/fe-elements: 'https://centra.dev/docs/crafting-frontends/building-a-frontend'
/fe-development/cms: 'https://centra.dev/docs/crafting-frontends/building-a-frontend'
/fe-development/launch-checklist: 'https://centra.dev/guides/the-ecommerce-launch-checklist'
/fe-development/checkoutscript: 'https://centra.dev/tools/centra-checkoutscript'
/fe-development/payments: 'https://centra.dev/docs/crafting-frontends/payments/payment-flows'
/fe-development/payments/payment-providers: 'https://centra.dev/docs/crafting-frontends/payments/payment-providers'
/fe-development/payments/payment-flows: 'https://centra.dev/docs/crafting-frontends/payments/payment-flows'
/fe-development/payments/handling-0-payments: 'https://centra.dev/docs/crafting-frontends/payments/handling-100-discounts'
/fe-development/payments: 'https://centra.dev/docs/crafting-frontends/payments/payment-flows'
/fe-development/gift-certs: 'https://centra.dev/docs/crafting-frontends/payments/pay-with-gift-certificates'
/fe-development/ingrid-implementation: 'https://centra.dev/docs/extend-with-plugins/shipping/ingrid-v1'
/fe-development/ingridv2-implementation: 'https://centra.dev/docs/extend-with-plugins/shipping/ingrid'
Expand All @@ -76,6 +74,7 @@ redirects:
/guides/wms-integration: 'https://centra.dev/guides/integrating-centra-with-external-wms-systems-using-order-api'
/guides/pos-integration: 'https://centra.dev/guides/integrating-centra-with-pos-systems-using-order-api'
/guides/bi-integration: 'https://centra.dev/guides/integrating-centra-with-business-intelligence-systems'
/guides: 'https://centra.dev/guides'
/plugins/paypal: 'https://centra.dev/docs/extend-with-plugins/checkout/paypal-commerce'
/plugins/stripe: 'https://centra.dev/docs/extend-with-plugins/checkout/stripe-checkout'
/plugins/stripe-payment-intents: 'https://centra.dev/docs/extend-with-plugins/checkout/stripe-payment-intents'
Expand All @@ -91,13 +90,13 @@ redirects:
/plugins/klaviyo: 'https://centra.dev/docs/extend-with-plugins/automations/klaviyo'
/plugins/klarna-payments: 'https://centra.dev/docs/extend-with-plugins/checkout/klarna-payments'
/plugins/adyen: 'https://centra.dev/docs/extend-with-plugins/checkout/adyen-checkout'
/api-references/api-intro: 'https://centra.dev/guides/introduction-to-centra-apis'
/api-references/api-intro/api-functions: 'https://centra.dev/guides/introduction-to-centra-apis'
/api-references/api-intro: 'https://centra.dev/guides/introduction-to-centra-apis'
/api-references/checkout-api/introduction: 'https://centra.dev/docs/checkout-api/what-you-can-do-with-it'
/api-references/checkout-api/api-reference: 'https://centra.dev/docs/checkout-api/api-reference'
/api-references/checkout-api/api-reference/.*: 'https://centra.dev/docs/checkout-api/api-reference'
/api-references/checkout-api/api-reference: 'https://centra.dev/docs/checkout-api/api-reference'
/api-references/checkout-api/order-flow: 'https://centra.dev/docs/checkout-api/order-flow'
/api-references/graphql-integration-api: 'https://centra.dev/docs/integration-api/what-you-can-do-with-it'
/api-references/checkout-api: 'https://centra.dev/docs/checkout-api/what-you-can-do-with-it'
/api-references/graphql-integration-api/authorization: 'https://centra.dev/docs/integration-api/authorization'
/api-references/graphql-integration-api/schema: 'https://centra.dev/docs/integration-api/schema'
/api-references/graphql-integration-api/api-rate-limits: 'https://centra.dev/docs/integration-api/api-rate-limits'
Expand All @@ -106,18 +105,21 @@ redirects:
/api-references/graphql-integration-api/media-upload: 'https://centra.dev/docs/integration-api/uploading-media'
/api-references/graphql-integration-api/id-conversion: 'https://centra.dev/docs/integration-api/id-conversion'
/api-references/graphql-integration-api/events-system: 'https://centra.dev/docs/integration-api/handling-events'
/api-references/shop-api/api-reference: 'https://centra.dev/docs/apis/shop-api/api-reference'
/api-references/graphql-integration-api: 'https://centra.dev/docs/integration-api/what-you-can-do-with-it'
/api-references/shop-api/api-reference/.*: 'https://centra.dev/docs/apis/shop-api/api-reference'
/api-references/order-api: 'https://centra.dev/docs/apis/order-api/what-you-can-do-with-it'
/api-references/shop-api/api-reference: 'https://centra.dev/docs/apis/shop-api/api-reference'
/api-references/shop-api: 'https://centra.dev/docs/apis/shop-api/api-reference'
/api-references/order-api/api-plugin-settings: 'https://centra.dev/docs/apis/order-api/plugin-settings'
/api-references/order-api/api-reference: 'https://centra.dev/docs/apis/order-api/api-reference'
/api-references/order-api/api-reference/.*: 'https://centra.dev/docs/apis/order-api/api-reference'
/api-references/soap-integration-api: 'https://centra.dev/docs/apis/soap-integration-api/what-you-can-do-with-it'
/api-references/order-api/api-reference: 'https://centra.dev/docs/apis/order-api/api-reference'
/api-references/order-api: 'https://centra.dev/docs/apis/order-api/what-you-can-do-with-it'
/api-references/soap-integration-api/api-reference: 'https://centra.dev/docs/apis/soap-integration-api/api-reference'
/api-references/soap-integration-api: 'https://centra.dev/docs/apis/soap-integration-api/what-you-can-do-with-it'
/api-references: 'https://centra.dev/guides/introduction-to-centra-apis'
/silksoap: 'https://centra.dev/docs/apis/soap-integration-api/api-reference'
/graphql-explorer: 'https://docs.centra.com/graphql-explorer'
/graphql: 'https://centra.dev/graphql'
/graphql/(.*): 'https://centra.dev/graphql/$1'
/swagger-ui: 'https://centra.dev/swagger'
/graphql: 'https://centra.dev/graphql'
/swagger-ui/?urls.primaryName=ShopAPI: 'https://centra.dev/swagger?urls.primaryName=ShopAPI'
/swagger-ui/?urls.primaryName=CheckoutAPI: 'https://centra.dev/swagger?urls.primaryName=CheckoutAPI'
/swagger-ui: 'https://centra.dev/swagger'
Loading