|
| 1 | +// @ts-check |
| 2 | +import { defineConfig } from 'astro/config'; |
| 3 | +import starlight from '@astrojs/starlight'; |
| 4 | + |
| 5 | +// https://astro.build/config |
| 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 | + ], |
| 163 | +}); |
0 commit comments