Skip to content

Commit 17ec3ae

Browse files
committed
Implement auto splitters docs page
1 parent c59fa47 commit 17ec3ae

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/app/auto-splitters.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 AutoSplitters() {
4+
return (
5+
<div>
6+
<AppGitHubGenericMarkdown url="https://raw.githubusercontent.com/LibreSplit/LibreSplit/refs/heads/main/docs/auto-splitters.md" />
7+
</div>
8+
);
9+
}

src/router.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { AutoSplitters } from "./app/auto-splitters";
12
import { Converter } from "./app/converter";
23
import { Home } from "./app/home";
34
import { NotFound } from "./app/not-found";
@@ -9,6 +10,9 @@ export default function AppRouter() {
910
<Route path="/" element={<Home />} />
1011
<Route path="/converter" element={<Converter />} />
1112

13+
{/* Documentation pages pulled from GitHub. */}
14+
<Route path="/docs/auto-splitters.md" element={<AutoSplitters />} />
15+
1216
{/* Fall back on app's 404 page. This is because of the SPA routing trick with 404.html used in GitHub Pages. */}
1317
<Route path="*" element={<NotFound />} />
1418
</Routes>

0 commit comments

Comments
 (0)