|
1 | 1 | // @ts-check |
2 | | -import { fileURLToPath } from "url"; |
3 | | -import { defineConfig, envField } from "astro/config"; |
4 | | -import starlight from "@astrojs/starlight"; |
5 | | -import tailwindcss from "@tailwindcss/vite"; |
6 | | -import starlightLinksValidator from "starlight-links-validator"; |
7 | | -import starlightOpenAPI from "starlight-openapi"; |
8 | | -import starlightDocSearch from "@astrojs/starlight-docsearch"; |
9 | | -import mermaid from "astro-mermaid"; |
10 | 2 |
|
11 | | -import vercel from "@astrojs/vercel"; |
12 | | -import remarkMath from "remark-math"; |
13 | | -import rehypeKatex from "rehype-katex"; |
14 | | -import rehypeRaw from "rehype-raw"; |
15 | | -import sitemap from "@astrojs/sitemap"; |
16 | | -import partytown from "@astrojs/partytown"; |
| 3 | +import { fileURLToPath } from "node:url"; |
17 | 4 | import node from "@astrojs/node"; |
| 5 | +import partytown from "@astrojs/partytown"; |
18 | 6 | import react from "@astrojs/react"; |
19 | | -import starlightLlmsTxt from "starlight-llms-txt"; |
| 7 | +import sitemap from "@astrojs/sitemap"; |
| 8 | +import starlight from "@astrojs/starlight"; |
| 9 | +import starlightDocSearch from "@astrojs/starlight-docsearch"; |
| 10 | +import vercel from "@astrojs/vercel"; |
| 11 | +import tailwindcss from "@tailwindcss/vite"; |
| 12 | +import { defineConfig, envField, fontProviders } from "astro/config"; |
20 | 13 | import favicons from "astro-favicons"; |
21 | 14 | import icon from "astro-icon"; |
| 15 | +import mermaid from "astro-mermaid"; |
| 16 | +import rehypeKatex from "rehype-katex"; |
| 17 | +import rehypeRaw from "rehype-raw"; |
| 18 | +import remarkMath from "remark-math"; |
22 | 19 | import starlightImageZoom from "starlight-image-zoom"; |
| 20 | +import starlightLinksValidator from "starlight-links-validator"; |
| 21 | +import starlightLlmsTxt from "starlight-llms-txt"; |
| 22 | +import starlightOpenAPI from "starlight-openapi"; |
23 | 23 | import { sidebar } from "./astro.sidebar.ts"; |
24 | | -import { ENV } from "./src/lib/env"; |
25 | | -import { ogImagesIntegration } from "./src/integrations/ogImages"; |
26 | | -import { SUPPORTED_LANGUAGES, SITE_TITLES } from "./src/config/i18n"; |
27 | | -import { firebaseIntegration } from "./src/integrations/firebase"; |
28 | | -import { remarkClientOnly } from "./src/plugins"; |
29 | | -import { devServerFileWatcher } from "./src/integrations/dev-server-file-watcher"; |
30 | | -import onDemandDirective from "./src/integrations/client-on-demand/register.js"; |
31 | 24 | import { cspConfig } from "./src/config/csp"; |
| 25 | +import { SITE_TITLES, SUPPORTED_LANGUAGES } from "./src/config/i18n"; |
| 26 | +import onDemandDirective from "./src/integrations/client-on-demand/register.js"; |
| 27 | +import { devServerFileWatcher } from "./src/integrations/dev-server-file-watcher"; |
| 28 | +import { firebaseIntegration } from "./src/integrations/firebase"; |
32 | 29 | import { monacoEditorIntegration } from "./src/integrations/monacoEditor"; |
| 30 | +import { ogImagesIntegration } from "./src/integrations/ogImages"; |
| 31 | +import { ENV } from "./src/lib/env"; |
| 32 | +import { remarkClientOnly } from "./src/plugins"; |
33 | 33 |
|
34 | 34 | const ALGOLIA_APP_ID = ENV.ALGOLIA_APP_ID; |
35 | 35 | const ALGOLIA_SEARCH_API_KEY = ENV.ALGOLIA_SEARCH_API_KEY; |
@@ -152,7 +152,19 @@ export default defineConfig({ |
152 | 152 | }), |
153 | 153 | starlightLlmsTxt({ |
154 | 154 | rawContent: true, |
155 | | - promote: ["index*", "get-started"], |
| 155 | + promote: [ |
| 156 | + "index*", |
| 157 | + "get-started", |
| 158 | + "network/glossary", |
| 159 | + "build/smart-contracts*", |
| 160 | + "network/blockchain*", |
| 161 | + "build/sdks*", |
| 162 | + "build/apis*", |
| 163 | + "build/cli*", |
| 164 | + "build/indexer*", |
| 165 | + "build/guides*", |
| 166 | + "build/ai*", |
| 167 | + ], |
156 | 168 | demote: ["404"], |
157 | 169 | exclude: ["404"], |
158 | 170 | }), |
@@ -327,26 +339,28 @@ export default defineConfig({ |
327 | 339 | csp: cspConfig, |
328 | 340 | fonts: [ |
329 | 341 | { |
330 | | - provider: "local", |
| 342 | + provider: fontProviders.local(), |
331 | 343 | name: "Atkinson Hyperlegible Next", |
332 | 344 | cssVariable: "--font-atkinson-hyperlegible-next", |
333 | 345 | optimizedFallbacks: false, |
334 | | - variants: [ |
335 | | - { |
336 | | - weight: "200 800", |
337 | | - style: "normal", |
338 | | - src: ["./src/assets/fonts/AtkinsonHyperlegibleNext-VariableFont_wght.woff2"], |
339 | | - variationSettings: "normal", |
340 | | - display: "swap", |
341 | | - }, |
342 | | - { |
343 | | - weight: "200 800", |
344 | | - style: "italic", |
345 | | - src: ["./src/assets/fonts/AtkinsonHyperlegibleNext-Italic-VariableFont_wght.woff2"], |
346 | | - variationSettings: "normal", |
347 | | - display: "swap", |
348 | | - }, |
349 | | - ], |
| 346 | + options: { |
| 347 | + variants: [ |
| 348 | + { |
| 349 | + weight: "200 800", |
| 350 | + style: "normal", |
| 351 | + src: ["./src/assets/fonts/AtkinsonHyperlegibleNext-VariableFont_wght.woff2"], |
| 352 | + variationSettings: "normal", |
| 353 | + display: "swap", |
| 354 | + }, |
| 355 | + { |
| 356 | + weight: "200 800", |
| 357 | + style: "italic", |
| 358 | + src: ["./src/assets/fonts/AtkinsonHyperlegibleNext-Italic-VariableFont_wght.woff2"], |
| 359 | + variationSettings: "normal", |
| 360 | + display: "swap", |
| 361 | + }, |
| 362 | + ], |
| 363 | + }, |
350 | 364 | }, |
351 | 365 | ], |
352 | 366 | }, |
|
0 commit comments