Skip to content

Commit 5ce5b07

Browse files
committed
docs(site): remove redundant Website/Docs/Changelog nav links
The top-left logo already links to the website, so the three sidebar nav links were redundant. Drop the links array and the now-unused label/URL helpers. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0145MY7RdJr8KuRMyn5oKAR6
1 parent d7f07fe commit 5ce5b07

1 file changed

Lines changed: 1 addition & 34 deletions

File tree

apps/docs/lib/layout.shared.tsx

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,10 @@ export const gitConfig = {
77
branch: 'main',
88
};
99

10-
const NAV_LABELS: Record<string, { website: string; docs: string; changelog: string }> = {
11-
en: { website: 'Website', docs: 'Docs', changelog: 'Changelog' },
12-
'zh-Hans': { website: '官网', docs: '文档', changelog: '更新日志' },
13-
ja: { website: '公式サイト', docs: 'ドキュメント', changelog: '変更履歴' },
14-
de: { website: 'Website', docs: 'Dokumentation', changelog: 'Änderungen' },
15-
es: { website: 'Sitio web', docs: 'Documentación', changelog: 'Cambios' },
16-
fr: { website: 'Site web', docs: 'Documentation', changelog: 'Journal' },
17-
ko: { website: '웹사이트', docs: '문서', changelog: '변경 내역' },
18-
};
19-
20-
const RELEASES_URL = 'https://github.com/objectstack-ai/objectos/releases';
2110
const WEBSITE_URL = 'https://www.objectos.ai';
2211

23-
function localePrefix(lang: string): string {
24-
return lang === 'en' ? '' : `/${lang}`;
25-
}
26-
2712
export function baseOptions(lang: string = 'en'): BaseLayoutProps {
28-
const labels = NAV_LABELS[lang] ?? NAV_LABELS.en;
29-
const prefix = localePrefix(lang);
13+
void lang;
3014

3115
return {
3216
nav: {
@@ -45,23 +29,6 @@ export function baseOptions(lang: string = 'en'): BaseLayoutProps {
4529
),
4630
transparentMode: 'top',
4731
},
48-
links: [
49-
{
50-
text: labels.website,
51-
url: WEBSITE_URL,
52-
external: true,
53-
},
54-
{
55-
text: labels.docs,
56-
url: `${prefix}/docs`,
57-
active: 'nested-url',
58-
},
59-
{
60-
text: labels.changelog,
61-
url: RELEASES_URL,
62-
external: true,
63-
},
64-
],
6532
githubUrl: `https://github.com/${gitConfig.user}/${gitConfig.repo}`,
6633
};
6734
}

0 commit comments

Comments
 (0)