Skip to content

Rebuild site with Void and deploy with Actions - #9

Merged
honbin merged 5 commits into
mainfrom
build-with-void
Oct 29, 2026
Merged

honbin merged 5 commits into
mainfrom
build-with-void

Conversation

@honbin

@honbin honbin commented Oct 29, 2026

Copy link
Copy Markdown
Member

makewith.jp を Void + React で作り直し、静的に書き出して GitHub Pages に Actions で公開する形にします。

変更点

  • Void でサイトを作成(トップ、About、つくることの記録の一覧と記事)。ページはクライアントに JavaScript を送りません
  • 記録の frontmatter をビルド時に確かめ、問題があればビルドを止めます
  • OGP のタグと canonical を、ビルドした HTML から middleware で付けます
  • GitHub Actions でビルドして公開します。PR では型チェック、テスト、ビルドだけを行います
  • 最初の記録「makewith.jp をつくり直す」、README、Renovate の設定を追加

マージの前に

Settings → Pages → Source を「GitHub Actions」に切り替えてから、間を空けずにマージしてください。今は main の直下をそのまま公開する設定なので、このままマージすると README などがそのまま公開されるおそれがあります。カスタムドメインは Pages の設定から使われるので、CNAME ファイルは削除しています。

確認したこと

  • npx tsc --noEmit、npm test、npm run build が通ること
  • ビルドした HTML で、OGP のタグと canonical が出ていること、サイト内のリンクが切れていないこと、外部の画像やスクリプトを読み込んでいないこと

マージ後に、/making、/making/、/about、/about/、favicon、Slack での表示、HTTPS を確かめます。

Rebuild makewith.jp on Void so server features (API routes, DB) can be
added later, while exporting a static site for GitHub Pages for now.
Pages are island pages, so they ship no client JavaScript, and sections
without records stay hidden instead of showing an empty list.
The site now needs a build step, so serving the main branch root no
longer works. PRs are built too, so dependency updates are checked
before they reach main, while only main deploys. CI reads Node from
.tool-versions to match local builds, and moves each page to
x/index.html because links end with a slash while Void writes
making.html, and GitHub Pages answers /making/ with a 404 without
making/index.html. The custom domain comes from the Pages settings, so
the CNAME file is no longer needed.
Use the shared preset like the other repositories. asdf is enabled
here so Node in .tool-versions is updated too; enabledManagers is not
mergeable, so the preset's npm and GitHub Actions are listed again.
The first record links to this repository, and writing a record has a
few rules that otherwise live only in private notes. Written in
Japanese for the people who will read and contribute records.
@honbin
honbin merged commit 532cc08 into main Oct 29, 2026
2 checks passed
@honbin
honbin deleted the build-with-void branch October 29, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant