Skip to content

Commit ef3c2d2

Browse files
committed
added tailwind for CSS; tweaked markdown images to always use white background, regardless of dark/light mode
1 parent f74c7a0 commit ef3c2d2

File tree

5 files changed

+920
-106
lines changed

5 files changed

+920
-106
lines changed

astro.config.mjs

Lines changed: 90 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,95 @@
11
import { defineConfig } from 'astro/config';
22
import starlight from '@astrojs/starlight';
33

4+
import tailwind from "@astrojs/tailwind";
5+
46
// https://astro.build/config
57
export default defineConfig({
6-
site: 'https://graphrag.github.io',
7-
integrations: [
8-
starlight({
9-
title: 'GraphRAG',
10-
logo: {
11-
src: './src/assets/images/graphrag-logo.svg'
12-
},
13-
social: {
14-
github: 'https://github.com/graphrag/',
15-
discord: 'https://discord.gg/graphrag'
16-
},
17-
editLink: {
18-
baseUrl: 'https://github.com/graphrag/graphrag.github.io/edit/main/',
19-
},
20-
lastUpdated: true,
21-
head: [
22-
{
23-
tag: 'script',
24-
attrs: {
25-
async: true,
26-
src: 'https://www.googletagmanager.com/gtag/js?id=G-DL38Q8KGQC'
27-
}
28-
},
29-
{
30-
tag: 'script',
31-
content: " window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-DL38Q8KGQC');"
32-
}
33-
],
34-
sidebar: [
35-
{
36-
label: 'Concepts',
37-
items: [
38-
{ label: 'Intro to GraphRAG', link: '/concepts/intro-to-graphrag/' },
39-
{ label: 'Intro to Knowledge Graphs', link: '/concepts/intro-to-knowledge-graphs/' },
40-
],
41-
},
42-
{
43-
label: 'Tutorials',
44-
items: [
45-
// Each item here is one entry in the navigation menu.
46-
{ label: 'Chat with a PDF', link: '/tutorials/chat-with-pdf/' },
47-
],
48-
},
49-
{
50-
label: 'How-to Guides',
51-
items: [
52-
{ label: 'Chunking', link: '/guides/chunking/' },
53-
],
54-
},
55-
{
56-
label: 'Reference',
57-
items: [
58-
{
59-
label: 'Retrieval Patterns',
60-
autogenerate: { directory: 'reference/graphrag' },
61-
},
62-
{
63-
label: 'Data Preparation',
64-
autogenerate: { directory: 'reference/preparation' },
65-
},
66-
{
67-
label: 'Graph Shapes',
68-
autogenerate: { directory: 'reference/knowledge-graph' },
69-
}
70-
]
71-
},
72-
{
73-
label: 'Appendices',
74-
items: [
75-
{
76-
label: 'Research',
77-
link: '/appendices/research',
78-
},
79-
{
80-
label: 'Glossary',
81-
link: '/appendices/glossary',
82-
},
83-
{
84-
label: 'Graph Notation',
85-
link: '/appendices/notation',
86-
},
87-
]
88-
}
89-
],
90-
components: {
91-
Footer: './src/components/GrFooter.astro'
92-
}
93-
}),
94-
],
95-
});
8+
site: 'https://graphrag.github.io',
9+
integrations: [starlight({
10+
title: 'GraphRAG',
11+
logo: {
12+
src: './src/assets/images/graphrag-logo.svg'
13+
},
14+
social: {
15+
github: 'https://github.com/graphrag/',
16+
discord: 'https://discord.gg/graphrag'
17+
},
18+
editLink: {
19+
baseUrl: 'https://github.com/graphrag/graphrag.github.io/edit/main/'
20+
},
21+
lastUpdated: true,
22+
head: [{
23+
tag: 'script',
24+
attrs: {
25+
async: true,
26+
src: 'https://www.googletagmanager.com/gtag/js?id=G-DL38Q8KGQC'
27+
}
28+
}, {
29+
tag: 'script',
30+
content: " window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-DL38Q8KGQC');"
31+
}],
32+
customCss: [
33+
// Path to your Tailwind base styles:
34+
'./src/tailwind.css',
35+
],
36+
37+
sidebar: [{
38+
label: 'Concepts',
39+
items: [{
40+
label: 'Intro to GraphRAG',
41+
link: '/concepts/intro-to-graphrag/'
42+
}, {
43+
label: 'Intro to Knowledge Graphs',
44+
link: '/concepts/intro-to-knowledge-graphs/'
45+
}]
46+
}, {
47+
label: 'Tutorials',
48+
items: [
49+
// Each item here is one entry in the navigation menu.
50+
{
51+
label: 'Chat with a PDF',
52+
link: '/tutorials/chat-with-pdf/'
53+
}]
54+
}, {
55+
label: 'How-to Guides',
56+
items: [{
57+
label: 'Chunking',
58+
link: '/guides/chunking/'
59+
}]
60+
}, {
61+
label: 'Reference',
62+
items: [{
63+
label: 'Retrieval Patterns',
64+
autogenerate: {
65+
directory: 'reference/graphrag'
66+
}
67+
}, {
68+
label: 'Data Preparation',
69+
autogenerate: {
70+
directory: 'reference/preparation'
71+
}
72+
}, {
73+
label: 'Graph Shapes',
74+
autogenerate: {
75+
directory: 'reference/knowledge-graph'
76+
}
77+
}]
78+
}, {
79+
label: 'Appendices',
80+
items: [{
81+
label: 'Research',
82+
link: '/appendices/research'
83+
}, {
84+
label: 'Glossary',
85+
link: '/appendices/glossary'
86+
}, {
87+
label: 'Graph Notation',
88+
link: '/appendices/notation'
89+
}]
90+
}],
91+
components: {
92+
Footer: './src/components/GrFooter.astro'
93+
}
94+
}), tailwind({applyBaseStyles: false})]
95+
});

0 commit comments

Comments
 (0)