diff --git a/package.json b/package.json
index b22838a..5e5e765 100644
--- a/package.json
+++ b/package.json
@@ -15,14 +15,14 @@
"@astrojs/starlight": "^0.31.0",
"@astrojs/starlight-tailwind": "^3.0.0",
"@astrojs/tailwind": "^5.1.4",
- "@effect/platform-node": "^0.68.2",
- "astro": "^5.1.6",
+ "@effect/platform-node": "^0.70.0",
+ "astro": "^5.1.7",
"date-fns": "^4.1.0",
- "effect": "^3.12.2",
+ "effect": "^3.12.5",
"sharp": "^0.33.5",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3",
- "vitest": "^2.1.8",
+ "vitest": "^3.0.2",
"xml-js": "^1.6.11"
}
}
diff --git a/src/components/GrArxivPage.astro b/src/components/GrArxivPage.astro
index c3a92f8..44ffb01 100644
--- a/src/components/GrArxivPage.astro
+++ b/src/components/GrArxivPage.astro
@@ -4,10 +4,7 @@ import { format } from 'date-fns';
import {extractArxivID, getPaper} from '../lib/arxiv'
-import LinkSpan from './LinkSpan.astro'
-
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
-import { Icon } from '@astrojs/starlight/components';
const props = Astro.props;
diff --git a/src/components/GrSiteFooter.astro b/src/components/GrSiteFooter.astro
index 42ef26c..5340b51 100644
--- a/src/components/GrSiteFooter.astro
+++ b/src/components/GrSiteFooter.astro
@@ -1,8 +1,5 @@
---
import type { Props } from '@astrojs/starlight/props';
-import EditLink from '@astrojs/starlight/components/EditLink.astro';
-import LastUpdated from '@astrojs/starlight/components/LastUpdated.astro';
-import Pagination from '@astrojs/starlight/components/Pagination.astro';
import { Image } from 'astro:assets';
import neo4jLogoImage from "../assets/images/neo4j-logo-white.png";
---
diff --git a/src/components/NamedIcon.astro b/src/components/NamedIcon.astro
index fd8985f..b400d70 100644
--- a/src/components/NamedIcon.astro
+++ b/src/components/NamedIcon.astro
@@ -18,8 +18,8 @@ interface Props {
class?: string;
}
-const { name, label, size = '1em', color } = Astro.props;
-const a11yAttrs = label ? ({ 'aria-label': label } as const) : ({ 'aria-hidden': 'true' } as const);
+const { name } = Astro.props;
+// const a11yAttrs = label ? ({ 'aria-label': label } as const) : ({ 'aria-hidden': 'true' } as const);
---
{localIconNames.includes(name) ? () : ()}
\ No newline at end of file
diff --git a/src/content/config.ts b/src/content/config.ts
index a2e0069..2d66faf 100644
--- a/src/content/config.ts
+++ b/src/content/config.ts
@@ -1,16 +1,27 @@
-import { z, defineCollection } from 'astro:content';
+import { defineCollection } from 'astro:content';
import { docsSchema } from '@astrojs/starlight/schema';
import { docsLoader } from '@astrojs/starlight/loaders';
+// import { file } from "astro/loaders";
+
+// const researchCollection = defineCollection({
+// loader: file("src/data/papers.json"),
+// schema: z.object({
+// title: z.string(),
+// canonicalURL: z.string().url()
+// })
+// })
-const researchCollection = defineCollection({
- type: 'data',
- schema: z.object({
- title: z.string(),
- canonicalURL: z.string().url()
- })
-})
export const collections = {
- docs: defineCollection({ loader: docsLoader(),schema: docsSchema() }),
- research: researchCollection
+ docs: defineCollection({
+ loader: docsLoader(),
+ schema: docsSchema()
+ }),
+ // research: defineCollection({
+ // loader: file("src/data/papers.json"),
+ // schema: z.object({
+ // title: z.string(),
+ // canonicalURL: z.string().url()
+ // })
+ // })
};
diff --git a/src/content/docs/reference/index.mdx b/src/content/docs/reference/index.mdx
index 167ff77..cc39a0a 100644
--- a/src/content/docs/reference/index.mdx
+++ b/src/content/docs/reference/index.mdx
@@ -15,9 +15,9 @@ Finding the perfect GraphRAG pattern for your application isn’t straightforwar
### GraphRAG Patterns
-{pages.filter(page => page.slug.indexOf("/graphrag/")!=-1).map(page => (
- -
- {page.data.title}
+{pages.filter(page => page.id.indexOf("/graphrag/")!=-1).map(page => (
+
-
+ {page.data.title}
))}
@@ -25,9 +25,9 @@ Finding the perfect GraphRAG pattern for your application isn’t straightforwar
### Knowledge Graph Models
-{pages.filter(page => page.slug.indexOf("/knowledge-graph/")!=-1).map(page => (
- -
- {page.data.title}
+{pages.filter(page => page.id.indexOf("/knowledge-graph/")!=-1).map(page => (
+
-
+ {page.data.title}
))}
diff --git a/src/lib/arxiv.spec.ts b/src/lib/arxiv.spec.ts
index 0a97d7a..de78642 100644
--- a/src/lib/arxiv.spec.ts
+++ b/src/lib/arxiv.spec.ts
@@ -1,10 +1,9 @@
-import { assert, expect, test } from 'vitest';
+import { expect, test } from 'vitest';
import { Effect, Either } from "effect"
import { FetchHttpClient } from "@effect/platform"
import { getArxivDetails } from './arxiv'
-import { type ArxivEntry } from './arxiv'
test('arxiv fetch well-known entry', async () => {
const arxivid = '2402.07630';
diff --git a/src/lib/arxiv.ts b/src/lib/arxiv.ts
index 9e8d50c..8ce3181 100644
--- a/src/lib/arxiv.ts
+++ b/src/lib/arxiv.ts
@@ -1,16 +1,10 @@
import {
- HttpClient,
- HttpClientRequest,
- HttpClientResponse,
- HttpClientError
+ HttpClient
} from "@effect/platform"
-import type { Cause } from "effect"
import { Effect, Either } from "effect"
import * as convert from 'xml-js';
import { Schema } from "effect"
-import type { ParseError } from "effect/ParseResult";
-import type { ParseOptions } from "effect/SchemaAST";
import papers from '../data/papers.json';
diff --git a/src/pages/appendices/research/[paper].astro b/src/pages/appendices/research/[paper].astro
index 673bfb2..b5d548f 100644
--- a/src/pages/appendices/research/[paper].astro
+++ b/src/pages/appendices/research/[paper].astro
@@ -1,5 +1,4 @@
---
-import { Code } from 'astro:components';
import { Effect, Either, ParseResult } from "effect"
import { FetchHttpClient } from "@effect/platform"
diff --git a/vitest.config.ts b/vitest.config.ts
index 9ff3633..a3d4404 100644
--- a/vitest.config.ts
+++ b/vitest.config.ts
@@ -2,8 +2,4 @@
import { getViteConfig } from 'astro/config';
export default getViteConfig({
- test: {
- /* for example, use global to avoid globals imports (describe, test, expect): */
- // globals: true,
- },
});
\ No newline at end of file