Codexと一緒に、技術的な疑問を静的HTMLの記事として蓄積するためのリポジトリです。
notes-ChatGPT/
├── .github/workflows/static.yml
├── scripts/publish.ps1
├── styles/site.css
├── images/
├── guides/
├── index.html
├── AGENTS.md
└── README.md
- 「質問」で始まる依頼から、CodexがHTML記事を作成します。
- 記事はカテゴリ別ディレクトリに
index.htmlとして追加します。 - トップページの
index.htmlに記事カードを追加します。 - 公開前に差分、参照URL、秘匿情報の混入有無を確認します。
GitHub Pagesで公開する場合は、リポジトリ設定の Pages で Source を GitHub Actions に設定してください。
次のコマンドで git add、git commit、git push をまとめて実行できます。
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\publish.ps1コミットメッセージを指定したい場合は、-Message を付けます。
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\publish.ps1 -Message "Add note about TripoSplat"VS Codeから実行する場合は、Ctrl+Shift+P で Tasks: Run Task を選び、Publish notes を実行します。
コミットメッセージを指定したい場合は、Publish notes with message を選びます。
直近の公開を取り下げる場合は、履歴を書き換えずにrevertコミットを作ってpushします。
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\revert-latest.ps1このリポジトリ作成の参考として、以下の記事を参照しました。
- t.taniguchi, "Instant Question HTML Notes" (Zenn): https://zenn.dev/ttaniguchi/articles/instant-question-html-notes