|
1 | | -import { defineConfig } from "astro/config"; |
2 | | -import starlight from "@astrojs/starlight"; |
3 | | -import remarkMath from "remark-math"; |
4 | | -import rehypeMathjax from "rehype-mathjax"; |
5 | | -import starlightLinksValidator from "starlight-links-validator"; |
6 | | -import starlightFullViewMode from "starlight-fullview-mode"; |
| 1 | +import { defineConfig } from 'astro/config' |
| 2 | +import starlight from '@astrojs/starlight' |
| 3 | +import remarkMath from 'remark-math' |
| 4 | +import rehypeMathjax from 'rehype-mathjax' |
| 5 | +import starlightLinksValidator from 'starlight-links-validator' |
| 6 | +import starlightFullViewMode from 'starlight-fullview-mode' |
7 | 7 |
|
8 | 8 | // https://astro.build/config |
9 | 9 | export default defineConfig({ |
10 | | - site: "https://interledger.net", |
| 10 | + site: 'https://interledger.net', |
11 | 11 | markdown: { |
12 | 12 | remarkPlugins: [remarkMath], |
13 | | - rehypePlugins: [rehypeMathjax], |
| 13 | + rehypePlugins: [rehypeMathjax] |
14 | 14 | }, |
15 | 15 | integrations: [ |
16 | 16 | starlight({ |
17 | | - title: "Docs style guide", |
18 | | - description: "The style guide for all Interledger documentation sites. Because we love consistency.", |
| 17 | + title: 'Docs style guide', |
| 18 | + description: |
| 19 | + 'The style guide for all Interledger documentation sites. Because we love consistency.', |
19 | 20 | customCss: [ |
20 | | - "./node_modules/@interledger/docs-design-system/src/styles/teal-theme.css", |
21 | | - "./node_modules/@interledger/docs-design-system/src/styles/ilf-docs.css", |
| 21 | + './node_modules/@interledger/docs-design-system/src/styles/teal-theme.css', |
| 22 | + './node_modules/@interledger/docs-design-system/src/styles/ilf-docs.css' |
22 | 23 | ], |
23 | 24 | plugins: [starlightLinksValidator(), starlightFullViewMode()], |
24 | 25 | expressiveCode: { |
25 | 26 | styleOverrides: { |
26 | | - borderColor: "transparent", |
27 | | - borderRadius: "var(--border-radius)", |
28 | | - }, |
| 27 | + borderColor: 'transparent', |
| 28 | + borderRadius: 'var(--border-radius)' |
| 29 | + } |
29 | 30 | }, |
30 | | - social: [{ icon: "github", label: "GitHub", href: "https://github.com/interledger/docs-styleguide" }], |
| 31 | + social: [ |
| 32 | + { |
| 33 | + icon: 'github', |
| 34 | + label: 'GitHub', |
| 35 | + href: 'https://github.com/interledger/docs-styleguide' |
| 36 | + } |
| 37 | + ], |
31 | 38 | components: { |
32 | | - Header: "./src/components/Header.astro", |
| 39 | + Header: './src/components/Header.astro' |
33 | 40 | }, |
34 | 41 | sidebar: [ |
35 | 42 | { |
36 | | - label: "Overview of doc styles", |
37 | | - link: "/", |
| 43 | + label: 'Overview of doc styles', |
| 44 | + link: '/' |
38 | 45 | }, |
39 | 46 | { |
40 | | - label: "Style guides", |
| 47 | + label: 'Style guides', |
41 | 48 | autogenerate: { |
42 | | - directory: "content", |
43 | | - }, |
| 49 | + directory: 'content' |
| 50 | + } |
44 | 51 | }, |
45 | 52 | { |
46 | | - label: "Classes, styles, HTML, etc", |
| 53 | + label: 'Classes, styles, HTML, etc', |
47 | 54 | autogenerate: { |
48 | | - directory: "classes", |
49 | | - }, |
| 55 | + directory: 'classes' |
| 56 | + } |
50 | 57 | }, |
51 | 58 | { |
52 | | - label: "Shared Components", |
| 59 | + label: 'Shared Components', |
53 | 60 | autogenerate: { |
54 | | - directory: "shared", |
55 | | - }, |
| 61 | + directory: 'shared' |
| 62 | + } |
56 | 63 | }, |
57 | 64 | { |
58 | | - label: "Open Payments Components", |
| 65 | + label: 'Open Payments Components', |
59 | 66 | autogenerate: { |
60 | | - directory: "oppm", |
61 | | - }, |
| 67 | + directory: 'oppm' |
| 68 | + } |
62 | 69 | }, |
63 | 70 | { |
64 | | - label: "Web Monetization Components", |
| 71 | + label: 'Web Monetization Components', |
65 | 72 | autogenerate: { |
66 | | - directory: "webm", |
67 | | - }, |
68 | | - }, |
69 | | - ], |
70 | | - }), |
| 73 | + directory: 'webm' |
| 74 | + } |
| 75 | + } |
| 76 | + ] |
| 77 | + }) |
71 | 78 | ], |
72 | 79 | server: { |
73 | | - port: 1105, |
74 | | - }, |
75 | | -}); |
| 80 | + port: 1105 |
| 81 | + } |
| 82 | +}) |
0 commit comments