اطلب الوصول المبكر

أدخل اسمك الأول وبريدك الإلكتروني أو رقم هاتفك. سنتواصل معك لتزويدك بتفاصيل الوصول إلى Tajo.

Navigation Config

The top navigation in Tajo is configured through a TypeScript file that defines the navigation links and their properties.

Configuration File

The navigation is configured in src/docs/config/[language]/navData.json.ts. This file exports an array of navigation items.

src/docs/config/[language]/navData.json.ts
const navConfig: navItem[] = [
{
text: "Introduction",
link: "/docs/getting-started/",
},
{
text: "Components",
link: "/docs/components/",
},
{
text: "External Link",
link: "https://example.com",
newTab: true,
},
];

Each item in the navConfig array has the following properties:

text

  • Type: string
  • Required: Yes

The display text for the navigation link.

  • Type: string
  • Required: Yes

The URL for the navigation link. This can be:

  • An internal path starting with / (e.g., /docs/getting-started/)
  • An external URL (e.g., https://example.com)
  • A hash link (e.g., #features)

newTab

  • Type: boolean
  • Default: false
  • Optional: Yes

When set to true, the link will open in a new tab. This is particularly useful for external links.

اطلب الوصول المبكر

أدخل اسمك الأول وبريدك الإلكتروني أو رقم هاتفك. سنتواصل معك لتزويدك بتفاصيل الوصول إلى Tajo.

اكتشاف تلقائي
مساعد AI

مرحباً! اسألني أي شيء عن الوثائق.