|
1 | 1 | // @ts-check |
2 | | -import { defineConfig } from 'astro/config'; |
3 | | -import starlight from '@astrojs/starlight'; |
| 2 | +import { defineConfig } from "astro/config"; |
| 3 | +import starlight from "@astrojs/starlight"; |
4 | 4 |
|
5 | 5 | // https://astro.build/config |
6 | 6 | export default defineConfig({ |
7 | | - site: 'https://html2rss.github.io', |
8 | | - base: '/', |
9 | | - integrations: [ |
10 | | - starlight({ |
11 | | - title: 'html2rss', |
12 | | - description: 'html2rss brings back RSS. It\'s an open source project with decentralised instances. These instances generate RSS feeds for websites which do not offer them.', |
13 | | - logo: { |
14 | | - src: './src/assets/logo.png', |
15 | | - replacesTitle: true, |
16 | | - }, |
17 | | - head: [ |
18 | | - { |
19 | | - tag: 'meta', |
20 | | - attrs: { |
21 | | - name: 'mobile-web-app-capable', |
22 | | - content: 'yes', |
23 | | - }, |
24 | | - }, |
25 | | - { |
26 | | - tag: 'meta', |
27 | | - attrs: { |
28 | | - name: 'apple-mobile-web-app-capable', |
29 | | - content: 'yes', |
30 | | - }, |
31 | | - }, |
32 | | - { |
33 | | - tag: 'meta', |
34 | | - attrs: { |
35 | | - name: 'apple-mobile-web-app-status-bar-style', |
36 | | - content: 'black', |
37 | | - }, |
38 | | - }, |
39 | | - { |
40 | | - tag: 'meta', |
41 | | - attrs: { |
42 | | - name: 'referrer', |
43 | | - content: 'no-referrer', |
44 | | - }, |
45 | | - }, |
46 | | - { |
47 | | - tag: 'meta', |
48 | | - attrs: { |
49 | | - name: 'theme-color', |
50 | | - content: '#111111', |
51 | | - }, |
52 | | - }, |
53 | | - { |
54 | | - tag: 'link', |
55 | | - attrs: { |
56 | | - rel: 'apple-touch-icon', |
57 | | - sizes: '180x180', |
58 | | - href: '/assets/images/apple-touch-icon.png', |
59 | | - }, |
60 | | - }, |
61 | | - { |
62 | | - tag: 'link', |
63 | | - attrs: { |
64 | | - rel: 'icon', |
65 | | - type: 'image/png', |
66 | | - sizes: '32x32', |
67 | | - href: '/assets/images/favicon-32x32.png', |
68 | | - }, |
69 | | - }, |
70 | | - { |
71 | | - tag: 'link', |
72 | | - attrs: { |
73 | | - rel: 'icon', |
74 | | - type: 'image/png', |
75 | | - sizes: '16x16', |
76 | | - href: '/assets/images/favicon-16x16.png', |
77 | | - }, |
78 | | - }, |
79 | | - { |
80 | | - tag: 'link', |
81 | | - attrs: { |
82 | | - rel: 'manifest', |
83 | | - href: '/assets/images/site.webmanifest', |
84 | | - }, |
85 | | - }, |
86 | | - { |
87 | | - tag: 'link', |
88 | | - attrs: { |
89 | | - rel: 'mask-icon', |
90 | | - href: '/assets/images/safari-pinned-tab.svg', |
91 | | - color: '#111111', |
92 | | - }, |
93 | | - }, |
94 | | - { |
95 | | - tag: 'link', |
96 | | - attrs: { |
97 | | - rel: 'shortcut icon', |
98 | | - href: '/assets/images/favicon.ico', |
99 | | - }, |
100 | | - }, |
101 | | - { |
102 | | - tag: 'script', |
103 | | - attrs: { |
104 | | - 'data-goatcounter': 'https://html2rss.goatcounter.com/count', |
105 | | - async: true, |
106 | | - src: '//gc.zgo.at/count.js', |
107 | | - }, |
108 | | - }, |
109 | | - ], |
110 | | - social: [ |
111 | | - { |
112 | | - icon: 'github', |
113 | | - label: 'GitHub', |
114 | | - href: 'https://github.com/html2rss' |
115 | | - }, |
116 | | - ], |
117 | | - editLink: { |
118 | | - baseUrl: 'https://github.com/html2rss/html2rss.github.io/edit/main/', |
119 | | - }, |
120 | | - sidebar: [ |
121 | | - { |
122 | | - label: 'Home', |
123 | | - link: '/', |
124 | | - }, |
125 | | - { |
126 | | - label: 'About', |
127 | | - link: '/about', |
128 | | - }, |
129 | | - { |
130 | | - label: 'Feed Directory', |
131 | | - link: '/feed-directory/', |
132 | | - }, |
133 | | - { |
134 | | - label: 'Creating Custom Feeds', |
135 | | - link: '/html2rss-configs', |
136 | | - }, |
137 | | - { |
138 | | - label: 'Web Application', |
139 | | - autogenerate: { directory: 'web-application' }, |
140 | | - }, |
141 | | - { |
142 | | - label: 'Ruby Gem', |
143 | | - autogenerate: { directory: 'ruby-gem' }, |
144 | | - }, |
145 | | - { |
146 | | - label: 'Get Involved', |
147 | | - autogenerate: { directory: 'get-involved' }, |
148 | | - }, |
149 | | - { |
150 | | - label: 'Support', |
151 | | - autogenerate: { directory: 'support' }, |
152 | | - }, |
153 | | - ], |
154 | | - defaultLocale: 'root', |
155 | | - locales: { |
156 | | - root: { |
157 | | - label: 'English', |
158 | | - lang: 'en', |
159 | | - }, |
160 | | - }, |
161 | | - }), |
162 | | - ], |
| 7 | + site: "https://html2rss.github.io", |
| 8 | + base: "/", |
| 9 | + integrations: [ |
| 10 | + starlight({ |
| 11 | + title: "html2rss", |
| 12 | + description: |
| 13 | + "html2rss brings back RSS. It's an open source project with decentralised instances. These instances generate RSS feeds for websites which do not offer them.", |
| 14 | + logo: { |
| 15 | + src: "./src/assets/logo.png", |
| 16 | + replacesTitle: true, |
| 17 | + }, |
| 18 | + head: [ |
| 19 | + { |
| 20 | + tag: "meta", |
| 21 | + attrs: { |
| 22 | + name: "mobile-web-app-capable", |
| 23 | + content: "yes", |
| 24 | + }, |
| 25 | + }, |
| 26 | + { |
| 27 | + tag: "meta", |
| 28 | + attrs: { |
| 29 | + name: "apple-mobile-web-app-capable", |
| 30 | + content: "yes", |
| 31 | + }, |
| 32 | + }, |
| 33 | + { |
| 34 | + tag: "meta", |
| 35 | + attrs: { |
| 36 | + name: "apple-mobile-web-app-status-bar-style", |
| 37 | + content: "black", |
| 38 | + }, |
| 39 | + }, |
| 40 | + { |
| 41 | + tag: "meta", |
| 42 | + attrs: { |
| 43 | + name: "referrer", |
| 44 | + content: "no-referrer", |
| 45 | + }, |
| 46 | + }, |
| 47 | + { |
| 48 | + tag: "meta", |
| 49 | + attrs: { |
| 50 | + name: "theme-color", |
| 51 | + content: "#111111", |
| 52 | + }, |
| 53 | + }, |
| 54 | + { |
| 55 | + tag: "link", |
| 56 | + attrs: { |
| 57 | + rel: "apple-touch-icon", |
| 58 | + sizes: "180x180", |
| 59 | + href: "/assets/images/apple-touch-icon.png", |
| 60 | + }, |
| 61 | + }, |
| 62 | + { |
| 63 | + tag: "link", |
| 64 | + attrs: { |
| 65 | + rel: "icon", |
| 66 | + type: "image/png", |
| 67 | + sizes: "32x32", |
| 68 | + href: "/assets/images/favicon-32x32.png", |
| 69 | + }, |
| 70 | + }, |
| 71 | + { |
| 72 | + tag: "link", |
| 73 | + attrs: { |
| 74 | + rel: "icon", |
| 75 | + type: "image/png", |
| 76 | + sizes: "16x16", |
| 77 | + href: "/assets/images/favicon-16x16.png", |
| 78 | + }, |
| 79 | + }, |
| 80 | + { |
| 81 | + tag: "link", |
| 82 | + attrs: { |
| 83 | + rel: "manifest", |
| 84 | + href: "/assets/images/site.webmanifest", |
| 85 | + }, |
| 86 | + }, |
| 87 | + { |
| 88 | + tag: "link", |
| 89 | + attrs: { |
| 90 | + rel: "mask-icon", |
| 91 | + href: "/assets/images/safari-pinned-tab.svg", |
| 92 | + color: "#111111", |
| 93 | + }, |
| 94 | + }, |
| 95 | + { |
| 96 | + tag: "link", |
| 97 | + attrs: { |
| 98 | + rel: "shortcut icon", |
| 99 | + href: "/assets/images/favicon.ico", |
| 100 | + }, |
| 101 | + }, |
| 102 | + { |
| 103 | + tag: "script", |
| 104 | + attrs: { |
| 105 | + "data-goatcounter": "https://html2rss.goatcounter.com/count", |
| 106 | + async: true, |
| 107 | + src: "//gc.zgo.at/count.js", |
| 108 | + }, |
| 109 | + }, |
| 110 | + ], |
| 111 | + social: [ |
| 112 | + { |
| 113 | + icon: "github", |
| 114 | + label: "GitHub", |
| 115 | + href: "https://github.com/html2rss", |
| 116 | + }, |
| 117 | + ], |
| 118 | + editLink: { |
| 119 | + baseUrl: "https://github.com/html2rss/html2rss.github.io/edit/main/", |
| 120 | + }, |
| 121 | + sidebar: [ |
| 122 | + { |
| 123 | + label: "Home", |
| 124 | + link: "/", |
| 125 | + }, |
| 126 | + { |
| 127 | + label: "About", |
| 128 | + link: "/about", |
| 129 | + }, |
| 130 | + { |
| 131 | + label: "Feed Directory", |
| 132 | + link: "/feed-directory/", |
| 133 | + }, |
| 134 | + { |
| 135 | + label: "Creating Custom Feeds", |
| 136 | + link: "/html2rss-configs", |
| 137 | + }, |
| 138 | + { |
| 139 | + label: "Web Application", |
| 140 | + autogenerate: { directory: "web-application" }, |
| 141 | + }, |
| 142 | + { |
| 143 | + label: "Ruby Gem", |
| 144 | + autogenerate: { directory: "ruby-gem" }, |
| 145 | + }, |
| 146 | + { |
| 147 | + label: "Get Involved", |
| 148 | + autogenerate: { directory: "get-involved" }, |
| 149 | + }, |
| 150 | + { |
| 151 | + label: "Support", |
| 152 | + autogenerate: { directory: "support" }, |
| 153 | + }, |
| 154 | + ], |
| 155 | + defaultLocale: "root", |
| 156 | + locales: { |
| 157 | + root: { |
| 158 | + label: "English", |
| 159 | + lang: "en", |
| 160 | + }, |
| 161 | + }, |
| 162 | + }), |
| 163 | + ], |
163 | 164 | }); |
0 commit comments