@@ -2,25 +2,32 @@ import { defineConfig } from 'vitepress'
2
2
import { nav } from './themeConfig/nav.js' ;
3
3
import { rewrites } from './themeConfig/rewrites.js' ;
4
4
5
+ const SITE_TITLE = 'Agoric Documentation' ;
6
+ const SITE_DESCRIPTION =
7
+ 'The blockchain framework tailored for JavaScript developers.' ;
8
+
5
9
export default defineConfig ( {
6
10
/* --- FOR DEPLOYMENT TO GITHUB PAGES--- */
7
11
base : '/' , // The base URL the site will be deployed at.
8
12
outDir : '../dist' ,
9
13
/* --- HOME PAGE --- */
10
- title : 'Agoric Documentation' , // title for the site. prefix for all page titles and displayed in the navbar
11
- description : 'The blockchain framework tailored for JavaScript developers.' , // desc for the site; rendered as a <meta> tag in the page HTML
14
+ title : SITE_TITLE , // title for the site. prefix for all page titles and displayed in the navbar
15
+ description : SITE_DESCRIPTION , // desc for the site; rendered as a <meta> tag in the page HTML
12
16
// Extra tags to inject into the page HTML <head>. You can specify each tag in the form of [tagName, { attrName: attrValue }, innerHTML?].
13
17
head : [
14
18
[
15
19
'meta' ,
16
- { name : 'viewport' , content : 'width=device-width, initial-scale=1' } ,
20
+ { property : 'viewport' , content : 'width=device-width, initial-scale=1' } ,
21
+ ] ,
22
+ [ 'meta' , { property : 'og:image' , content : '/agoric-og.png' } ] ,
23
+ [ 'meta' , { property : 'og:type' , content : 'website' } ] ,
24
+ [ 'meta' , { property : 'og:title' , content : SITE_TITLE } ] ,
25
+ [ 'meta' , { property : 'og:site_name' , content : SITE_TITLE } ] ,
26
+ [ 'meta' , { property : 'og:url' , content : 'https://docs.agoric.com' } ] ,
27
+ [
28
+ 'meta' ,
29
+ { property : 'twitter:summary_large_image' , content : '/agoric-og.png' } ,
17
30
] ,
18
- [ 'meta' , { name : 'og:image' , content : '/agoric-og.png' } ] ,
19
- [ 'meta' , { name : 'og:type' , content : 'website' } ] ,
20
- [ 'meta' , { name : 'og:title' , content : 'Agoric Documentation' } ] ,
21
- [ 'meta' , { name : 'og:site_name' , content : 'Agoric Documentation' } ] ,
22
- [ 'meta' , { name : 'og:url' , content : 'https://docs.agoric.com' } ] ,
23
- [ 'meta' , { name : 'twitter:card' , content : '/agoric-og.png' } ] ,
24
31
[ 'link' , { rel : 'icon' , href : '/favicon-full.ico' } ] ,
25
32
[
26
33
'style' ,
0 commit comments