docs: make code blocks collapsible (#7606)

* added collapsible code feature

* fixed side shadow

* fix build errors

* change design

* make code blocks collapsible
This commit is contained in:
Shahed Nasser
2024-06-05 10:28:41 +03:00
committed by GitHub
parent dc087bf310
commit 4a6327e497
44 changed files with 815 additions and 446 deletions
+12 -16
View File
@@ -227,6 +227,10 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/architectural-modules/workflow-engine/redis/page.mdx",
"pathname": "/architectural-modules/workflow-engine/redis"
},
{
"filePath": "/www/apps/resources/app/commerce-modules/api-key/concepts/page.mdx",
"pathname": "/commerce-modules/api-key/concepts"
},
{
"filePath": "/www/apps/resources/app/commerce-modules/api-key/events/_events-table/page.mdx",
"pathname": "/commerce-modules/api-key/events/_events-table"
@@ -247,10 +251,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/api-key/relations-to-other-modules/page.mdx",
"pathname": "/commerce-modules/api-key/relations-to-other-modules"
},
{
"filePath": "/www/apps/resources/app/commerce-modules/api-key/tokens/page.mdx",
"pathname": "/commerce-modules/api-key/tokens"
},
{
"filePath": "/www/apps/resources/app/commerce-modules/auth/auth-flows/page.mdx",
"pathname": "/commerce-modules/auth/auth-flows"
@@ -331,6 +331,10 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/currency/page.mdx",
"pathname": "/commerce-modules/currency"
},
{
"filePath": "/www/apps/resources/app/commerce-modules/currency/relations-to-other-modules/page.mdx",
"pathname": "/commerce-modules/currency/relations-to-other-modules"
},
{
"filePath": "/www/apps/resources/app/commerce-modules/customer/customer-accounts/page.mdx",
"pathname": "/commerce-modules/customer/customer-accounts"
@@ -687,6 +691,10 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/store/page.mdx",
"pathname": "/commerce-modules/store"
},
{
"filePath": "/www/apps/resources/app/commerce-modules/store/relations-to-other-modules/page.mdx",
"pathname": "/commerce-modules/store/relations-to-other-modules"
},
{
"filePath": "/www/apps/resources/app/commerce-modules/tax/events/_events-table/page.mdx",
"pathname": "/commerce-modules/tax/events/_events-table"
@@ -743,10 +751,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/user/user-creation-flows/page.mdx",
"pathname": "/commerce-modules/user/user-creation-flows"
},
{
"filePath": "/www/apps/resources/app/configurations/_medusa-admin/page.mdx",
"pathname": "/configurations/_medusa-admin"
},
{
"filePath": "/www/apps/resources/app/contribution-guidelines/_admin-translations/page.mdx",
"pathname": "/contribution-guidelines/_admin-translations"
@@ -931,14 +935,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/troubleshooting/_transaction-promise-all/page.mdx",
"pathname": "/troubleshooting/_transaction-promise-all"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/admin-sign-in/page.mdx",
"pathname": "/troubleshooting/admin-sign-in"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/admin-webpack-build-error/page.mdx",
"pathname": "/troubleshooting/admin-webpack-build-error"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/cors-errors/page.mdx",
"pathname": "/troubleshooting/cors-errors"
+31 -32
View File
@@ -37,8 +37,8 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
"path": "/commerce-modules/api-key/tokens",
"title": "Tokens",
"path": "/commerce-modules/api-key/concepts",
"title": "API Key Concepts",
"children": []
},
{
@@ -863,6 +863,20 @@ export const generatedSidebar = [
"title": "Examples",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"title": "Concepts",
"children": [
{
"loaded": true,
"isPathHref": true,
"path": "/commerce-modules/currency/relations-to-other-modules",
"title": "Relation to Modules",
"children": []
}
]
},
{
"loaded": true,
"isPathHref": true,
@@ -5068,6 +5082,20 @@ export const generatedSidebar = [
"title": "Examples",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"title": "Concepts",
"children": [
{
"loaded": true,
"isPathHref": true,
"path": "/commerce-modules/store/relations-to-other-modules",
"title": "Relation to Modules",
"children": []
}
]
},
{
"loaded": true,
"isPathHref": true,
@@ -5236,7 +5264,7 @@ export const generatedSidebar = [
"loaded": true,
"isPathHref": true,
"path": "/commerce-modules/tax/tax-calculation-with-provider",
"title": "Tax Calculation",
"title": "Tax Calculation and Providers",
"children": []
}
]
@@ -5246,13 +5274,6 @@ export const generatedSidebar = [
"isPathHref": true,
"title": "References",
"children": [
{
"loaded": true,
"isPathHref": true,
"path": "/references/tax/provider",
"title": "Tax Provider Reference",
"children": []
},
{
"loaded": true,
"isPathHref": true,
@@ -7144,28 +7165,6 @@ export const generatedSidebar = [
"children": []
}
]
},
{
"loaded": true,
"isPathHref": true,
"title": "Medusa Admin",
"hasTitleStyling": true,
"children": [
{
"loaded": true,
"isPathHref": true,
"path": "/troubleshooting/admin-sign-in",
"title": "Signing In",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"path": "/troubleshooting/admin-custom-hooks-error",
"title": "Custom Hooks Error",
"children": []
}
]
}
]
}