1
1
import { defineConfig } from "astro/config" ;
2
2
import alpinejs from "@astrojs/alpinejs" ;
3
- import tailwind from "@astrojs/tailwind" ;
4
3
import starlight from "@astrojs/starlight" ;
5
4
6
5
import sitemap from "@astrojs/sitemap" ;
7
6
7
+ import tailwindcss from "@tailwindcss/vite" ;
8
+
8
9
// https://astro.build/config
9
10
export default defineConfig ( {
10
- site : "https://anyquery.dev" ,
11
- integrations : [
12
- alpinejs ( ) ,
13
- tailwind ( { } ) ,
14
- starlight ( {
15
- title : "Anyquery" ,
16
- credits : false ,
17
- favicon : "/favicon.png" ,
18
- customCss : [ "./src/docs.css" ] ,
19
- logo : {
20
- src : "./public/images/logo.png" ,
21
- alt : "Anyquery logo" ,
22
- } ,
11
+ site : "https://anyquery.dev" ,
12
+
13
+ integrations : [
14
+ alpinejs ( ) ,
15
+ starlight ( {
16
+ title : "Anyquery" ,
17
+ credits : false ,
18
+ favicon : "/favicon.png" ,
19
+ customCss : [ "./src/docs.css" , "./src/styles/global.css" ] ,
20
+ logo : {
21
+ src : "./public/images/logo.png" ,
22
+ alt : "Anyquery logo" ,
23
+ } ,
24
+
25
+ components : {
26
+ Footer : "./src/components/footer-docs.astro" ,
27
+ } ,
28
+ description :
29
+ "Anyquery allows you to run SQL queries on pretty much any data source, including REST APIs, local files, SQL databases, and more." ,
30
+ sidebar : [
31
+ {
32
+ link : "/docs" ,
33
+ label : "Getting started" ,
34
+ } ,
35
+ {
36
+ label : "Usage" ,
37
+ items : [
38
+ {
39
+ label : "Running queries" ,
40
+ link : "/docs/usage/running-queries" ,
41
+ } ,
42
+ {
43
+ label : "Installing plugins" ,
44
+ link : "/docs/usage/plugins" ,
45
+ } ,
46
+ {
47
+ label : "Managing profiles" ,
48
+ link : "/docs/usage/managing-profiles" ,
49
+ } ,
50
+ {
51
+ label : "Connecting LLMs (e.g. ChatGPT)" ,
52
+ link : "/docs/usage/connecting-llms" ,
53
+ } ,
54
+ {
55
+ label : "Querying files" ,
56
+ link : "/docs/usage/querying-files" ,
57
+ } ,
58
+ {
59
+ label : "Querying logs" ,
60
+ link : "/docs/usage/querying-log" ,
61
+ } ,
62
+ {
63
+ label : "Alternative languages (PRQL, PQL)" ,
64
+ link : "/docs/usage/alternative-languages" ,
65
+ } ,
66
+ {
67
+ label : "Exporting results" ,
68
+ link : "/docs/usage/exporting-results" ,
69
+ } ,
70
+ {
71
+ label : "SQL join between APIs" ,
72
+ link : "/docs/usage/sql-joins" ,
73
+ } ,
74
+ {
75
+ label : "MySQL server" ,
76
+ link : "/docs/usage/mysql-server" ,
77
+ } ,
78
+ {
79
+ label : "Query hub (community queries)" ,
80
+ link : "/docs/usage/query-hub" ,
81
+ } ,
82
+ {
83
+ label : "As a library" ,
84
+ link : "/docs/usage/as-a-library" ,
85
+ } ,
86
+ {
87
+ label : "Working with JSON" ,
88
+ link : "/docs/usage/working-with-arrays-objects-json" ,
89
+ } ,
90
+ {
91
+ label : "Troubleshooting and limitations" ,
92
+ link : "/docs/usage/troubleshooting" ,
93
+ } ,
94
+ ] ,
95
+ } ,
96
+ {
97
+ label : "Database" ,
98
+ autogenerate : {
99
+ directory : "docs/database" ,
100
+ } ,
101
+ collapsed : false ,
102
+ } ,
103
+
104
+ {
105
+ label : "Reference" ,
106
+ items : [
107
+ {
108
+ label : "SQL functions" ,
109
+ link : "/docs/reference/functions" ,
110
+ } ,
111
+ {
112
+ label : "CLI commands" ,
113
+ autogenerate : {
114
+ directory : "docs/reference/Commands" ,
115
+ } ,
116
+ collapsed : true ,
117
+ } ,
118
+ ] ,
119
+ } ,
120
+ {
121
+ autogenerate : {
122
+ directory : "docs/developers" ,
123
+ } ,
124
+ label : "Developers" ,
125
+ } ,
126
+ {
127
+ autogenerate : {
128
+ directory : "connection-guide" ,
129
+ } ,
130
+ label : "Connection guide" ,
131
+ } ,
132
+ ] ,
133
+ head : [
134
+ /*
135
+ <!-- 100% privacy-first analytics -->
136
+ <script data-collect-dnt="true" async defer src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
137
+ <noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif?collect-dnt=true" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
138
+ */
139
+ {
140
+ tag : "script" ,
141
+ attributes : {
142
+ "data-collect-dnt" : "true" ,
143
+ async : true ,
144
+ defer : true ,
145
+ src : "https://sa.anyquery.dev/latest.js" ,
146
+ } ,
147
+ } ,
148
+ ] ,
149
+ } ) ,
150
+ sitemap ( ) ,
151
+ ] ,
152
+
153
+ prefetch : {
154
+ prefetchAll : true ,
155
+ } ,
23
156
24
- components : {
25
- Footer : "./src/components/footer-docs.astro" ,
26
- } ,
27
- description :
28
- "Anyquery allows you to run SQL queries on pretty much any data source, including REST APIs, local files, SQL databases, and more." ,
29
- sidebar : [
30
- {
31
- link : "/docs" ,
32
- label : "Getting started" ,
33
- } ,
34
- {
35
- label : "Usage" ,
36
- items : [
37
- {
38
- label : "Running queries" ,
39
- link : "/docs/usage/running-queries" ,
40
- } ,
41
- {
42
- label : "Installing plugins" ,
43
- link : "/docs/usage/plugins" ,
44
- } ,
45
- {
46
- label : "Managing profiles" ,
47
- link : "/docs/usage/managing-profiles" ,
48
- } ,
49
- {
50
- label : "Connecting LLMs (e.g. ChatGPT)" ,
51
- link : "/docs/usage/connecting-llms" ,
52
- } ,
53
- {
54
- label : "Querying files" ,
55
- link : "/docs/usage/querying-files" ,
56
- } ,
57
- {
58
- label : "Querying logs" ,
59
- link : "/docs/usage/querying-log" ,
60
- } ,
61
- {
62
- label : "Alternative languages (PRQL, PQL)" ,
63
- link : "/docs/usage/alternative-languages" ,
64
- } ,
65
- {
66
- label : "Exporting results" ,
67
- link : "/docs/usage/exporting-results" ,
68
- } ,
69
- {
70
- label : "SQL join between APIs" ,
71
- link : "/docs/usage/sql-joins" ,
72
- } ,
73
- {
74
- label : "MySQL server" ,
75
- link : "/docs/usage/mysql-server" ,
76
- } ,
77
- {
78
- label : "Query hub (community queries)" ,
79
- link : "/docs/usage/query-hub" ,
80
- } ,
81
- {
82
- label : "As a library" ,
83
- link : "/docs/usage/as-a-library" ,
84
- } ,
85
- {
86
- label : "Working with JSON" ,
87
- link : "/docs/usage/working-with-arrays-objects-json" ,
88
- } ,
89
- {
90
- label : "Troubleshooting and limitations" ,
91
- link : "/docs/usage/troubleshooting" ,
92
- } ,
93
- ] ,
94
- } ,
95
- {
96
- label : "Database" ,
97
- autogenerate : {
98
- directory : "docs/database" ,
99
- } ,
100
- collapsed : false ,
101
- } ,
157
+ markdown : {
158
+ shikiConfig : {
159
+ theme : "github-dark" ,
160
+ wrap : false ,
161
+ defaultColor : false ,
162
+ } ,
102
163
103
- {
104
- label : "Reference" ,
105
- items : [
106
- {
107
- label : "SQL functions" ,
108
- link : "/docs/reference/functions" ,
109
- } ,
110
- {
111
- label : "CLI commands" ,
112
- autogenerate : {
113
- directory : "docs/reference/Commands" ,
114
- } ,
115
- collapsed : true ,
116
- } ,
117
- ] ,
118
- } ,
119
- {
120
- autogenerate : {
121
- directory : "docs/developers" ,
122
- } ,
123
- label : "Developers" ,
124
- } ,
125
- {
126
- autogenerate : {
127
- directory : "connection-guide" ,
128
- } ,
129
- label : "Connection guide" ,
130
- } ,
131
- ] ,
132
- head : [
133
- /*
134
- <!-- 100% privacy-first analytics -->
135
- <script data-collect-dnt="true" async defer src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
136
- <noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif?collect-dnt=true" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
137
- */
138
- {
139
- tag : "script" ,
140
- attributes : {
141
- "data-collect-dnt" : "true" ,
142
- async : true ,
143
- defer : true ,
144
- src : "https://sa.anyquery.dev/latest.js" ,
145
- } ,
146
- } ,
147
- ] ,
148
- } ) ,
149
- sitemap ( ) ,
150
- ] ,
151
- prefetch : {
152
- prefetchAll : true ,
153
- } ,
154
- markdown : {
155
- shikiConfig : {
156
- theme : "github-dark" ,
157
- wrap : false ,
158
- defaultColor : false ,
159
- } ,
164
+ syntaxHighlight : "shiki" ,
165
+ } ,
160
166
161
- syntaxHighlight : "shiki" ,
162
- } ,
163
- } ) ;
167
+ vite : {
168
+ plugins : [ tailwindcss ( ) ] ,
169
+ } ,
170
+ } ) ;
0 commit comments