@@ -6,7 +6,7 @@ import plot from "./markdown-it-plot.js";
66// https://vitepress.dev/reference/site-config
77// prettier-ignore
88export default defineConfig ( {
9- title : "Observable Plot" ,
9+ title : "Plot" ,
1010 description : "The JavaScript library for exploratory data visualization" ,
1111 appearance : "force-auto" ,
1212 base : "/plot/" ,
@@ -17,6 +17,16 @@ export default defineConfig({
1717 { find : "@observablehq/plot" , replacement : path . resolve ( "./src/index.js" ) } ,
1818 { find : / ^ .* \/ V P F o o t e r \. v u e $ / , replacement : fileURLToPath ( new URL ( "./theme/CustomFooter.vue" , import . meta. url ) ) }
1919 ]
20+ } ,
21+ define : {
22+ __APP_VERSION__ : JSON . stringify ( process . env . npm_package_version )
23+ }
24+ } ,
25+ vue : {
26+ template : {
27+ compilerOptions : {
28+ isCustomElement : ( tag ) => tag . startsWith ( "observable-" )
29+ }
2030 }
2131 } ,
2232 markdown : {
@@ -31,10 +41,11 @@ export default defineConfig({
3141 [ "link" , { rel : "apple-touch-icon" , href : "https://static.observablehq.com/favicon-512.0667824687f99c942a02e06e2db1a060911da0bf3606671676a255b1cf97b4fe.png" } ] ,
3242 [ "link" , { rel : "icon" , type : "image/png" , href : "https://static.observablehq.com/favicon-512.0667824687f99c942a02e06e2db1a060911da0bf3606671676a255b1cf97b4fe.png" , sizes : "512x512" } ] ,
3343 [ "script" , { async : "" , src : "https://www.googletagmanager.com/gtag/js?id=G-9B88TP6PKQ" } ] ,
34- [ "script" , { } , "window.dataLayer=window.dataLayer||[];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js',new Date());\ngtag('config','G-9B88TP6PKQ');" ]
44+ [ "script" , { } , "window.dataLayer=window.dataLayer||[];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js',new Date());\ngtag('config','G-9B88TP6PKQ');" ] ,
45+ [ "script" , { async : "" , defer : "" , src : "https://static.observablehq.com/assets/components/observable-made-by.js" } ] ,
3546 ] ,
3647 sitemap : {
37- hostname : ' https://observablehq.com/plot/'
48+ hostname : " https://observablehq.com/plot/"
3849 } ,
3950 themeConfig : {
4051 // https://vitepress.dev/reference/default-theme-config
@@ -43,12 +54,6 @@ export default defineConfig({
4354 light : "/observable-light.svg" ,
4455 dark : "/observable-dark.svg"
4556 } ,
46- nav : [
47- { text : "Home" , link : "/" } ,
48- { text : "Examples" , link : "https://observablehq.com/@observablehq/plot-gallery" } ,
49- { text : "Community" , link : "/community" } ,
50- { text : "D3" , link : "https://d3js.org" }
51- ] ,
5257 sidebar : [
5358 {
5459 text : "Introduction" ,
@@ -148,13 +153,6 @@ export default defineConfig({
148153 search : {
149154 provider : "local"
150155 } ,
151- socialLinks : [
152- { icon : "github" , link : "https://github.com/observablehq/plot" } ,
153- { icon : "x" , link : "https://twitter.com/observablehq" } ,
154- { icon : "slack" , link : "https://observablehq.com/slack/join" } ,
155- { icon : "linkedin" , link : "https://www.linkedin.com/company/observable" } ,
156- { icon : "youtube" , link : "https://www.youtube.com/c/Observablehq" }
157- ] ,
158156 footer : {
159157 message : "Library released under <a style='text-decoration:underline;' href='https://github.com/observablehq/plot/blob/main/LICENSE'>ISC License</a>." ,
160158 copyright : `Copyright 2020–${ new Date ( ) . getUTCFullYear ( ) } Observable, Inc.`
0 commit comments