The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Enhance navigation and sorting functionality in Docusaurus config
Arindam2006d121616273f
diff --git a/docs/my-website/docusaurus.config.js b/docs/my-website/docusaurus.config.jsindex ec3ba191883..9e1fae6a34f 100644--- a/docs/my-website/docusaurus.config.js+++ b/docs/my-website/docusaurus.config.js@@ -156,7 +156,12 @@ const config = {}// Build categories sorted by year descending- const years = Object.keys(byYear).sort((a, b) => b - a);+ const years = Object.keys(byYear).sort((a, b) => {+ // Object.keys() returns strings; avoid numeric subtraction type errors.+ const na = Number.parseInt(a, 10);+ const nb = Number.parseInt(b, 10);+ return nb - na;+ });return years.map(year => ({type: 'category',label: String(year),@@ -291,7 +296,11 @@ const config = {position: 'right',className: 'header-discord-link','aria-label': 'Discord / Slack community',- }+ },+ {+ type: 'search',+ position: 'right',+ },],},footer: {diff --git a/docs/my-website/src/components/NavigationCards/index.js b/docs/my-website/src/components/NavigationCards/index.jsindex 1d5d3e577ac..5efd89ee140 100644--- a/docs/my-website/src/components/NavigationCards/index.js+++ b/docs/my-website/src/components/NavigationCards/index.js@@ -1,4 +1,5 @@import React from 'react';+import Link from '@docusaurus/Link';import styles from './styles.module.css';export default function NavigationCards({ items, columns = 2 }) {@@ -11,9 +12,9 @@ export default function NavigationCards({ items, columns = 2 }) {const isExternal =item.to && (item.to.startsWith('http://') || item.to.startsWith('https://'));return (- <a+ <Linkkey={i}- href={item.to}+ to={item.to}className={styles.card}target={isExternal ? '_blank' : undefined}rel={isExternal ? 'noopener noreferrer' : undefined}@@ -35,7 +36,7 @@ export default function NavigationCards({ items, columns = 2 }) {{isExternal && (<span className={styles.externalIcon}>↗</span>)}- </a>+ </Link>);})}</div>