Skip to content

Commit

Permalink
fix Docs router
Browse files Browse the repository at this point in the history
  • Loading branch information
LankyMoose committed Sep 3, 2023
1 parent 9f7284e commit ccd8bc7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/components.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<script
type="module"
crossorigin
src="/cinnabun/assets/index-029c89c6.js"
src="/cinnabun/assets/index-f89d52e3.js"
></script>
<link rel="stylesheet" href="/cinnabun/assets/index-5ceda24a.css" />
</head>
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<script
type="module"
crossorigin
src="/cinnabun/assets/index-029c89c6.js"
src="/cinnabun/assets/index-f89d52e3.js"
></script>
<link rel="stylesheet" href="/cinnabun/assets/index-5ceda24a.css" />
</head>
Expand Down
11 changes: 4 additions & 7 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/cinnabun/Cinnabun-Happy.svg" />
<link rel="icon" type="image/svg+xml" href="/Cinnabun-Happy.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cinnabun</title>
<script
type="module"
crossorigin
src="/cinnabun/assets/index-029c89c6.js"
></script>
<link rel="stylesheet" href="/cinnabun/assets/index-5ceda24a.css" />
<script type="module" crossorigin src="/assets/index-f89d52e3.js"></script>
<link rel="stylesheet" href="/assets/index-5ceda24a.css">
</head>
<body>
<div id="app"></div>

</body>
</html>
12 changes: 6 additions & 6 deletions sandbox/docs/src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import { Components } from "./Components"
const NavLinks = () => {
return (
<>
<Link store={pathStore} to="/getting-started">
<Link store={pathStore} to="/cinnabun/getting-started">
Getting Started
</Link>
<Link store={pathStore} to="/components">
<Link store={pathStore} to="/cinnabun/components">
Components
</Link>
</>
Expand All @@ -24,7 +24,7 @@ export const App = () => {
<>
<header>
<div className="header-inner">
<Link className="flex" store={pathStore} to="/">
<Link className="flex" store={pathStore} to="/cinnabun">
<Logo />
</Link>
<nav>
Expand All @@ -38,9 +38,9 @@ export const App = () => {

<main>
<Router store={pathStore}>
<Route path="/" component={About} />
<Route path="/getting-started" component={GettingStarted} />
<Route path="/components" component={Components} />
<Route path="/cinnabun" component={About} />
<Route path="/cinnabun/getting-started" component={GettingStarted} />
<Route path="/cinnabun/components" component={Components} />
</Router>
</main>
<footer>
Expand Down

0 comments on commit ccd8bc7

Please sign in to comment.