Skip to content

Commit

Permalink
Merge pull request #12 from gzimbron/documentation-changes
Browse files Browse the repository at this point in the history
Added Author's and Repository Icon Links
  • Loading branch information
gzimbron authored Nov 6, 2024
2 parents f2260ca + fec8a06 commit 4109801
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/spicy-pumpkins-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"documentation": patch
---

Added Github Repo Icon, Authors Web Icon
3 changes: 2 additions & 1 deletion apps/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"vite": "^4.0.0"
},
"dependencies": {
"@gzim/svelte-actions": "workspace:*"
"@gzim/svelte-actions": "workspace:*",
"@iconify/svelte": "3.1.6"
},
"type": "module"
}
32 changes: 26 additions & 6 deletions apps/documentation/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,19 @@
import { base } from '$app/paths';
import { Button, KitDocs, KitDocsLayout, createSidebarContext } from '@svelteness/kit-docs';
import Icon from '@iconify/svelte';
/** @type {import('./$types').LayoutData} */
export let data;
const GITHUB_LINK = 'https://github.com/gzimbron/svelte-actions';
const ZIMBRON_LINK = 'https://zimbron.dev';
$: ({ meta, sidebar } = data);
/** @type {import('@svelteness/kit-docs').NavbarConfig} */
const navbar = {
links: [
{
title: 'Github',
slug: 'https://github.com/gzimbron/svelte-actions'
}
]
links: []
};
const { activeCategory } = createSidebarContext(sidebar);
Expand All @@ -49,6 +48,27 @@
<Button href="{base}/">Svelte Actions 🪄</Button>
</div>
<div slot="navbar-right-alt">
<div class="flex">
<a
href={ZIMBRON_LINK}
target="_blank"
title="Author's website"
class="relative flex transform-gpu items-center rounded-md border-0 p-2 transition-transform hover:scale-[1.1] text-xl"
>
<Icon icon="mdi:web" />
</a>
<a
href={GITHUB_LINK}
target="_blank"
title="GitHub repository"
class="relative flex transform-gpu items-center rounded-md border-0 p-2 transition-transform hover:scale-[1.1] text-xl"
>
<Icon icon="mdi:github" />
</a>
</div>
</div>
<slot />
</KitDocsLayout>
</KitDocs>
Expand Down
13 changes: 13 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 4109801

Please sign in to comment.