Skip to content

Commit c3a4b29

Browse files
committed
feat(stage-web,docs): configured open graph protocol image
1 parent bfdd857 commit c3a4b29

5 files changed

Lines changed: 34 additions & 19 deletions

File tree

apps/stage-web/index.html

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,26 @@
33
<head>
44
<meta charset="UTF-8" />
55
<title>AIRI</title>
6-
<meta name="description" content="Open source attempt to create cyber companion">
76
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
87
<link rel="icon" type="image/svg+xml" href="/favicon.svg" sizes="any" />
98
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
10-
<meta name="theme-color" content="rgb(18,18,18)" id="themeColor" />
9+
<meta name="description" content="Open source attempt to create cyber companion.">
1110
<meta name="apple-mobile-web-app-title" content="AIRI" />
11+
<meta name="theme-color" content="rgb(18,18,18)" id="themeColor" />
12+
13+
<!-- Open Graph Protocol -->
14+
<meta property="og:title" content="AIRI">
15+
<meta property="og:site_name" content="AIRI">
16+
<meta property="og:image" content="https://airi.moeru.ai/open-graph.png">
17+
<meta property="og:description" content="Top 1 open source attempt to create cyber companion, capable of playing Minecraft, Factorio, Balatro, etc. .">
18+
<meta property="og:url" content="https://airi.moeru.ai/docs/en/">
19+
20+
<!-- Open Graph Protocol extension, Twitter cards -->
21+
<meta name="twitter:title" content="AIRI">
22+
<meta name="twitter:description" content="Top 1 open source attempt to create cyber companion, capable of playing Minecraft, Factorio, Balatro, etc. .">
23+
<meta name="twitter:image" content="https://airi.moeru.ai/open-graph.png">
24+
<meta name="twitter:card" content="summary_large_image">
25+
<meta name="twitter:creator" content="Moeru AI">
1226
<script>
1327
;(function () {
1428
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
188 KB
Loading

docs/.vitepress/config.ts

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import {
1919
github,
2020
ogImage,
2121
ogUrl,
22-
rekaDescription,
23-
rekaName,
24-
rekaShortName,
22+
projectDescription,
23+
projectName,
24+
projectShortName,
2525
releases,
2626
x,
2727
} from './meta'
@@ -39,22 +39,23 @@ function withBase(url: string) {
3939
export default defineConfig({
4040
cleanUrls: true,
4141
ignoreDeadLinks: true,
42-
title: rekaName,
43-
description: rekaDescription,
44-
titleTemplate: rekaShortName,
42+
title: projectName,
43+
description: projectDescription,
44+
titleTemplate: projectShortName,
4545
head: [
4646
['meta', { name: 'theme-color', content: '#0b0d0f' }],
4747
['link', { rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg', sizes: 'any' }],
4848
['link', { rel: 'apple-touch-icon', href: '/apple-touch-icon.png', sizes: '180x180' }],
49-
['meta', { name: 'apple-mobile-web-app-title', content: rekaName }],
50-
['meta', { name: 'author', content: `${teamMembers.map(c => c.name).join(', ')} and ${rekaName} contributors` }],
49+
['meta', { name: 'apple-mobile-web-app-title', content: projectName }],
50+
['meta', { name: 'author', content: `${teamMembers.map(c => c.name).join(', ')} and ${projectName} contributors` }],
5151
['meta', { name: 'keywords', content: '' }],
52-
['meta', { property: 'og:title', content: rekaName }],
53-
['meta', { property: 'og:description', content: rekaDescription }],
54-
['meta', { property: 'og:url', content: ogUrl }],
52+
['meta', { property: 'og:title', content: projectName }],
53+
['meta', { property: 'og:site_name', content: projectName }],
5554
['meta', { property: 'og:image', content: ogImage }],
56-
['meta', { name: 'twitter:title', content: rekaName }],
57-
['meta', { name: 'twitter:description', content: rekaDescription }],
55+
['meta', { property: 'og:description', content: projectDescription }],
56+
['meta', { property: 'og:url', content: ogUrl }],
57+
['meta', { name: 'twitter:title', content: projectName }],
58+
['meta', { name: 'twitter:description', content: projectDescription }],
5859
['meta', { name: 'twitter:image', content: ogImage }],
5960
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
6061
['link', { rel: 'mask-icon', href: '/logo.svg', color: '#ffffff' }],

docs/.vitepress/meta.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// noinspection ES6PreferShortImport: IntelliJ IDE hint to avoid warning to use `~/contributors`, will fail on build if changed
22

33
/* Texts */
4-
export const rekaName = 'Project AIRI'
5-
export const rekaShortName = 'AIRI'
6-
export const rekaDescription
4+
export const projectName = 'Project AIRI'
5+
export const projectShortName = 'AIRI'
6+
export const projectDescription
77
= 'An open-source attempt to re-create Neuro-sama, the most famous AI VTuber on this earth, but also forming a cyber companion for everyone.'
88

99
/* vitepress head */
1010
export const ogUrl = 'https://airi.moeru.ai/docs/'
11-
export const ogImage = `${ogUrl}og.jpg`
11+
export const ogImage = `${ogUrl}open-graph.png`
1212

1313
/* GitHub and social links */
1414
export const github = 'https://github.com/moeru-ai/airi'

docs/content/public/open-graph.png

188 KB
Loading

0 commit comments

Comments
 (0)