mirror of
https://github.com/Dokploy/website.git
synced 2026-07-11 08:55:24 +02:00
docs: refactor code for consistency and readability
- Standardized import statements across various components to use double quotes for consistency. - Updated component files to ensure proper formatting and adherence to coding standards. - Enhanced overall code readability by aligning code structure and improving comment clarity. - Made minor adjustments to ensure all components follow the same coding conventions, improving maintainability.
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
import { source } from '@/lib/source';
|
||||
import { createFromSource } from 'fumadocs-core/search/server';
|
||||
import type { InferPageType } from 'fumadocs-core/source';
|
||||
import { source } from "@/lib/source";
|
||||
import { createFromSource } from "fumadocs-core/search/server";
|
||||
import type { InferPageType } from "fumadocs-core/source";
|
||||
|
||||
export const { GET } = createFromSource(source, {
|
||||
// https://docs.orama.com/docs/orama-js/supported-languages
|
||||
language: 'english',
|
||||
// Configure tag filter based on the first slug (core, cli, api)
|
||||
buildIndex(page: InferPageType<typeof source>) {
|
||||
const tag = page.slugs[0] || 'all';
|
||||
return {
|
||||
title: page.data.title,
|
||||
description: page.data.description,
|
||||
url: page.url,
|
||||
id: page.url,
|
||||
structuredData: page.data.structuredData,
|
||||
// Assign tag based on the first slug (core, cli, api)
|
||||
tag,
|
||||
} as any;
|
||||
},
|
||||
// https://docs.orama.com/docs/orama-js/supported-languages
|
||||
language: "english",
|
||||
// Configure tag filter based on the first slug (core, cli, api)
|
||||
buildIndex(page: InferPageType<typeof source>) {
|
||||
const tag = page.slugs[0] || "all";
|
||||
return {
|
||||
title: page.data.title,
|
||||
description: page.data.description,
|
||||
url: page.url,
|
||||
id: page.url,
|
||||
structuredData: page.data.structuredData,
|
||||
// Assign tag based on the first slug (core, cli, api)
|
||||
tag,
|
||||
} as any;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user