Skip to content

Commit 66b3c6b

Browse files
committed
Implement split file docs page
1 parent 45c70e5 commit 66b3c6b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/app/split-files.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { AppGitHubGenericMarkdown } from "@/components/libresplit/AppGitHubGenericMarkdown";
2+
3+
export function SplitFiles() {
4+
return (
5+
<div>
6+
<AppGitHubGenericMarkdown url="https://raw.githubusercontent.com/LibreSplit/LibreSplit/refs/heads/main/docs/settings-keybinds.md" />
7+
</div>
8+
);
9+
}

src/router.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Converter } from "./app/converter";
33
import { Home } from "./app/home";
44
import { NotFound } from "./app/not-found";
55
import { SettingsKeybinds } from "./app/settings-keybinds";
6+
import { SplitFiles } from "./app/split-files";
67
import { Route, Routes } from "react-router";
78

89
export default function AppRouter() {
@@ -14,6 +15,7 @@ export default function AppRouter() {
1415
{/* Documentation pages pulled from GitHub. */}
1516
<Route path="/docs/auto-splitters.md" element={<AutoSplitters />} />
1617
<Route path="/docs/settings-keybinds.md" element={<SettingsKeybinds />} />
18+
<Route path="/docs/split-files.md" element={<SplitFiles />} />
1719

1820
{/* Fall back on app's 404 page. This is because of the SPA routing trick with 404.html used in GitHub Pages. */}
1921
<Route path="*" element={<NotFound />} />

0 commit comments

Comments
 (0)