@@ -15,7 +15,7 @@ const envSpecGrammar = JSON.parse(fs.readFileSync('../vscode-plugin/language/env
1515
1616// https://astro.build/config
1717export default defineConfig ( {
18- site : " https://varlock.dev" ,
18+ site : ' https://varlock.dev' ,
1919 vite : {
2020 resolve : {
2121 alias : {
@@ -27,93 +27,94 @@ export default defineConfig({
2727 fonts : [
2828 {
2929 provider : fontProviders . google ( ) ,
30- name : " Pixelify Sans" ,
31- cssVariable : " --font-pixelify"
30+ name : ' Pixelify Sans' ,
31+ cssVariable : ' --font-pixelify' ,
3232 } ,
3333 {
3434 provider : fontProviders . google ( ) ,
35- name : " JetBrains Mono" ,
36- cssVariable : " --font-jetbrains-mono"
35+ name : ' JetBrains Mono' ,
36+ cssVariable : ' --font-jetbrains-mono' ,
3737 } ,
3838 ] ,
3939 } ,
4040 image : {
41- service : passthroughImageService ( )
41+ service : passthroughImageService ( ) ,
4242 } ,
43- integrations : [ starlight ( {
44- title : 'varlock' ,
45- social : [ { icon : 'github' , label : 'GitHub' , href : 'https://github.com/dmno-dev/varlock' } ] ,
46- components : {
47- Head : '@/components/CustomHead.astro' ,
48- } ,
49- customCss : [ '@/styles/global.css' ] ,
50- plugins : [ starlightLlmsTxt ( ) ] ,
51- head : [
43+ integrations : [
44+ starlight ( {
45+ title : 'varlock' ,
46+ social : [ { icon : 'github' , label : 'GitHub' , href : 'https://github.com/dmno-dev/varlock' } ] ,
47+ components : {
48+ Head : '@/components/CustomHead.astro' ,
49+ } ,
50+ customCss : [ '@/styles/global.css' ] ,
51+ plugins : [ starlightLlmsTxt ( ) ] ,
52+ head : [
5253 // add sitemap to head for discoverability
53- { tag : 'link' , attrs : { rel : 'sitemap' , href : '/sitemap-index.xml' } } ,
54- { tag : 'script' , content : `!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init bs ws ge fs capture De Ai $s register register_once register_for_session unregister unregister_for_session Is getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSurveysLoaded onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey canRenderSurveyAsync identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty xs Ss createPersonProfile Es gs opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing ys debug ks getPageViewId captureTraceFeedback captureTraceMetric".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
54+ { tag : 'link' , attrs : { rel : 'sitemap' , href : '/sitemap-index.xml' } } ,
55+ {
56+ tag : 'script' , content : `!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init bs ws ge fs capture De Ai $s register register_once register_for_session unregister unregister_for_session Is getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSurveysLoaded onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey canRenderSurveyAsync identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty xs Ss createPersonProfile Es gs opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing ys debug ks getPageViewId captureTraceFeedback captureTraceMetric".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
5557 if (window.location.host.includes('varlock.dev')) posthog.init('phc_bfzH97VIta8yQa8HrsgmitqS6rTydjMISs0m8aqJTnq', {
5658 api_host: 'https://ph.varlock.dev',
57- })`
58- } ,
59- // noindex for all pages, TODO remove before launch
60- { tag : 'meta' , attrs : { name : 'robots' , content : 'noindex' } } ,
61- ] ,
62- sidebar : [
63- {
64- label : 'Getting Started' ,
65- items : [
66- { label : 'Installation' , slug : 'getting-started/installation' } ,
67- ] ,
68- } ,
69- {
70- label : 'Guides' ,
71- items : [
72- { label : 'Schema' , slug : 'guides/schema' } ,
73- { label : 'Integration' , slug : 'guides/integration' } ,
74- { label : 'Secrets' , slug : 'guides/secrets' } ,
75- { label : 'Cursor' , slug : 'guides/cursor' , badge : 'New' } ,
76- { label : 'Telemetry' , slug : 'guides/telemetry' } ,
77- ] ,
59+ })` ,
60+ } ,
61+ // noindex for all pages, TODO remove before launch
62+ { tag : 'meta' , attrs : { name : 'robots' , content : 'noindex' } } ,
63+ ] ,
64+ sidebar : [
65+ {
66+ label : 'Getting Started' ,
67+ items : [ { label : 'Installation' , slug : 'getting-started/installation' } ] ,
68+ } ,
69+ {
70+ label : 'Guides' ,
71+ items : [
72+ { label : 'Schema' , slug : 'guides/schema' } ,
73+ { label : 'Integration' , slug : 'guides/integration' } ,
74+ { label : 'Secrets' , slug : 'guides/secrets' } ,
75+ { label : 'Cursor' , slug : 'guides/cursor' , badge : 'New' } ,
76+ { label : 'Telemetry' , slug : 'guides/telemetry' } ,
77+ ] ,
78+ } ,
79+ {
80+ label : 'Reference' ,
81+ items : [
82+ { label : 'CLI' , slug : 'reference/cli-commands' } ,
83+ { label : 'Root decorators' , slug : 'reference/root-decorators' } ,
84+ { label : 'Item decorators' , slug : 'reference/item-decorators' } ,
85+ { label : 'Functions' , slug : 'reference/functions' } ,
86+ ] ,
87+ } ,
88+ {
89+ label : '@env-spec' ,
90+ items : [
91+ { label : 'Overview' , slug : 'env-spec/overview' } ,
92+ { label : 'VS Code extension' , slug : 'env-spec/vs-code-ext' } ,
93+ ] ,
94+ } ,
95+ ] ,
96+ expressiveCode : {
97+ shiki : {
98+ langs : [
99+ {
100+ name : 'env-spec' ,
101+ scopeName : 'source.env-spec' ,
102+ extensions : [ '.env-spec' ] ,
103+ ...envSpecGrammar ,
104+ } ,
105+ ] ,
106+ } ,
78107 } ,
79- {
80- label : 'Reference' ,
81- items : [
82- { label : 'CLI' , slug : 'reference/cli-commands' } ,
83- { label : 'Root decorators' , slug : 'reference/root-decorators' } ,
84- { label : 'Item decorators' , slug : 'reference/item-decorators' } ,
85- { label : 'Functions' , slug : 'reference/functions' } ,
86- ] ,
87- } ,
88- {
89- label : '@env-spec' ,
90- items : [
91- { label : 'Overview' , slug : 'env-spec/overview' } ,
92- { label : 'VS Code extension' , slug : 'env-spec/vs-code-ext' } ,
93- ] ,
94- } ,
95- ] ,
96- expressiveCode : {
97- shiki : {
98- langs : [
99- {
100- name : 'env-spec' ,
101- scopeName : 'source.env-spec' ,
102- extensions : [ '.env-spec' ] ,
103- ...envSpecGrammar ,
104- } ,
105- ]
106- }
107- }
108- } ) ,
109- mdx ( ) ,
110- vue ( ) ,
111- sitemap ( ) ,
112- robotsTxt ( ) ,
113- partytown ( {
108+ } ) ,
109+ mdx ( ) ,
110+ vue ( ) ,
111+ sitemap ( ) ,
112+ robotsTxt ( ) ,
113+ partytown ( {
114114 // Example: Add dataLayer.push as a forwarding-event.
115- config : {
116- forward : [ 'dataLayer.push' ] ,
117- } ,
118- } ) ] ,
119- } ) ;
115+ config : {
116+ forward : [ 'dataLayer.push' ] ,
117+ } ,
118+ } ) ,
119+ ] ,
120+ } ) ;
0 commit comments