#author("2026-09-03T11:31:42+09:00","","")
#author("2026-09-03T11:39:05+09:00","","")
* wikitools002 公開済みlive demoのindex.htmlを変更する [#x87c6550]

** 動機 [#tec523c7]

okoze本体はjavascriptのmain.jsです。
index.html, style.css はlive demo公開のための入れものです。

公開済みのepisodeのmain.jsは、そのepisodeの成果物として原則変更しません。
一方、index.html, style.css は公開後も修正したい場合があります。

** 開発計画 [#ba033652]

- 🟧html, css変更機能 
- 🔴tag episode-* のhtml, cssを変更できる 
- 🔴live demo domain/okoze/episode-* の内容が変わる 
- 🔴live demo ページ名は変化しない 
- 🔴live demo index は変化しない 
- 🔴その他のlive demo episode-* の内容は変化しない 

** 機能実装後の修正手順 [#v7fdd9d4]

- 変更したいepisode-*のtagをcheckout 
- branch episode-*-fix1 を作成 
- html, css を変更 
- commit, push 
- tag episode-*-fix1 をつける 
-- fix に続く1文字を修正番号とし、1〜9、A〜Z、a〜z の順に使用する
- tag をpush(GitHub Actions が走ってlive demoを更新) 
- branch episode-*-fix1 を削除 

 git switch --detach episode-003
 git switch -c fix/episode-003-fix1
 vi index.html
 commit, push
 git tag episode-003-fix1
 git tag -a episode-003-fix1 -m "episode-003-fix1"
 git push origin episode-003-fix1
 live demo
 git branch -D episode-003-fix1

** 機能実装方法 [#g18b05f2]

GitHub Actions を変更する。

- 全てのtag(episode-*)をアルファベット順に処理する 
- tagをcheckout 
- tag名からepisode番号を取り出す 
- episode-NNN/ にdeployする 
- 同じepisode番号のtagが後から処理された場合は、以前の内容を削除して作り直す 

-----

* 002 公開済みlive demoのindex.htmlを変更する [#yc23191e]

** 動機 [#c47cdca6]

okoze本体はjavascriptのmain.jsです。
index.html, style.css はlive demo公開のための入れものです。
一度公開したmain.jsは原則変更しませんが、html, css は公開後も変更をしたいです。

** 開発計画 [#a5fe5ad8]

- 🟧html, css変更機能
- 🔴tag episode-* のhtml, cssを変更できる
- 🔴live demo domain/okoze/episode-* の内容が変わる
- 🔴live demo index は変化しない
- 🔴その他のlive demo episode-* の内容は変化しない

** 機能実装後の修正手順 [#y2f74a80]

- 変更したいepisode-*のtagをcheckout
- branch episode-*-fix1 作成
-- fix1, fix2, と順次増やす
- html, css 変更
- commit, push
- tag episode-*-fix1 をつける
- tag をpush (GitHub action が走ってlive demo 更新)
- branch episode-*-fix1 削除

** 機能実装方法 [#kba63c7c]

GitHub Actions を変更する

- 全てのtag(episode-*)をアルファベット順に処理する
- tag を checkout
- tag 名から episode 番号を取り出す
- episode-NNN/ に deploy
- 同じ episode 番号なら一度削除して作り直す

Front page   Edit Diff History Attach Copy Rename Reload   New Page list Search Recent changes   Help   RSS of recent changes