diff options
Diffstat (limited to 'astro.config.mjs')
| -rw-r--r-- | astro.config.mjs | 243 |
1 files changed, 243 insertions, 0 deletions
diff --git a/astro.config.mjs b/astro.config.mjs new file mode 100644 index 0000000..24efe14 --- /dev/null +++ b/astro.config.mjs @@ -0,0 +1,243 @@ +import { defineConfig } from "astro/config"; +import starlight from "@astrojs/starlight"; +import sitemap from "@astrojs/sitemap"; +import remarkMermaid from "remark-mermaidjs"; + +export default defineConfig({ + site: "https://yasutakeyohei.com", + base: "/", + trailingSlash: "always", + markdown: { + remarkPlugins: [remarkMermaid], + }, + integrations: [ + sitemap(), + starlight({ + title: "小平市議 安竹洋平 公式サイト", + description: + "一般質問や議会での活動、いじめ、発達関連の情報をまとめています。", + defaultLocale: "root", + locales: { + root: { + label: "日本語", + lang: "ja", + }, + }, + social: [ + { + icon: "x.com", + label: "X", + href: "https://twitter.com/yasutakeyohei", + }, + { + icon: "github", + label: "CGit", + href: "https://cgit.yasutakeyohei.com/", + }, + ], + sidebar: [ + { label: "ホーム", link: "/" }, + { + label: "実績", + collapsed: false, + items: [ + { label: "概要", link: "/jisseki/" }, + { + label: "公文書管理の不正追及の軌跡", + link: "/koubunsyo-kanri/", + }, + { + label: "いじめ重大事態への対応の軌跡", + link: "/ijime-judai-jitai/", + }, + { + label: "障害者福祉施設における虐待通報対応の軌跡", + link: "/fukushi-shisetsu-gyakutai/", + }, + { label: "合気公園の軌跡", link: "/aiki-kouen/" }, + { label: "情緒固定級の軌跡", link: "/joutyo-koteikyu/" }, + { label: "過剰な制限緩和の軌跡", link: "/kajo-seigen-kanwa/" }, + { + label: "東京サレジオ学園北側開発問題の軌跡", + link: "/saresio-kaihatu/", + }, + { + label: "ワクチン副反応救済制度の適正化の軌跡", + link: "/vaccine-kyuusai-tekiseika/", + }, + { + label: "ディスレクシア(読み書き障害)対応の軌跡", + link: "/dislexia-taiou/", + }, + ], + }, + { label: "私の方針", link: "/policy/" }, + { + label: "一般質問", + collapsed: false, + items: [ + { label: "一覧", link: "/ippan-situmon/" }, + year("r7d", "令和7年度", ["3gatu", "12gatu", "9gatu", "6gatu"]), + year("r6d", "令和6年度", ["3gatu", "12gatu", "9gatu", "6gatu"]), + year("r5d", "令和5年度", ["3gatu", "12gatu", "9gatu", "6gatu"]), + year("r4d", "令和4年度", ["3gatu", "12gatu", "9gatu", "6gatu"]), + year("r3d", "令和3年度", ["3gatu", "12gatu", "9gatu", "6gatu"]), + year("r2d", "令和2年度", ["3gatu", "12gatu", "9gatu", "6gatu"]), + year("r1d", "令和元年度", ["3gatu", "12gatu", "9gatu", "6gatu"]), + ], + }, + { + label: "ディスレクシアについて", + collapsed: true, + items: [ + { label: "概要", link: "/about-dyslexia/" }, + { + label: "ディスレクシアとは", + link: "/about-dyslexia/what-is-dyslexia/", + }, + { + label: "ディスレクシアの著名人", + link: "/about-dyslexia/celebrities/", + }, + { + label: "本人や保護者の声", + link: "/about-dyslexia/voices/", + }, + { + label: "潜在的人数と文科省調査", + link: "/about-dyslexia/potential-number/", + }, + { + label: "見過ごさないためのアセスメント", + link: "/about-dyslexia/assessment/", + }, + { + label: "デイジー教科書と音声教材", + link: "/about-dyslexia/daisy-and-onsei/", + }, + { + label: "合理的配慮と関連法律", + link: "/about-dyslexia/reasonable-accommodation/", + }, + { + label: "小平市の状況", + link: "/about-dyslexia/kodaira/", + }, + { + label: "就学相談・通級指導", + link: "/about-dyslexia/school-consultation/", + }, + { + label: "情緒固定級とは", + link: "/about-dyslexia/emotional-support-class/", + }, + { + label: "チャレンジスクール等", + link: "/about-dyslexia/high-school-options/", + }, + { + label: "長期欠席支援シート", + link: "/about-dyslexia/support-sheet/", + }, + { + label: "支援リソース・参考情報", + link: "/about-dyslexia/support-resources/", + }, + ], + }, + { label: "ご支援", link: "/support/" }, + { label: "コンタクト", link: "/contact/" }, + ], + customCss: ["./src/styles/custom.css"], + tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 6 }, + lastUpdated: true, + editLink: { + baseUrl: "https://cgit.yasutakeyohei.com/tree/src/content/docs/", + }, + plugins: [], + pagefind: true, + head: [ + { + tag: "link", + attrs: { + rel: "icon", + href: "/favicon.ico", + type: "image/x-icon", + }, + }, + { + tag: "meta", + attrs: { + property: "og:image", + content: + "https://yasutakeyohei.com/img/yasutake-yohei-city-council.jpg", + }, + }, + { + tag: "script", + attrs: { type: "application/ld+json" }, + content: JSON.stringify({ + "@context": "https://schema.org", + "@type": "Person", + name: "安竹洋平", + givenName: "洋平", + familyName: "安竹", + jobTitle: "小平市議会議員", + affiliation: { + "@type": "Organization", + name: "小平市議会", + address: { + "@type": "PostalAddress", + addressLocality: "小平市", + addressRegion: "東京都", + addressCountry: "JP", + }, + }, + image: + "https://yasutakeyohei.com/img/yasutake-yohei-city-council.jpg", + url: "https://yasutakeyohei.com/", + sameAs: ["https://twitter.com/yasutakeyohei"], + }), + }, + { + tag: "script", + attrs: { + src: "https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js", + }, + }, + { + tag: "script", + content: + "document.addEventListener('DOMContentLoaded', () => { mermaid.initialize({ startOnLoad: false, theme: 'default' }); document.querySelectorAll('pre code.language-mermaid').forEach(el => { const pre = el.parentElement; pre.classList.add('mermaid'); pre.innerHTML = el.textContent; }); mermaid.run(); });", + }, + { + tag: "script", + content: + "document.addEventListener('DOMContentLoaded', () => { document.querySelectorAll('[href=\"#_top\"] span').forEach(el => { if (el.textContent === 'トップへ戻る') el.textContent = ''; }); });", + }, + ], + components: { + PageTitle: "./src/components/starlight/PageTitle.astro", + }, + }), + ], +}); + +function year(dir, label, months) { + const MONTHS = { + "6gatu": "6月定例会", + "9gatu": "9月定例会", + "12gatu": "12月定例会", + "3gatu": "3月定例会", + }; + const items = []; + items.push({ label: `${label}`, link: `ippan-situmon/${dir}/` }); + for (const m of months) { + items.push({ + label: MONTHS[m], + collapsed: true, + items: [{ autogenerate: { directory: `ippan-situmon/${dir}/${m}` } }], + }); + } + return { label, collapsed: true, items }; +} |
