|
1 | 1 | import { defineConfig } from "astro/config"; |
2 | 2 | import starlight from "@astrojs/starlight"; |
| 3 | +import { ion } from "starlight-ion-theme"; |
3 | 4 |
|
4 | 5 | import d2 from "astro-d2"; |
5 | 6 |
|
| 7 | +const orgSchema = { |
| 8 | + "@context": "https://schema.org", |
| 9 | + "@type": "Organization", |
| 10 | + "@id": "https://osvauld.com/#organization", |
| 11 | + "url": "https://docs.osvauld.com", |
| 12 | + "name": "Osvauld", |
| 13 | + "legalName": "OSVAULD SECURITY SOLUTIONS PRIVATE LIMITED", |
| 14 | + "description": "Own Your Data, Leave No Footprint with Osvauld - a Rust framework for building peer-to-peer applications with privacy, security, and user control.", |
| 15 | + "slogan": "Own Your Data, Leave No Footprint", |
| 16 | + "logo": "https://www.osvauld.com/assets/logo.png", |
| 17 | + "sameAs": [ |
| 18 | + "https://github.com/osvauld", |
| 19 | + "https://www.osvauld.com", |
| 20 | + "https://in.linkedin.com/company/osvauld", |
| 21 | + "https://buymeacoffee.com/osvauld", |
| 22 | + "https://osvauld.com/#corporation" |
| 23 | + ] |
| 24 | +} |
| 25 | + |
6 | 26 | // https://astro.build/config |
7 | 27 | export default defineConfig({ |
8 | 28 | integrations: [starlight({ |
9 | | - title: "Osvauld Docs", |
| 29 | + title: "Documentation", |
| 30 | + favicon: '/favicon.ico', |
| 31 | + social: [ |
| 32 | + { icon: 'telegram', label: 'Telegram', href: 'https://t.me/+tjZLZK8JV8g0NTVl'}, |
| 33 | + { |
| 34 | + icon: 'github', |
| 35 | + label: 'GitHub', |
| 36 | + href: 'https://github.com/osvauld/osvauld', |
| 37 | + }, |
| 38 | + { |
| 39 | + icon: 'email', |
| 40 | + label: 'Email', |
| 41 | + href: 'mailto:abe@osvauld.com?subject=Hello Osvauld', |
| 42 | + } |
| 43 | + ], |
10 | 44 | customCss: ["./src/styles/custom.css"], |
11 | 45 | sidebar: [ |
12 | 46 | { |
@@ -35,7 +69,43 @@ export default defineConfig({ |
35 | 69 | ], |
36 | 70 | }, |
37 | 71 | ], |
38 | | - }), |
| 72 | + head: [ |
| 73 | + { |
| 74 | + tag: 'meta', |
| 75 | + attrs: { |
| 76 | + property: 'og:image', |
| 77 | + content: '/osvauldthumb.png', |
| 78 | + }, |
| 79 | + }, |
| 80 | + { |
| 81 | + tag: 'meta', |
| 82 | + attrs: { |
| 83 | + property: 'og:image:alt', |
| 84 | + content: 'Osvauld Documentation Preview', |
| 85 | + }, |
| 86 | + }, |
| 87 | + { |
| 88 | + tag: 'meta', |
| 89 | + attrs: { |
| 90 | + name: 'twitter:card', |
| 91 | + content: 'summary_large_image', |
| 92 | + }, |
| 93 | + }, |
| 94 | + { |
| 95 | + tag: 'meta', |
| 96 | + attrs: { |
| 97 | + name: 'twitter:image', |
| 98 | + content: '/osvauldthumb.png', |
| 99 | + }, |
| 100 | + }, |
| 101 | + { |
| 102 | + tag: 'script', |
| 103 | + attrs: { type: 'application/ld+json' }, |
| 104 | + content: JSON.stringify(orgSchema), |
| 105 | + }, |
| 106 | + ], |
| 107 | + plugins: [ion()], |
| 108 | + },), |
39 | 109 |
|
40 | 110 | d2({ |
41 | 111 | layout: "elk" |
|
0 commit comments