docs: fix edit button on resources homepage (#7967)

This commit is contained in:
Shahed Nasser
2024-07-05 11:52:43 +03:00
committed by GitHub
parent 3e86cb6ac3
commit 36c1db7479
2 changed files with 10 additions and 108 deletions

View File

@@ -675,14 +675,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/deployment/storefront/vercel/page.mdx",
"pathname": "/deployment/storefront/vercel"
},
{
"filePath": "/www/apps/resources/app/favicon.ico",
"pathname": "/"
},
{
"filePath": "/www/apps/resources/app/globals.css",
"pathname": "/"
},
{
"filePath": "/www/apps/resources/app/integrations/page.mdx",
"pathname": "/integrations"
@@ -691,10 +683,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/js-client/page.mdx",
"pathname": "/js-client"
},
{
"filePath": "/www/apps/resources/app/layout.tsx",
"pathname": "/"
},
{
"filePath": "/www/apps/resources/app/medusa-cli/page.mdx",
"pathname": "/medusa-cli"
@@ -763,10 +751,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/recipes/subscriptions/page.mdx",
"pathname": "/recipes/subscriptions"
},
{
"filePath": "/www/apps/resources/app/references/[...slug]/page.tsx",
"pathname": "/references/[...slug]"
},
{
"filePath": "/www/apps/resources/app/storefront-development/cart/context/page.mdx",
"pathname": "/storefront-development/cart/context"
@@ -935,82 +919,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/troubleshooting/_s3-plugin-acl-error/page.mdx",
"pathname": "/troubleshooting/_s3-plugin-acl-error"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/cli-installation-errors/permission-errors.mdx",
"pathname": "/troubleshooting/_sections/cli-installation-errors"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/cli-installation-errors/powershell-error.mdx",
"pathname": "/troubleshooting/_sections/cli-installation-errors"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/cli-installation-errors/reusable-section.mdx",
"pathname": "/troubleshooting/_sections/cli-installation-errors"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/cli-installation-errors/yarn-error.mdx",
"pathname": "/troubleshooting/_sections/cli-installation-errors"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/common-installation-errors/module-x-error.mdx",
"pathname": "/troubleshooting/_sections/common-installation-errors"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/create-medusa-app-errors/db-url-error.mdx",
"pathname": "/troubleshooting/_sections/create-medusa-app-errors"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/create-medusa-app-errors/eagain-error.mdx",
"pathname": "/troubleshooting/_sections/create-medusa-app-errors"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/create-medusa-app-errors/forwarding.mdx",
"pathname": "/troubleshooting/_sections/create-medusa-app-errors"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/create-medusa-app-errors/no-browser-token-error.mdx",
"pathname": "/troubleshooting/_sections/create-medusa-app-errors"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/create-medusa-app-errors/other-errors.mdx",
"pathname": "/troubleshooting/_sections/create-medusa-app-errors"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/create-medusa-app-errors/typeerror.mdx",
"pathname": "/troubleshooting/_sections/create-medusa-app-errors"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/database-errors/connection-error.mdx",
"pathname": "/troubleshooting/_sections/database-errors"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/database-errors/docker.mdx",
"pathname": "/troubleshooting/_sections/database-errors"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/database-errors/privileges.mdx",
"pathname": "/troubleshooting/_sections/database-errors"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/database-errors/sasl.mdx",
"pathname": "/troubleshooting/_sections/database-errors"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/nextjs/cma-option.mdx",
"pathname": "/troubleshooting/_sections/nextjs"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/other/cors-errors.mdx",
"pathname": "/troubleshooting/_sections/other"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/other/eaddrinuse.mdx",
"pathname": "/troubleshooting/_sections/other"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_sections/other/s3-acl.mdx",
"pathname": "/troubleshooting/_sections/other"
},
{
"filePath": "/www/apps/resources/app/troubleshooting/_transaction-promise-all/page.mdx",
"pathname": "/troubleshooting/_transaction-promise-all"
@@ -1055,14 +963,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/usage/page.mdx",
"pathname": "/usage"
},
{
"filePath": "/www/apps/resources/references/.nojekyll",
"pathname": "/references"
},
{
"filePath": "/www/apps/resources/references/_index.mdx",
"pathname": "/references"
},
{
"filePath": "/www/apps/resources/references/api_key/IApiKeyModuleService/methods/api_key.IApiKeyModuleService.authenticate/page.mdx",
"pathname": "/references/api_key/IApiKeyModuleService/methods/api_key.IApiKeyModuleService.authenticate"

View File

@@ -24,14 +24,16 @@ async function scanFiles(options = {}) {
for (const file of files) {
const filePath = path.join(fullPath, file)
const fileBasename = path.basename(file)
if (fileBasename !== "page.mdx" && statSync(filePath).isDirectory()) {
filesMap.push(
...(await scanFiles({
dir: filePath.replace(basePath, ""),
basePath,
baseSlug,
}))
)
if (fileBasename !== "page.mdx") {
if (statSync(filePath).isDirectory()) {
filesMap.push(
...(await scanFiles({
dir: filePath.replace(basePath, ""),
basePath,
baseSlug,
}))
)
}
continue
}