Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions web_ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ThemeProvider } from "./components/ThemeProvider";
import config from "./config";
import "./index.css";
import { CanvasPage } from "./pages/CanvasPage";
import { DocumentationPage } from "./pages/DocumentationPage";
import { GalleryPage } from "./pages/GalleryPage";
import { GithubGalleryPage } from "./pages/GithubGalleryPage";
import { GithubLandingPage } from "./pages/GithubLandingPage";
Expand All @@ -28,6 +29,7 @@ export const App: React.FC = () => {
<Route path="/gallery" element={<GithubGalleryPage />} />
)}
<Route path="/canvas/:id" element={<CanvasPage />} />
<Route path="/docs" element={<DocumentationPage />} />
<Route
path="*"
element={
Expand Down
11 changes: 10 additions & 1 deletion web_ui/src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Github } from "lucide-react";
import { Github, Book } from "lucide-react";
import React from "react";
import { useLocation, useNavigate } from "react-router-dom";
import config from "../config";
Expand Down Expand Up @@ -29,6 +29,15 @@ export const Header: React.FC = () => {
Gallery
</Button>
)}
<Button
onClick={() => navigate("/docs")}
variant="ghost"
size="sm"
className="text-white hover:text-white hover:bg-white/10 flex items-center space-x-1"
>
<Book className="w-4 h-4" />
<span>Docs</span>
</Button>
</div>
<div className="flex items-center space-x-2">
{!isGithubMode && <ServerStatusIndicator />}
Expand Down
Loading