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
|
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import sitemap from "@astrojs/sitemap";
import remarkMermaid from "remark-mermaidjs";
import ogImagePlugin from "./src/plugins/og-image";
import updatesIntegration from "./src/plugins/updates";
export default defineConfig({
site: "https://yasutakeyohei.com",
base: "/",
trailingSlash: "always",
markdown: {
remarkPlugins: [remarkMermaid],
},
integrations: [
sitemap(),
updatesIntegration(),
ogImagePlugin(),
starlight({
title: "小平市議 安竹洋平 公式サイト",
description:
"一般質問や議会での活動、いじめ、発達関連の情報をまとめています。",
defaultLocale: "root",
locales: {
root: {
label: "日本語",
lang: "ja",
},
},
social: [
{
icon: "x.com",
label: "X",
href: "https://twitter.com/yasutakeyohei",
},
{
icon: "code-branch",
label: "CGit",
href: "https://cgit.yasutakeyohei.com/",
},
],
sidebar: [
{ label: "実績", link: "/jisseki/" },
{ label: "私の方針", link: "/policy/" },
{ label: "メディア掲載", link: "/media/" },
{
label: "一般質問",
collapsed: true,
items: [
{ label: "一覧", link: "/ippan-situmon/" },
year("r8d", "令和8年度", ["9gatu", "6gatu"]),
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: "/iinkai/" },
{
label: "令和8年度",
collapsed: true,
items: [
{
label: "請願第19号(令和8年8月26日 厚生委員会)",
link: "/iinkai/r8d/1-seigan19/",
},
],
},
],
},
{ label: "ディスレクシアについて", link: "/about-dyslexia/" },
{ label: "ご支援", link: "/support/" },
{
label: "活動を支えるツール",
collapsed: true,
items: [
{
label: "Whisperで文字起こしする方法",
link: "/whisper-to-ai-moji-okoshi/",
},
{
label: "textlintで文章校正する方法",
link: "/textlint-guide/",
},
],
},
{ label: "コンタクト", link: "/contact/" },
],
customCss: ["./src/styles/custom.css"],
tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 6 },
lastUpdated: true,
editLink: {
baseUrl: "https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/log/",
},
plugins: [],
pagefind: true,
head: [
{
tag: "link",
attrs: {
rel: "icon",
href: "/favicon.ico",
type: "image/x-icon",
},
},
{
tag: "script",
attrs: {
defer: true,
src: "https://umami.yasutakeyohei.com/script.js",
"data-website-id": "75200d05-d977-4664-83f4-148e2a4f774b",
},
},
{
tag: "meta",
attrs: {
property: "og:image",
content: "https://yasutakeyohei.com/og/index.jpg?v=2",
},
},
{
tag: "meta",
attrs: {
name: "twitter:card",
content: "summary_large_image",
},
},
{
tag: "meta",
attrs: {
name: "twitter:image",
content: "https://yasutakeyohei.com/og/index.jpg?v=2",
},
},
{
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/faceicon.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('.sl-markdown-content h2[id], .sl-markdown-content h3[id]').forEach(h => { const a = document.createElement('a'); a.href = '#' + h.id; a.className = 'heading-anchor'; a.innerHTML = '<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"/><path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"/></svg>'; a.title = 'クリックでこの見出しのURLをコピー'; a.addEventListener('click', e => { e.preventDefault(); const url = location.origin + location.pathname + '#' + h.id; navigator.clipboard.writeText(url).then(() => { a.classList.add('copied'); a.title = 'コピーしました!'; setTimeout(() => { a.classList.remove('copied'); a.title = 'クリックでこの見出しのURLをコピー'; }, 2000); }); }); h.prepend(a); }); });",
},
{
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",
SocialIcons: "./src/components/starlight/SocialIcons.astro",
Footer: "./src/components/starlight/Footer.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 };
}
|