Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Deploy docs site

# Builds the Astro Starlight site under docs-site/ and publishes it to GitHub Pages.
# Requires "Settings → Pages → Source: GitHub Actions" to be enabled on the repo.

on:
push:
branches: [main, prototype-docs-site]
paths:
- 'docs-site/**'
- '.github/workflows/docs.yml'
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docs-site
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: docs-site/package-lock.json
- run: npm ci
- run: npm run build
- uses: actions/upload-pages-artifact@v3
with:
path: docs-site/dist

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
5 changes: 5 additions & 0 deletions docs-site/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
dist/
.astro/
.env
.DS_Store
102 changes: 102 additions & 0 deletions docs-site/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import react from '@astrojs/react';

// `site` and `base` together determine the public URL.
// For the upstream awslabs project page: site='https://awslabs.github.io', base='/graphrag-toolkit'
// For a fork's project page: site='https://<user>.github.io', base='/<repo-name>'
export default defineConfig({
site: 'https://oussamahansal.github.io',
base: '/graphrag-toolkit',
integrations: [
react(),
starlight({
title: 'GraphRAG Toolkit',
description:
'Documentation for the AWS GraphRAG Toolkit — lexical-graph and BYOKG-RAG.',
logo: { src: './src/assets/logo.svg' },
customCss: ['./src/styles/custom.css'],
social: {
github: 'https://github.com/awslabs/graphrag-toolkit',
},
head: [
{
tag: 'link',
attrs: {
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap',
},
},
],
sidebar: [
{
label: 'Lexical Graph',
items: [
{ label: 'Overview', slug: 'lexical-graph/overview' },
{ label: 'Graph Model', slug: 'lexical-graph/graph-model' },
{ label: 'Storage Model', slug: 'lexical-graph/storage-model' },
{
label: 'Indexing',
items: [
{ label: 'Indexing', slug: 'lexical-graph/indexing' },
{ label: 'Batch Extraction', slug: 'lexical-graph/batch-extraction' },
{ label: 'Configuring Batch Extraction', slug: 'lexical-graph/configuring-batch-extraction' },
{ label: 'Versioned Updates', slug: 'lexical-graph/versioned-updates' },
{ label: 'Metadata Filtering', slug: 'lexical-graph/metadata-filtering' },
{ label: 'Reader Providers', slug: 'lexical-graph/readers' },
{ label: 'External Properties', slug: 'lexical-graph/external-properties' },
],
},
{
label: 'Querying',
items: [
{ label: 'Querying', slug: 'lexical-graph/querying' },
{ label: 'Traversal-Based Search', slug: 'lexical-graph/traversal-based-search' },
{ label: 'Traversal-Based Search Configuration', slug: 'lexical-graph/traversal-based-search-configuration' },
{ label: 'Semantic-Guided Search', slug: 'lexical-graph/semantic-guided-search' },
],
},
{
label: 'Graph Stores',
items: [
{ label: 'Neptune Analytics', slug: 'lexical-graph/graph-store-neptune-analytics' },
{ label: 'Neptune Database', slug: 'lexical-graph/graph-store-neptune-db' },
{ label: 'Neo4j', slug: 'lexical-graph/graph-store-neo4j' },
{ label: 'FalkorDB', slug: 'lexical-graph/graph-store-falkor-db' },
],
},
{
label: 'Vector Stores',
items: [
{ label: 'Neptune Analytics', slug: 'lexical-graph/vector-store-neptune-analytics' },
{ label: 'OpenSearch Serverless', slug: 'lexical-graph/vector-store-opensearch-serverless' },
{ label: 'Postgres', slug: 'lexical-graph/vector-store-postgres' },
{ label: 'S3 Vectors', slug: 'lexical-graph/vector-store-s3-vectors' },
],
},
{ label: 'Configuration', slug: 'lexical-graph/configuration' },
{ label: 'Multi-Tenancy', slug: 'lexical-graph/multi-tenancy' },
{ label: 'Custom Prompts', slug: 'lexical-graph/prompts' },
{ label: 'Security', slug: 'lexical-graph/security' },
{ label: 'Hybrid Deployment', slug: 'lexical-graph/hybrid-deployment' },
{ label: 'AWS Profile Configuration', slug: 'lexical-graph/aws-profile' },
{ label: 'Nova 2 Model Support', slug: 'lexical-graph/nova-2-model-support' },
{ label: 'FAQ', slug: 'lexical-graph/faq' },
],
},
{
label: 'BYOKG-RAG',
items: [
{ label: 'Overview', slug: 'byokg-rag/overview' },
{ label: 'Indexing', slug: 'byokg-rag/indexing' },
{ label: 'Query Engine', slug: 'byokg-rag/query-engine' },
{ label: 'Graph Retrievers', slug: 'byokg-rag/graph-retrievers' },
{ label: 'Multi-Strategy Retrieval', slug: 'byokg-rag/multi-strategy-retrieval' },
{ label: 'Configuration', slug: 'byokg-rag/configuration' },
{ label: 'FAQ', slug: 'byokg-rag/faq' },
],
},
],
}),
],
});
Loading
Loading