Skip to content

Commit

Permalink
chore: rename /docs to /api
Browse files Browse the repository at this point in the history
  • Loading branch information
rotimi-best committed Dec 4, 2024
1 parent 75c2655 commit 562120b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { Navigation } from '$lib/components/navigation';
import HomePage from '$lib/pages/home/page.svelte';
import DocsPage from '$lib/pages/docs/page.svelte';
import ApiPage from '$lib/pages/api/page.svelte';
import OtherPage from '$lib/pages/other/page.svelte';
import { ModeWatcher } from 'mode-watcher';
Expand All @@ -20,12 +20,12 @@

<div class="">
<Route path="/stats/:id" component={OtherPage} />
<Route path="/api">
<ApiPage />
</Route>
<Route path="/">
<HomePage />
</Route>
<Route path="/docs">
<DocsPage />
</Route>
</div>
</main>
</Router>
4 changes: 2 additions & 2 deletions src/lib/components/navigation/navigation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
<span class="hidden font-bold xl:inline-block">Naija Stars</span>

<Link
to={'/docs'}
to={'/api'}
class="transition-colors text-foreground/50 hover:underline cursor-pointer"
let:active
>
<span class={active ? 'text-foreground/90' : ''}> Docs </span>
<span class={active ? 'text-foreground/90' : ''}> API </span>
</Link>
</a>
<!-- <nav class="flex items-center gap-3 text-sm">
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<section
class="flex flex-col justify-center items-center gap-5 rounded-md border md:h-full p-5"
>
<h1 class="text-4xl text-center">Welcome to Naija Stars Docs</h1>
<h1 class="text-4xl text-center">Welcome to Naija Stars API</h1>
<img src={logo} alt="logo" class="w-28 h-28" />
</section>
{:else if state === 'get'}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/lib/pages/home/page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
repositories = result.data.map((repo: Repository, index: number) => ({
...repo,
id: index + 1,
id: index + 1 + (page - 1) * 10,
}));
apiMetadata = {
pagination: result.pagination,
Expand Down

0 comments on commit 562120b

Please sign in to comment.