diff --git a/.env b/.env deleted file mode 100644 index e69de29..0000000 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..a711ef9 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,12 @@ +# Auto detect text files and normalize line endings to LF +* text=auto eol=lf + +# Explicit binary files +*.png binary +*.jpg binary +*.jpeg binary +*.webp binary +*.gif binary +*.ico binary +*.pdf binary +*.ttf binary diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2f33ac0..f185b5b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -79,7 +79,7 @@ jobs: - run: pnpm install - run: | git fetch origin main - git diff origin/main..HEAD --name-only | xargs pnpm run validate-blog + git diff -z origin/main..HEAD --name-only | xargs -0 -r pnpm run validate-blog update-blogmeta: needs: [validate-blog] @@ -108,7 +108,7 @@ jobs: - name: Update Blog Meta run: | git fetch origin main - git diff origin/main..HEAD --name-status | xargs pnpm run update-blogmeta + git diff -z origin/main..HEAD --name-status | xargs -0 -r pnpm run update-blogmeta - run: pnpm run format - name: Git Commit run: | diff --git a/.gitignore b/.gitignore index e015602..3a1dd12 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,7 @@ dist # macOS-specific files .DS_Store + +# Local env files +.env.local +.env.*.local diff --git a/astro.config.ts b/astro.config.ts index 4587673..6ff4f88 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -10,7 +10,11 @@ import RemarkLinkRewrite, { import { getFormatUrl } from './src/utils/validateUrl' import pagefind from './src/integrations/pagefind' -const { SITE_URL } = loadEnv(process.env.NODE_ENV!, process.cwd(), '') +const { SITE_URL } = loadEnv( + process.env.NODE_ENV ?? 'development', + process.cwd(), + '', +) // https://astro.build/config export default defineConfig({ diff --git a/public/robots.txt b/public/robots.txt index c9a6956..71db81e 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1 +1,4 @@ +User-agent: * +Allow: / + Sitemap: https://oucc.org/sitemap-index.xml diff --git a/src/assets/drwani_eng.png b/src/assets/drwani_eng.png deleted file mode 100644 index a24ee65..0000000 Binary files a/src/assets/drwani_eng.png and /dev/null differ diff --git a/src/components/workshop/Workshop2026Section.astro b/src/components/workshop/Workshop2026Section.astro index abb9e7a..95fe6d3 100644 --- a/src/components/workshop/Workshop2026Section.astro +++ b/src/components/workshop/Workshop2026Section.astro @@ -48,7 +48,7 @@ export const items: Item[] = [ circleNames: ['RAINBOU'], place: '共C301', description: - 'OSや組み込みシステムなど、高速な処理が求められる分野で広く用いられる言語であるC/C++を扱います。阪大の競技プログラミングサークルであるRAINBOUが担当します', + 'OSや組み込みシステムなど、高速な処理が求められる分野で広く用いられる言語であるC/C++を扱います。阪大の競技プログラミングサークルであるRAINBOUが担当します。', }, { date: date(5, 12, 18, 30), @@ -69,7 +69,7 @@ export const items: Item[] = [ circleNames: ['RAINBOU'], place: '共C405', description: - 'OSや組み込みシステムなど、高速な処理が求められる分野で広く用いられる言語であるC/C++を扱います。阪大の競技プログラミングサークルであるRAINBOUが担当します', + 'OSや組み込みシステムなど、高速な処理が求められる分野で広く用いられる言語であるC/C++を扱います。阪大の競技プログラミングサークルであるRAINBOUが担当します。', }, { date: date(5, 19, 18, 30), @@ -91,7 +91,7 @@ export const items: Item[] = [ circleNames: ['RAINBOU'], place: '共C305', description: - 'OSや組み込みシステムなど、高速な処理が求められる分野で広く用いられる言語であるC/C++を扱います。阪大の競技プログラミングサークルであるRAINBOUが担当します', + 'OSや組み込みシステムなど、高速な処理が求められる分野で広く用いられる言語であるC/C++を扱います。阪大の競技プログラミングサークルであるRAINBOUが担当します。', }, { date: date(5, 26, 18, 30), diff --git a/src/content/blogs/2024-06-30-esbuild-plugin-gas-generator.md b/src/content/blogs/2024-06-30-esbuild-plugin-gas-generator.md index 429bbe2..fe698c6 100644 --- a/src/content/blogs/2024-06-30-esbuild-plugin-gas-generator.md +++ b/src/content/blogs/2024-06-30-esbuild-plugin-gas-generator.md @@ -14,7 +14,7 @@ ESModuleとタイトルに書きましたがESModuleをバンドルできると https://github.com/miyaji255/esbuild-plugin-gas-generator -https://www.npmjs.com/package/esbuild-plugin-gas-generator +[npm: esbuild-plugin-gas-generator](https://www.npmjs.com/package/esbuild-plugin-gas-generator) ## 使い方 diff --git a/src/content/blogs/2024-12-20-whats-new-dotnet-9-for-wpf.md b/src/content/blogs/2024-12-20-whats-new-dotnet-9-for-wpf.md index 552c4e1..3b8efdf 100644 --- a/src/content/blogs/2024-12-20-whats-new-dotnet-9-for-wpf.md +++ b/src/content/blogs/2024-12-20-whats-new-dotnet-9-for-wpf.md @@ -91,4 +91,4 @@ Windowsにはライト・ダークテーマとは別にアクセントカラー https://learn.microsoft.com/ja-jp/dotnet/desktop/wpf/whats-new/net90?view=netdesktop-9.0 -https://github.com/dotnet/wpf/blob/add-fluent-usage-documentation/Documentation/docs/using-fluent.md \ No newline at end of file +https://github.com/dotnet/wpf/blob/main/Documentation/docs/using-fluent.md \ No newline at end of file diff --git a/src/content/blogs/2025-12-01-my-server-ansible-pull.md b/src/content/blogs/2025-12-01-my-server-ansible-pull.md index f112a7e..b0a6e11 100644 --- a/src/content/blogs/2025-12-01-my-server-ansible-pull.md +++ b/src/content/blogs/2025-12-01-my-server-ansible-pull.md @@ -76,7 +76,9 @@ cron ではなく systemd の timer を使用して `ansible-pull` を定期実 構成としては、実行用の `.service` と、スケジュール用の `.timer` をペアで作成します。 -```ini:my-server-ansible-pull.service +`my-server-ansible-pull.service`: + +```ini [Unit] Description=CI 成功コミットのみ反映する ansible-pull デプロイ @@ -88,7 +90,9 @@ User=root Group=root ``` -```ini:my-server-ansible-pull.timer +`my-server-ansible-pull.timer`: + +```ini [Unit] Description=定期デプロイチェック (my-server) diff --git a/src/content/blogs/870/stuff (1).jpg b/src/content/blogs/870/stuff (1).jpg deleted file mode 100644 index 421b349..0000000 Binary files a/src/content/blogs/870/stuff (1).jpg and /dev/null differ diff --git a/src/content/blogs/870/stuff (2).jpg b/src/content/blogs/870/stuff (2).jpg deleted file mode 100644 index 421b349..0000000 Binary files a/src/content/blogs/870/stuff (2).jpg and /dev/null differ diff --git a/src/content/blogs/870/stuff (3).jpg b/src/content/blogs/870/stuff (3).jpg deleted file mode 100644 index 421b349..0000000 Binary files a/src/content/blogs/870/stuff (3).jpg and /dev/null differ diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index c64598a..b5b860c 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -33,12 +33,12 @@ const composedTitle = title === undefined ? siteName : `${title} | ${siteName}`
-