Skip to content

Commit 17a18d8

Browse files
committed
Merge branch 'dev' into feat/web-ext
2 parents 4fda3c5 + f1322eb commit 17a18d8

36 files changed

Lines changed: 755 additions & 2923 deletions

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
key: neuropilot-docs-${{ github.repository }}
6666
path: |
6767
docs/.astro
68+
docs/.cache
6869
docs/dist
6970
docs/node_modules
7071
@@ -94,7 +95,7 @@ jobs:
9495
env:
9596
PUBLIC_VERSION: ${{ steps.docs-ver.outputs.version }}
9697
working-directory: ${{ github.workspace }}/docs
97-
run: npm run build
98+
run: PUBLIC_VERSION=$(npm show ./ version) npm run build
9899

99100
- name: Upload GitHub Pages Artifact
100101
uses: actions/upload-pages-artifact@2d163be3ddce01512f3eea7ac5b7023b5d643ce1 # Pinning to SHA because that thing hasn't updated in a year it seems

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ dist/
1818
!.github/actions/get-package-json-version/dist/
1919
# generated astro types
2020
.astro/
21+
.cache/
2122

2223
# logs
2324
npm-debug.log*

README.md

Lines changed: 9 additions & 414 deletions
Large diffs are not rendered by default.

docs/astro.config.mts

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
// @ts-check
22
import { defineConfig } from 'astro/config';
33
import 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
610
export 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
});

docs/consts/links.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export const BASE_GITHUB_URL: string = "https://github.com/VSC-NeuroPilot/neuropilot"
2+
type MarketplaceLinks = "page" | "direct"
3+
export const MARKETPLACE_URL = (type: MarketplaceLinks) => {
4+
if (type === "page") {
5+
return "https://marketplace.visualstudio.com/items?itemName=Pasu4.neuropilot"
6+
} else if (type === "direct") {
7+
return "vscode:extension/Pasu4.neuropilot"
8+
} else
9+
return "/"
10+
}

0 commit comments

Comments
 (0)