{"id":51445145,"url":"https://github.com/torifo/slate-errors","last_synced_at":"2026-07-05T15:30:40.479Z","repository":{"id":357580626,"uuid":"1237597142","full_name":"torifo/slate-errors","owner":"torifo","description":"放課後の黒板で、HTTPエラーを学び直す。エラーは間違いではない、発見である。","archived":false,"fork":false,"pushed_at":"2026-06-07T07:22:56.000Z","size":259,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-07T09:15:03.182Z","etag":null,"topics":["astro","blog","content-site","css","documentation","educational","error-handling","frontend","http","javascript","knowledge-base","learning","mdx","reference","ssg","status-code","tailwind-css","tool","typescript","web-app"],"latest_commit_sha":null,"homepage":"https://torifo.github.io/slate-errors/","language":"MDX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/torifo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-13T10:26:32.000Z","updated_at":"2026-06-07T07:23:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/torifo/slate-errors","commit_stats":null,"previous_names":["torifo/slate-errors"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/torifo/slate-errors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torifo%2Fslate-errors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torifo%2Fslate-errors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torifo%2Fslate-errors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torifo%2Fslate-errors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/torifo","download_url":"https://codeload.github.com/torifo/slate-errors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torifo%2Fslate-errors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35160046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astro","blog","content-site","css","documentation","educational","error-handling","frontend","http","javascript","knowledge-base","learning","mdx","reference","ssg","status-code","tailwind-css","tool","typescript","web-app"],"created_at":"2026-07-05T15:30:40.360Z","updated_at":"2026-07-05T15:30:40.466Z","avatar_url":"https://github.com/torifo.png","language":"MDX","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slate Errors\n\n\u003c!-- tech-stack:start (auto-generated) --\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Astro-BC52EE?style=for-the-badge\u0026logo=astro\u0026logoColor=white\" alt=\"Astro\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Tailwind_CSS-06B6D4?style=for-the-badge\u0026logo=tailwindcss\u0026logoColor=white\" alt=\"Tailwind CSS\"\u003e\n\u003c/p\u003e\n\u003c!-- tech-stack:end --\u003e\n\n放課後の黒板で、HTTPエラーを学び直す。\n\n\u003e エラーは間違いではない、発見である。\n\n「Slate Errors」は、HTTP ステータスコード (4xx / 5xx) を **黒板＋チョークの世界観** で日本語学習できるリファレンスサイトです。エラーの意味、原因、対処法を「先生・生徒・職員室」のメタファーでやさしく解き直します。\n\n- 全 40 件の RFC 標準 4xx / 5xx エラーを網羅\n- 日本語ファースト、Fuse.js による高速サジェスト検索 (シノニム対応)\n- 完全静的 (Astro + MDX)、無料ホスティング (GitHub Pages)\n- 黒板テーマ ＋ チョーク UI (Tailwind v4 / Inter / M PLUS Rounded 1c / JetBrains Mono)\n\n## ローカル開発\n\n```bash\npnpm install\npnpm dev              # http://localhost:4321/slate-errors/\npnpm build            # 本番ビルド (astro check + astro build)\npnpm preview          # 本番想定の base path でプレビュー\npnpm test             # Vitest (lib + content schema)\npnpm check            # astro check (型 / コンテンツ整合性)\npnpm check:content    # MDX フロントマター検証 (重複コード / 孤立 related 検出)\n```\n\nNode.js は `\u003e=22.12.0` が必要です。パッケージマネージャは pnpm。\n\n## コンテンツの追加・編集\n\n### 既存ページを直す\n\n1. `src/content/errors/\u003ccode\u003e.mdx` を編集する\n2. `pnpm dev` でプレビュー、`pnpm check:content` で整合性確認\n3. コミット (Conventional Commits 推奨: `content: ...`)\n\n### 新しいエラーページを追加する\n\n1. `src/content/errors/_template.mdx` をコピーして `\u003ccode\u003e.mdx` を作成\n2. フロントマター必須項目 (`code` / `name` / `nameJa` / `category` / `summary` / `synonyms` 等) を埋める\n3. 本文セクション (TL;DR / 学校での例え / 何が起きたか / 直し方 / 確認するもの 等) を執筆\n4. `popular: true` を付けるとトップページの「よくあるエラー」に出る\n5. `related: [400, 500]` で関連エラーを相互リンク\n6. `pnpm check:content` で重複コード・孤立 related が無いか確認\n7. `pnpm build` で全ページが正しく生成されることを確認\n\n詳しい執筆ガイド: [`docs/CONTENT_GUIDE.md`](docs/CONTENT_GUIDE.md)\n\n## デプロイ (GitHub Pages)\n\n`main` への push で `.github/workflows/deploy.yml` が走り、GitHub Pages へ自動公開されます。\n\n初回セットアップ:\n\n1. GitHub に `torifo/slate-errors` リポジトリを作成\n2. Settings → Pages → Source = **GitHub Actions** に設定\n3. ローカルから:\n   ```bash\n   git remote add origin git@github.com:torifo/slate-errors.git\n   git push -u origin main\n   ```\n4. Actions タブで `deploy` ワークフローの完了を待つ\n5. https://torifo.github.io/slate-errors/ が公開される\n\n`base` パス (`/slate-errors/`) は `astro.config.mjs` で設定済みです。別リポジトリ名にする場合は同ファイルと `package.json` の `preview` スクリプトを更新してください。\n\n## 詳細ドキュメント\n\n- 設計仕様: [`docs/superpowers/specs/2026-05-13-slate-errors-design.md`](docs/superpowers/specs/2026-05-13-slate-errors-design.md)\n- 実装計画: [`docs/superpowers/plans/2026-05-13-slate-errors.md`](docs/superpowers/plans/2026-05-13-slate-errors.md)\n- コンテンツ執筆ガイド: [`docs/CONTENT_GUIDE.md`](docs/CONTENT_GUIDE.md)\n- コンテンツ進捗管理: [`docs/CONTENT_PROGRESS.md`](docs/CONTENT_PROGRESS.md)\n\n## 技術スタック\n\n| 領域 | 技術 |\n| --- | --- |\n| フレームワーク | [Astro 6](https://astro.build/) (静的生成 / Content Collections) |\n| コンテンツ | MDX 5 (`@astrojs/mdx`) |\n| スタイル | Tailwind CSS v4 (`@tailwindcss/vite`) + カスタム黒板テーマ |\n| 検索 | [Fuse.js](https://fusejs.io/) (クライアントサイド、ビルド時 `search-index.json` 生成) |\n| サイトマップ | `@astrojs/sitemap` |\n| テスト | [Vitest 4](https://vitest.dev/) |\n| 型・整合性 | TypeScript 5 / `astro check` / 自作 `check:content` |\n| ホスティング | GitHub Pages (`actions/deploy-pages@v4`) |\n| フォント | Inter / M PLUS Rounded 1c / JetBrains Mono (Google Fonts) |\n\n## ライセンス\n\n未定 (コンテンツは原則 CC BY 4.0 を想定)。商用利用時はご相談ください。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorifo%2Fslate-errors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorifo%2Fslate-errors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorifo%2Fslate-errors/lists"}