feat: add documentation link and redirect to WIKI_URI

This commit is contained in:
Dries Augustyns
2026-02-17 10:30:17 +01:00
parent a928666dfc
commit 4c81d9ec04
2 changed files with 27 additions and 0 deletions
@@ -1,9 +1,11 @@
import {useActiveProject} from '../lib/contexts/ActiveProjectProvider';
import {useUser} from '../lib/hooks/useUser';
import {WIKI_URI} from '../lib/constants';
import {network} from '../lib/network';
import {
Activity,
BarChart3,
BookOpen,
ChevronDown,
FileText,
Layers,
@@ -246,6 +248,16 @@ export function DashboardLayout({children}: DashboardLayoutProps) {
{/* Settings & User Menu */}
<div className="border-t border-neutral-200 p-3 space-y-1">
<a
href={WIKI_URI}
target="_blank"
rel="noopener noreferrer"
className="flex items-center gap-3 px-3 py-2 text-sm font-medium rounded-lg transition-colors text-neutral-700 hover:bg-neutral-50 hover:text-neutral-900"
>
<BookOpen className="h-5 w-5" />
Documentation
</a>
<Link
href="/settings"
onClick={() => setShowMobileMenu(false)}
+15
View File
@@ -0,0 +1,15 @@
import {WIKI_URI} from '../lib/constants';
import type {GetServerSideProps} from 'next';
export default function Docs() {
return null;
}
export const getServerSideProps: GetServerSideProps = async () => {
return {
redirect: {
destination: WIKI_URI,
permanent: false,
},
};
};