docs: remove custom searching mechanism (#11984)

* docs: remove custom searching mechanism

* remove grouping

* changes to grouping

* small title change

* update resources sitemap
This commit is contained in:
Shahed Nasser
2025-03-26 10:56:02 +02:00
committed by GitHub
parent 87b75ea959
commit c96560ccb7
10 changed files with 316 additions and 250 deletions
+46 -1
View File
@@ -5,9 +5,54 @@ import { config } from "../config"
import { basePathUrl } from "../utils/base-path-url"
export default function sitemap(): MetadataRoute.Sitemap {
return retrieveMdxPages({
const items = retrieveMdxPages({
basePath: path.resolve("app"),
}).map((filePath) => ({
url: `${config.baseUrl}${basePathUrl(filePath)}`,
}))
// add some references
items.push(
{
url: `${config.baseUrl}${basePathUrl("/references/file-provider-module")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/file-service")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/locking-module-provider")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/locking-service")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/notification-provider-module")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/notification-service")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/event-service")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/cache-service")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/file-service")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/auth/provider")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/fulfillment/provider")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/tax/provider")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/payment/provider")}`,
}
)
return items
}