-
Notifications
You must be signed in to change notification settings - Fork 1
/
astro.config.mjs
138 lines (136 loc) · 4.24 KB
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import tailwind from "@astrojs/tailwind";
import starlightViewModes from "starlight-view-modes";
import starlightObsidian, { obsidianSidebarGroup } from "starlight-obsidian";
import starlightLinksValidator from "starlight-links-validator";
import starlightUtils from "@lorenzo_lewis/starlight-utils";
import starlightOpenAPI, { openAPISidebarGroups } from "starlight-openapi";
import mdx from "@astrojs/mdx";
import starlightBlog from "starlight-blog";
import sentry from "@sentry/astro";
import spotlightjs from "@spotlightjs/astro";
import starlightHeadingBadges from "starlight-heading-badges";
import starlightImageZoom from "starlight-image-zoom";
import starlightThemeRapide from "starlight-theme-rapide";
import solidJs from "@astrojs/solid-js";
// https://astro.build/config
export default defineConfig({
site: "https://docs.nocaptchaai.com",
experimental: {
contentIntellisense: true,
},
server: {
port: 80,
},
integrations: [starlight({
title: {
root: "NoCaptchaAi Docs",
en: "NoCaptchaAi Docs",
},
editLink: {
baseUrl: "https://github.com/noCaptchaAi/docs/edit/main/content/docs",
},
description:
"Automated CAPTCHA recognition for qCAPTCHA, Awswaf, lemin, reCAPTCHA v2, , BLS, mtCaptcha, OCR etc",
tagline:
"Automated CAPTCHA recognition for qCAPTCHA, Awswaf, lemin, reCAPTCHA v2, , BLS, mtCaptcha, OCR etc",
logo: {
light: "/public/logo/logo_dark.png",
dark: "./public/logo/logo_light.png",
replacesTitle: false,
},
favicon: "./public/logo/logo_light.png",
defaultLocale: "root",
locales: {
root: {
label: "English",
lang: "en",
},
pt: {
label: "Portuguese",
lang: "pt",
},
},
customCss: [
// Relative path to your custom CSS file
"./src/styles/custom.css",
"./src/fonts/font-face.css",
],
plugins: [
starlightThemeRapide(),
starlightBlog(),
starlightHeadingBadges(),
// starlightImageZoom(),
// starlightOpenAPI([
// {
// base: "api",
// label: "API Schema",
// collapsed: true,
// schema: "https://raw.githubusercontent.com/openai/openai-openapi/refs/heads/master/openapi.yaml"
// },
// ]),
starlightUtils({
multiSidebar: {
switcherStyle: "horizontalList",
},
}),
starlightLinksValidator(),
starlightViewModes({
zenModeEnabled: true,
zenModeCloseButtonPosition: "top-right",
zenModeShowHeader: false,
zenModeShowSidebar: true,
zenModeShowTableOfContents: true,
zenModeShowFooter: false,
zenModeShowSwitchInHeader: true,
zenModeShowSwitchInHeaderMobile: true,
zenModeShowSwitchInTableOfContents: false,
presentationModeEnabled: false, // not supported yet
presentationModeControlButtonPosition: "bottom-right", // not supported yet
presentationModeShowSwitchInTableOfContents: false, // not supported yet
}),
],
sidebar: [
{
label: 'Official Links',
items: [
{
label: '🌳 Homepage',
link: "https://nocaptchaai.com",
},
{
label: '🌳 Dashboard',
link: "https://dash.nocaptchaai.com",
},
{
label: "🍂 Blog",
link: "/blog",
},
],
},
{
label: "Management",
autogenerate: { directory: "/account" },
},
{ label: "Introduction", autogenerate: { directory: "/intro" } },
// ...openAPISidebarGroups,
{
label: "Products",
autogenerate: { directory: "/guides" },
},
],
pagination: true,
lastUpdated: true,
social: {
email: "mailto:[email protected]",
github: "https://github.com/withastro/starlight",
discord: "https://github.com/withastro/starlight",
telegram: "https://github.com/withastro/starlight",
twitter: "https://github.com/withastro/starlight",
},
}), tailwind({
applyBaseStyles: false,
configFilePath: "./tailwind.config.mjs",
}), mdx(), sentry(), spotlightjs(), solidJs()],
});