11import { defineConfig } from 'vitepress'
22
3+ const SITE_URL = 'https://maris-development.github.io/beacon/'
4+ const OG_IMAGE = SITE_URL + 'hero.png'
5+ const DESCRIPTION =
6+ 'Beacon is an open-source (AGPL-3.0) data lakehouse query engine for scientific and climate data — query NetCDF, Zarr, Parquet, GeoTIFF, CSV, ODV, Arrow and Atlas files in place over SQL and JSON APIs, on local storage or S3, with no data migration.'
7+
8+ const structuredData = [
9+ {
10+ '@context' : 'https://schema.org' ,
11+ '@type' : 'WebSite' ,
12+ name : 'Beacon' ,
13+ url : SITE_URL ,
14+ description : DESCRIPTION
15+ } ,
16+ {
17+ '@context' : 'https://schema.org' ,
18+ '@type' : 'SoftwareApplication' ,
19+ name : 'Beacon' ,
20+ applicationCategory : 'DeveloperApplication' ,
21+ operatingSystem : 'Linux, macOS, Docker' ,
22+ description : DESCRIPTION ,
23+ url : SITE_URL ,
24+ license : 'https://www.gnu.org/licenses/agpl-3.0.html' ,
25+ offers : { '@type' : 'Offer' , price : '0' , priceCurrency : 'USD' } ,
26+ sameAs : [ 'https://github.com/maris-development/beacon' ]
27+ }
28+ ]
29+
330// https://vitepress.dev/reference/site-config
431export default defineConfig ( {
532 markdown : {
@@ -8,12 +35,46 @@ export default defineConfig({
835 light : 'light-plus' ,
936 }
1037 } ,
11- head : [ [ 'link' , { rel : 'icon' , href : '/beacon/favicon.ico' } ] ] ,
38+ head : [
39+ [ 'link' , { rel : 'icon' , href : '/beacon/favicon.ico' } ] ,
40+ [ 'meta' , { name : 'author' , content : 'MARIS' } ] ,
41+ [ 'meta' , { property : 'og:type' , content : 'website' } ] ,
42+ [ 'meta' , { property : 'og:site_name' , content : 'Beacon' } ] ,
43+ [ 'meta' , { property : 'og:image' , content : OG_IMAGE } ] ,
44+ [ 'meta' , { name : 'twitter:card' , content : 'summary_large_image' } ] ,
45+ [ 'meta' , { name : 'twitter:image' , content : OG_IMAGE } ] ,
46+ [ 'script' , { type : 'application/ld+json' } , JSON . stringify ( structuredData [ 0 ] ) ] ,
47+ [ 'script' , { type : 'application/ld+json' } , JSON . stringify ( structuredData [ 1 ] ) ] ,
48+ ] ,
1249 base : '/beacon/' ,
1350 ignoreDeadLinks : true ,
1451 title : "Beacon" ,
15- description : "Beacon Documentation" ,
52+ description : DESCRIPTION ,
1653 lastUpdated : true ,
54+ sitemap : { hostname : SITE_URL } ,
55+ transformHead ( { pageData } ) {
56+ const path = pageData . relativePath
57+ . replace ( / \. m d $ / , '.html' )
58+ . replace ( / ( ^ | \/ ) i n d e x \. h t m l $ / , '$1' )
59+ const url = SITE_URL + path
60+ const isHome =
61+ pageData . frontmatter ?. layout === 'home' ||
62+ ! pageData . title ||
63+ pageData . title === 'Beacon'
64+ const title = isHome
65+ ? 'Beacon — a data lakehouse for scientific data'
66+ : `${ pageData . title } | Beacon`
67+ const description =
68+ pageData . description || pageData . frontmatter ?. description || DESCRIPTION
69+ return [
70+ [ 'link' , { rel : 'canonical' , href : url } ] ,
71+ [ 'meta' , { property : 'og:title' , content : title } ] ,
72+ [ 'meta' , { property : 'og:description' , content : description } ] ,
73+ [ 'meta' , { property : 'og:url' , content : url } ] ,
74+ [ 'meta' , { name : 'twitter:title' , content : title } ] ,
75+ [ 'meta' , { name : 'twitter:description' , content : description } ]
76+ ]
77+ } ,
1778 themeConfig : {
1879 search : {
1980 provider : 'local'
@@ -817,6 +878,14 @@ export default defineConfig({
817878 socialLinks : [
818879 { icon : 'slack' , link : 'https://join.slack.com/t/beacontechnic-wwa5548/shared_invite/zt-2dp1vv56r-tj_KFac0sAKNuAgUKPPDRg' } ,
819880 { icon : 'github' , link : 'https://github.com/maris-development/beacon' } ,
820- ]
881+ ] ,
882+ editLink : {
883+ pattern : 'https://github.com/maris-development/beacon/edit/main/docs/:path' ,
884+ text : 'Edit this page on GitHub'
885+ } ,
886+ footer : {
887+ message : 'Released under the AGPL-3.0 License.' ,
888+ copyright : 'Copyright © MARIS & the Beacon contributors'
889+ }
821890 }
822891} )
0 commit comments