diff --git a/.github/workflows/typedoc.yml b/.github/workflows/typedoc.yml index d6310cac..5872f28c 100644 --- a/.github/workflows/typedoc.yml +++ b/.github/workflows/typedoc.yml @@ -37,6 +37,8 @@ jobs: run: rm ./docs/type/* -rf - name: update .gitignore run: sed -i -e '/\/docs\/type/d' .gitignore + - name: update sample.html + run: sed --in-place --expression='s/..\/..\/dist\/bundle.js/https:\/\/cdn.jsdelivr.net\/npm\/@xpadev-net\/niconicomments@latest\/dist\/bundle.min.js/' docs/sample/index.html - name: generate typedoc run: npm run typedoc diff --git a/README.md b/README.md index d699b2b8..cc152890 100644 --- a/README.md +++ b/README.md @@ -38,5 +38,5 @@ setInterval(() => niconiComments.drawCanvas(Math.floor(video.currentTime * 100)) ``` ## Sample -[サンプル](https://xpadev.net/niconicomments/sample.html) +[サンプル](https://xpadev-net.github.io/niconicomments/sample/) [CodePen](https://codepen.io/xpadev-net/pen/mdBdQmX) diff --git a/docs/index.html b/docs/index.html index f8d472ac..72206723 100644 --- a/docs/index.html +++ b/docs/index.html @@ -87,7 +87,7 @@

About

Sample

@@ -179,6 +179,11 @@

format:ownerComment[] 投稿者コメント編集画面のエディータのjsonをそのまま渡してください + + legacyOwner + string + 旧投稿者コメント編集画面のエディータの文字列(改行含む)をそのまま渡してください + v1 v1Thread[] diff --git a/sample/commentdata/-1.json b/docs/sample/commentdata/-1.json similarity index 100% rename from sample/commentdata/-1.json rename to docs/sample/commentdata/-1.json diff --git a/sample/commentdata/0.json b/docs/sample/commentdata/0.json similarity index 100% rename from sample/commentdata/0.json rename to docs/sample/commentdata/0.json diff --git a/sample/commentdata/1.json b/docs/sample/commentdata/1.json similarity index 100% rename from sample/commentdata/1.json rename to docs/sample/commentdata/1.json diff --git a/sample/commentdata/10.json b/docs/sample/commentdata/10.json similarity index 100% rename from sample/commentdata/10.json rename to docs/sample/commentdata/10.json diff --git a/sample/commentdata/11.json b/docs/sample/commentdata/11.json similarity index 100% rename from sample/commentdata/11.json rename to docs/sample/commentdata/11.json diff --git a/sample/commentdata/12.json b/docs/sample/commentdata/12.json similarity index 100% rename from sample/commentdata/12.json rename to docs/sample/commentdata/12.json diff --git a/sample/commentdata/13.json b/docs/sample/commentdata/13.json similarity index 100% rename from sample/commentdata/13.json rename to docs/sample/commentdata/13.json diff --git a/sample/commentdata/14.json b/docs/sample/commentdata/14.json similarity index 100% rename from sample/commentdata/14.json rename to docs/sample/commentdata/14.json diff --git a/sample/commentdata/15.json b/docs/sample/commentdata/15.json similarity index 100% rename from sample/commentdata/15.json rename to docs/sample/commentdata/15.json diff --git a/sample/commentdata/16.json b/docs/sample/commentdata/16.json similarity index 100% rename from sample/commentdata/16.json rename to docs/sample/commentdata/16.json diff --git a/sample/commentdata/17.json b/docs/sample/commentdata/17.json similarity index 100% rename from sample/commentdata/17.json rename to docs/sample/commentdata/17.json diff --git a/sample/commentdata/18.json b/docs/sample/commentdata/18.json similarity index 100% rename from sample/commentdata/18.json rename to docs/sample/commentdata/18.json diff --git a/sample/commentdata/19.json b/docs/sample/commentdata/19.json similarity index 100% rename from sample/commentdata/19.json rename to docs/sample/commentdata/19.json diff --git a/sample/commentdata/2.json b/docs/sample/commentdata/2.json similarity index 100% rename from sample/commentdata/2.json rename to docs/sample/commentdata/2.json diff --git a/sample/commentdata/20.json b/docs/sample/commentdata/20.json similarity index 100% rename from sample/commentdata/20.json rename to docs/sample/commentdata/20.json diff --git a/sample/commentdata/3.json b/docs/sample/commentdata/3.json similarity index 100% rename from sample/commentdata/3.json rename to docs/sample/commentdata/3.json diff --git a/sample/commentdata/4.json b/docs/sample/commentdata/4.json similarity index 100% rename from sample/commentdata/4.json rename to docs/sample/commentdata/4.json diff --git a/sample/commentdata/5.json b/docs/sample/commentdata/5.json similarity index 100% rename from sample/commentdata/5.json rename to docs/sample/commentdata/5.json diff --git a/sample/commentdata/6.json b/docs/sample/commentdata/6.json similarity index 100% rename from sample/commentdata/6.json rename to docs/sample/commentdata/6.json diff --git a/sample/commentdata/7.json b/docs/sample/commentdata/7.json similarity index 100% rename from sample/commentdata/7.json rename to docs/sample/commentdata/7.json diff --git a/sample/commentdata/8.json b/docs/sample/commentdata/8.json similarity index 100% rename from sample/commentdata/8.json rename to docs/sample/commentdata/8.json diff --git a/sample/commentdata/9.json b/docs/sample/commentdata/9.json similarity index 100% rename from sample/commentdata/9.json rename to docs/sample/commentdata/9.json diff --git a/sample/sample.html b/docs/sample/index.html similarity index 98% rename from sample/sample.html rename to docs/sample/index.html index d9305059..fada385b 100755 --- a/sample/sample.html +++ b/docs/sample/index.html @@ -128,7 +128,7 @@ } - +