aboutsummaryrefslogtreecommitdiffhomepage
path: root/astro.config.mjs
blob: 438266a837aa17ae16e78bce0a448dcd3de6113c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
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/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 };
}