11// @ts -check
22import { defineConfig } from 'astro/config' ;
33import starlight from '@astrojs/starlight' ;
4+ import starlightHeadingBadgesPlugin from 'starlight-heading-badges' ;
5+ import { BASE_GITHUB_URL , MARKETPLACE_URL } from './consts/links' ;
6+
7+ /** @todo https://starlight.astro.build/resources/plugins/#plugins */
48
59// https://astro.build/config
610export default defineConfig ( {
711 site : 'https://vsc-neuropilot.github.io/neuropilot' ,
812 base : '/neuropilot' ,
913 integrations : [
1014 starlight ( {
15+ plugins : [ starlightHeadingBadgesPlugin ( ) ] ,
1116 favicon : '/heart-pink.svg' ,
1217 customCss : [
1318 './src/styles/icons.css'
@@ -22,6 +27,10 @@ export default defineConfig({
2227 }
2328 ] ,
2429 title : 'NeuroPilot Docs' ,
30+ editLink : {
31+ baseUrl : BASE_GITHUB_URL + '/edit/master/docs'
32+ } ,
33+ lastUpdated : true ,
2534 logo : {
2635 dark : './src/assets/evilpilot.svg' ,
2736 light : './src/assets/neuropilot.svg' ,
@@ -31,12 +40,12 @@ export default defineConfig({
3140 {
3241 icon : 'vscode' ,
3342 label : 'NeuroPilot listing on Visual Studio Marketplace' ,
34- href : 'https://marketplace.visualstudio.com/items?itemName=Pasu4.neuropilot' ,
43+ href : MARKETPLACE_URL ( "page" ) ,
3544 } ,
3645 {
3746 icon : 'github' ,
3847 label : 'NeuroPilot GitHub' ,
39- href : 'https://github.com/VSC-NeuroPilot/neuropilot' ,
48+ href : BASE_GITHUB_URL ,
4049 } ,
4150 ] ,
4251 sidebar : [
@@ -45,6 +54,7 @@ export default defineConfig({
4554 items : [
4655 {
4756 label : 'Setup NeuroPilot' ,
57+ badge : { text : 'Start here!' , variant : 'tip' } ,
4858 slug : 'guides/setup' ,
4959 } ,
5060 {
@@ -53,6 +63,7 @@ export default defineConfig({
5363 } ,
5464 {
5565 label : 'Sandboxing' ,
66+ badge : { text : 'WIP' , variant : 'caution' } ,
5667 slug : 'guides/sandboxing'
5768 }
5869 ] ,
@@ -67,19 +78,34 @@ export default defineConfig({
6778 collapsed : true
6879 }
6980 } ,
70- { label : 'Safety' , slug : 'reference/safety' } ,
81+ { label : 'Safety' , slug : 'reference/safety' , badge : { text : 'Important' , variant : 'danger' } } ,
7182 { label : 'Commands' , slug : 'reference/commands' } ,
72- { label : 'Context' , slug : 'reference/auto-context' } ,
73- { label : 'Cookies' , slug : 'reference/cookies' } ,
74- { label : 'Cursor' , slug : 'reference/cursor' } ,
75- { label : 'Permissions' , slug : 'reference/permissions' } ,
76- { label : 'RCE' , slug : 'reference/rce' } ,
83+ { label : 'Context' , slug : 'reference/auto-context' , badge : { text : 'Stub' , variant : 'caution' } } ,
84+ { label : 'Cookies' , slug : 'reference/cookies' , badge : { text : 'Stub' , variant : 'caution' } } ,
85+ { label : 'Cursor' , slug : 'reference/cursor' , badge : { text : 'Conditional' , variant : 'success' } } ,
86+ { label : 'Permissions' , slug : 'reference/permissions' , badge : { text : 'Important' , variant : 'danger' } } ,
87+ { label : 'RCE' , slug : 'reference/rce' , badge : { text : 'Core' , variant : 'note' } } ,
7788 { label : 'Settings' , slug : 'reference/settings' } ,
7889 { label : 'Dependencies' , slug : 'reference/dependencies' } ,
7990 ] ,
8091 } ,
81- "assets" ,
92+ {
93+ label : 'NeuroPilot Assets' ,
94+ badge : { text : 'Meta' , variant : 'note' } ,
95+ slug : 'assets'
96+ } ,
97+ {
98+ label : 'Contributors' ,
99+ badge : { text : 'Meta' , variant : 'note' } ,
100+ autogenerate : {
101+ directory : 'contributors' ,
102+ collapsed : true
103+ }
104+ }
82105 ] ,
106+ components : {
107+ Footer : './src/components/Footer.astro'
108+ }
83109 } ) ,
84110 ] ,
85111} ) ;
0 commit comments