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 authored and GitHub committed 2024-06-05 10:28:41 +03:00
1 parent dc087bf310
commit 4a6327e497
44 files changed
+815 -446

No files matched your search

+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": []
}
]
}
]
}