Skip to content

Commit aafa929

Browse files
oussamahansalOussama Hansal
andcommitted
update documentation (#198)
* update documentation * fix broken mdx files * small comments --------- Co-authored-by: Oussama Hansal <haooussa@amazon.com>
1 parent d3cb22b commit aafa929

59 files changed

Lines changed: 14385 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/docs.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Deploy docs site
2+
3+
# Builds the Astro Starlight site under docs-site/ and publishes it to GitHub Pages.
4+
# Requires "Settings → Pages → Source: GitHub Actions" to be enabled on the repo.
5+
6+
on:
7+
push:
8+
branches: [main, documentation-site]
9+
paths:
10+
- 'docs-site/**'
11+
- '.github/workflows/docs.yml'
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
concurrency:
20+
group: pages
21+
cancel-in-progress: false
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
defaults:
27+
run:
28+
working-directory: docs-site
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-node@v4
32+
with:
33+
node-version: 20
34+
cache: npm
35+
cache-dependency-path: docs-site/package-lock.json
36+
- run: npm ci
37+
- run: npm run build
38+
- uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: docs-site/dist
41+
42+
deploy:
43+
needs: build
44+
runs-on: ubuntu-latest
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
steps:
49+
- id: deployment
50+
uses: actions/deploy-pages@v4

docs-site/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/
2+
dist/
3+
.astro/
4+
.env
5+
.DS_Store

docs-site/astro.config.mjs

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
import { defineConfig } from 'astro/config';
2+
import starlight from '@astrojs/starlight';
3+
import react from '@astrojs/react';
4+
5+
export default defineConfig({
6+
site: 'https://awslabs.github.io',
7+
base: '/graphrag-toolkit',
8+
integrations: [
9+
react(),
10+
starlight({
11+
title: 'GraphRAG Toolkit',
12+
description:
13+
'Documentation for the AWS GraphRAG Toolkit — lexical-graph and BYOKG-RAG.',
14+
logo: { src: './src/assets/logo.svg' },
15+
customCss: ['./src/styles/custom.css'],
16+
social: {
17+
github: 'https://github.com/awslabs/graphrag-toolkit',
18+
},
19+
head: [
20+
{
21+
tag: 'link',
22+
attrs: {
23+
rel: 'stylesheet',
24+
href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap',
25+
},
26+
},
27+
],
28+
sidebar: [
29+
{
30+
label: 'Lexical Graph',
31+
items: [
32+
{ label: 'Overview', slug: 'lexical-graph/overview' },
33+
{ label: 'Graph Model', slug: 'lexical-graph/graph-model' },
34+
{ label: 'Storage Model', slug: 'lexical-graph/storage-model' },
35+
{
36+
label: 'Indexing',
37+
items: [
38+
{ label: 'Indexing', slug: 'lexical-graph/indexing' },
39+
{ label: 'Batch Extraction', slug: 'lexical-graph/batch-extraction' },
40+
{ label: 'Configuring Batch Extraction', slug: 'lexical-graph/configuring-batch-extraction' },
41+
{ label: 'Versioned Updates', slug: 'lexical-graph/versioned-updates' },
42+
{ label: 'Metadata Filtering', slug: 'lexical-graph/metadata-filtering' },
43+
{ label: 'Reader Providers', slug: 'lexical-graph/readers' },
44+
{ label: 'External Properties', slug: 'lexical-graph/external-properties' },
45+
],
46+
},
47+
{
48+
label: 'Querying',
49+
items: [
50+
{ label: 'Querying', slug: 'lexical-graph/querying' },
51+
{ label: 'Traversal-Based Search', slug: 'lexical-graph/traversal-based-search' },
52+
{ label: 'Traversal-Based Search Configuration', slug: 'lexical-graph/traversal-based-search-configuration' },
53+
{ label: 'Semantic-Guided Search', slug: 'lexical-graph/semantic-guided-search' },
54+
],
55+
},
56+
{
57+
label: 'Graph Stores',
58+
items: [
59+
{ label: 'Neptune Analytics', slug: 'lexical-graph/graph-store-neptune-analytics' },
60+
{ label: 'Neptune Database', slug: 'lexical-graph/graph-store-neptune-db' },
61+
{ label: 'Neo4j', slug: 'lexical-graph/graph-store-neo4j' },
62+
{ label: 'FalkorDB', slug: 'lexical-graph/graph-store-falkor-db' },
63+
],
64+
},
65+
{
66+
label: 'Vector Stores',
67+
items: [
68+
{ label: 'Neptune Analytics', slug: 'lexical-graph/vector-store-neptune-analytics' },
69+
{ label: 'OpenSearch Serverless', slug: 'lexical-graph/vector-store-opensearch-serverless' },
70+
{ label: 'Postgres', slug: 'lexical-graph/vector-store-postgres' },
71+
{ label: 'S3 Vectors', slug: 'lexical-graph/vector-store-s3-vectors' },
72+
],
73+
},
74+
{ label: 'Configuration', slug: 'lexical-graph/configuration' },
75+
{ label: 'Multi-Tenancy', slug: 'lexical-graph/multi-tenancy' },
76+
{ label: 'Custom Prompts', slug: 'lexical-graph/prompts' },
77+
{ label: 'Security', slug: 'lexical-graph/security' },
78+
{ label: 'Hybrid Deployment', slug: 'lexical-graph/hybrid-deployment' },
79+
{ label: 'AWS Profile Configuration', slug: 'lexical-graph/aws-profile' },
80+
{ label: 'Nova 2 Model Support', slug: 'lexical-graph/nova-2-model-support' },
81+
{ label: 'FAQ', slug: 'lexical-graph/faq' },
82+
],
83+
},
84+
{
85+
label: 'BYOKG-RAG',
86+
items: [
87+
{ label: 'Overview', slug: 'byokg-rag/overview' },
88+
{ label: 'Indexing', slug: 'byokg-rag/indexing' },
89+
{ label: 'Query Engine', slug: 'byokg-rag/query-engine' },
90+
{ label: 'Graph Retrievers', slug: 'byokg-rag/graph-retrievers' },
91+
{ label: 'Multi-Strategy Retrieval', slug: 'byokg-rag/multi-strategy-retrieval' },
92+
{ label: 'Configuration', slug: 'byokg-rag/configuration' },
93+
{ label: 'FAQ', slug: 'byokg-rag/faq' },
94+
],
95+
},
96+
],
97+
}),
98+
],
99+
});

0 commit comments

Comments
 (0)