Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit 16586f0

Browse files
committed
Tue May 7 17:11:54 PDT 2024
1 parent 3b85834 commit 16586f0

8 files changed

Lines changed: 76 additions & 18 deletions

File tree

bun.lockb

-60 KB
Binary file not shown.

docs/app.config.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ export default defineAppConfig({
3030
footer: {
3131
credits: '© Mykhailo Marynenko 2024',
3232
colorMode: false,
33-
links: [{
34-
icon: 'i-simple-icons-github',
35-
to: 'https://github.com/0x77dev/ava',
36-
target: '_blank',
37-
'aria-label': 'GitHub'
38-
}]
33+
links: [
34+
{
35+
icon: 'i-simple-icons-github',
36+
to: 'https://github.com/0x77dev/ava',
37+
target: '_blank',
38+
'aria-label': 'GitHub'
39+
}
40+
]
3941
},
4042
toc: {
4143
title: 'Table of Contents',

docs/components/Footer.vue

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
const { footer } = useAppConfig()
3+
const isOpen = ref(false)
34
</script>
45

56
<template>
@@ -12,12 +13,33 @@ const { footer } = useAppConfig()
1213
<UColorModeButton v-if="footer?.colorMode" />
1314

1415
<template v-if="footer?.links">
15-
<UButton
16-
v-for="(link, index) of footer?.links"
17-
:key="index"
18-
v-bind="{ color: 'gray', variant: 'ghost', ...link }"
19-
/>
16+
<UButton v-for="(link, index) of footer?.links" :key="index"
17+
v-bind="{ color: 'gray', variant: 'ghost', ...link }" />
2018
</template>
19+
<UButton color="gray" label="Acknowledgments" variant="ghost" @click="isOpen = true" />
20+
21+
<UModal v-model="isOpen" fullscreen>
22+
<UCard :ui="{
23+
base: 'h-full flex flex-col',
24+
rounded: '',
25+
divide: 'divide-y divide-gray-100 dark:divide-gray-800',
26+
body: {
27+
base: 'grow'
28+
}
29+
}">
30+
<template #header>
31+
<div class="flex items-center justify-between">
32+
<h3 class="text-base font-semibold leading-6 text-gray-900 dark:text-white">
33+
Acknowledgments
34+
</h3>
35+
<UButton color="gray" variant="ghost" icon="i-heroicons-x-mark-20-solid" class="-my-1"
36+
@click="isOpen = false" />
37+
</div>
38+
</template>
39+
40+
<iframe class="bg-inherit w-full h-full p-5" src="/api/acknowledgments" target="_self" />
41+
</UCard>
42+
</UModal>
2143
</template>
2244
</UFooter>
2345
</template>

docs/content/index.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,27 @@ hero:
2323
to: https://github.com/0x77dev/ava
2424
target: _blank
2525
code: |
26-
```bash [Terminal]
27-
# Home Assistant OS
28-
# TODO: Installation script
29-
```
26+
::tabs
27+
::div
28+
---
29+
label: Installation
30+
icon: i-ph-download-duotone
31+
---
32+
33+
1. Install [Home Assistant Supervised](https://www.home-assistant.io/installation/) and [HACS](https://hacs.xyz/docs/installation/prerequisites) if you haven't already.
34+
35+
2. Add Ava's repositories for add-ons and components
36+
37+
- [Add HACS Repository](https://my.home-assistant.io/redirect/hacs_repository/?owner=0x77dev&repository=ava&category=integration)
38+
- [Add Supervisor Add-on Repository](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https://github.com/0x77dev/ava)
39+
40+
3. Install the Ava add-on from the Supervisor store and the Ava integration from HACS.
41+
42+
4. [Configure the add-on and integration in Home Assistant](/configuration), create a new assistant and you're ready to go!
43+
44+
::
45+
::
46+
3047
features:
3148
title: 'All-in-one tool to host your own assistant'
3249
links:

docs/nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default defineNuxtConfig({
2626
'mask-position': 'center'
2727
},
2828
collections: {
29-
...getIconCollections(['heroicons', 'simple-icons', 'ph']),
29+
...getIconCollections(['heroicons', 'simple-icons', 'ph', 'icon-park']),
3030
ava: {
3131
icons: {
3232
'ollama-logo': {

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"nuxt-og-image": "^2.2.4"
2323
},
2424
"devDependencies": {
25+
"@iconify-json/icon-park": "^1.1.13",
2526
"@iconify-json/ph": "^1.1.12",
2627
"@nuxt/eslint-config": "^0.3.0",
2728
"@nuxthq/studio": "^1.0.13",

docs/pages/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script setup lang="ts">
1+
<script setup>
22
const { data: page } = await useAsyncData('index', () => queryContent('/').findOne())
33
44
useSeoMeta({
@@ -29,7 +29,7 @@ useSeoMeta({
2929
<MDC :value="page.hero.title" />
3030
</template>
3131

32-
<MDC :value="page.hero.code" tag="pre" class="prose prose-primary dark:prose-invert mx-auto" />
32+
<MDC :value="page.hero.code" tag="div" class="prose prose-primary dark:prose-invert mx-auto" />
3333
</ULandingHero>
3434

3535
<ULandingSection :title="page.features.title" :links="page.features.links">

docs/server/api/acknowledgments.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export default defineCachedEventHandler(async () => {
2+
const res = await fetch('https://app.fossa.com/attribution/149f340b-96c9-4c37-acc0-e664766ec26d', {
3+
redirect: 'follow'
4+
})
5+
6+
return new Response(await res.arrayBuffer(), {
7+
status: res.status,
8+
statusText: res.statusText,
9+
headers: {
10+
'Content-Type': 'text/plain'
11+
}
12+
})
13+
}, {
14+
swr: true,
15+
maxAge: 60 * 60 * 24
16+
})

0 commit comments

Comments
 (0)