Skip to content

Commit

Permalink
[docs][ci skip] CDN の参照バージョンを 1.1.11 に変更する
Browse files Browse the repository at this point in the history
  • Loading branch information
akicho8 committed Jun 12, 2023
1 parent 9b577e9 commit e43718c
Show file tree
Hide file tree
Showing 46 changed files with 52 additions and 52 deletions.
2 changes: 1 addition & 1 deletion main_doc/docs/.vuepress/public/examples/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<script type="module">
document.querySelector("shogi-player-wc")
.shadowRoot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10/dist/lib/production/shogi-player.umd.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11/dist/lib/production/shogi-player.umd.min.js"></script>
<script type="module">
new Vue({el: "#app", components: { ShogiPlayer }})
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<script type="module">
const el = document.querySelector("shogi-player-wc")
el.addEventListener("ev_play_mode_move", e => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<script type="module">
import { LitElement, html } from "https://cdn.jsdelivr.net/gh/lit/dist@2/core/lit-core.min.js"
export class MyApp extends LitElement {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<script type="module">
import { LitElement, css, html } from "https://cdn.jsdelivr.net/gh/lit/dist@2/core/lit-core.min.js"
export class ShogiBoard extends LitElement {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<script defer src="https://cdn.jsdelivr.net/npm/react@18/umd/react.production.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/react-dom@18/umd/react-dom.production.min.js"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.34/browser.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<script type="text/babel">
class App extends React.Component {
constructor(props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<script defer src="https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@latest/dist/browser.script.iife.js"></script>
<script type="text/ruby">
require "js"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<script type="module">
import { render } from "https://cdn.skypack.dev/solid-js/web"
import html from "https://cdn.skypack.dev/solid-js/html"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<script type="module">
Vue.config.ignoredElements = ["shogi-player-wc"]
new Vue({el: "#app"})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<script defer src="https://cdn.jsdelivr.net/npm/vue@3"></script>
<script type="module">
const app = Vue.createApp({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<script type="module">
class ShogiBoard extends HTMLElement {
constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<script type="module">
class ShogiBoard extends HTMLElement {
constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<!-- <script defer src="../../dist/wc/production/shogi-player-wc.js"></script> -->
<script type="module">
import { LitElement, css, html } from "https://cdn.jsdelivr.net/gh/lit/dist@2/core/lit-core.min.js"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<style>
* {
box-sizing: border-box;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<!-- <script defer src="../../dist/wc/development/shogi-player-wc.min.js"></script> -->
<!-- <script defer src="../../dist/wc/production/shogi-player-wc.min.js"></script> -->
<style>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<!-- <script defer src="../../dist/wc/development/shogi-player-wc.min.js"></script> -->
<style>
* {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<!-- <script defer src="../../dist/wc/development/shogi-player-wc.min.js"></script> -->
<style>
* {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<!-- <script defer src="../../dist/wc/development/shogi-player-wc.min.js"></script> -->
<style>
* {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10/dist/wc/development/shogi-player-wc.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11/dist/wc/development/shogi-player-wc.min.js"></script>
<shogi-player-wc></shogi-player-wc>
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<shogi-player-wc sp_debug="true"></shogi-player-wc>
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<shogi-player-wc sp_dev_tools="true"></shogi-player-wc>
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<shogi-player-wc sp_event_log="true"></shogi-player-wc>
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<shogi-player-wc sp_layer="true"></shogi-player-wc>
2 changes: 1 addition & 1 deletion main_doc/docs/.vuepress/public/examples/event.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<script type="module">
const el = document.querySelector("shogi-player-wc")
el.addEventListener("ev_play_mode_move", e => {
Expand Down
2 changes: 1 addition & 1 deletion main_doc/docs/.vuepress/public/examples/fragment.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<shogi-player-wc></shogi-player-wc>
2 changes: 1 addition & 1 deletion main_doc/docs/.vuepress/public/examples/human_vs_ai.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<!-- <script defer src="../../dist/wc/production/shogi-player-wc.js"></script> -->
<script type="module">
import { LitElement, css, html } from "https://cdn.jsdelivr.net/gh/lit/dist@2/core/lit-core.min.js"
Expand Down
2 changes: 1 addition & 1 deletion main_doc/docs/.vuepress/public/examples/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<style>
.container {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
</head>
<body>
<shogi-player-wc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<style>
</style>
</head>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<shogi-player-wc></shogi-player-wc>
2 changes: 1 addition & 1 deletion main_doc/docs/.vuepress/public/examples/simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
</head>
<body>
<shogi-player-wc></shogi-player-wc>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<script type="module">
const el = document.querySelector("shogi-player-wc")
let turn = 1
Expand Down
2 changes: 1 addition & 1 deletion main_doc/docs/.vuepress/public/examples/sp_pass_style.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
</head>
<body>
<shogi-player-wc
Expand Down
2 changes: 1 addition & 1 deletion main_doc/docs/.vuepress/public/examples/style.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<style>
shogi-player-wc::part(root) {
--sp_board_color: LightSkyBlue;
Expand Down
2 changes: 1 addition & 1 deletion main_doc/docs/.vuepress/public/examples/test/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
</head>
<body>
<shogi-player-wc></shogi-player-wc>
Expand Down
2 changes: 1 addition & 1 deletion main_doc/docs/.vuepress/public/examples/test/comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script> -->
<!-- <script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script> -->
<script defer src="../../dist/wc/production/shogi-player-wc.js"></script>
<style>
.container {
Expand Down
2 changes: 1 addition & 1 deletion main_doc/docs/.vuepress/public/examples/test/hello.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module">
import "https://cdn.jsdelivr.net/npm/[email protected].10"
import "https://cdn.jsdelivr.net/npm/[email protected].11"
</script>
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module">
import "https://cdn.jsdelivr.net/npm/[email protected].10"
import "https://cdn.jsdelivr.net/npm/[email protected].11"
</script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion main_doc/docs/.vuepress/public/examples/test/wc_wrap.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
<script type="module">
class MyShogiPlayer extends HTMLElement {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion main_doc/docs/.vuepress/public/examples/view.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
</head>
<body>
<shogi-player-wc
Expand Down
2 changes: 1 addition & 1 deletion main_doc/docs/.vuepress/public/examples/view_kif.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].10"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].11"></script>
</head>
<body>
<shogi-player-wc
Expand Down
14 changes: 7 additions & 7 deletions main_doc/docs/guide/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,19 @@ CSS変数は普通に定義しても Shadow DOM 内には届かない

## CDN

* JSDelivr: https://cdn.jsdelivr.net/npm/[email protected].10
* UNPKG: https://unpkg.com/[email protected].10
* JSDelivr: https://cdn.jsdelivr.net/npm/[email protected].11
* UNPKG: https://unpkg.com/[email protected].11

どちらも production 版へのショートカットになっている

### CDNの正確なURL

* JSDelivr
* https://cdn.jsdelivr.net/npm/[email protected].10/dist/wc/production/shogi-player-wc.min.js
* https://cdn.jsdelivr.net/npm/[email protected].10/dist/wc/development/shogi-player-wc.min.js
* https://cdn.jsdelivr.net/npm/[email protected].11/dist/wc/production/shogi-player-wc.min.js
* https://cdn.jsdelivr.net/npm/[email protected].11/dist/wc/development/shogi-player-wc.min.js
* UNPKG
* https://unpkg.com/[email protected].10/dist/wc/production/shogi-player-wc.min.js
* https://unpkg.com/[email protected].10/dist/wc/development/shogi-player-wc.min.js
* https://unpkg.com/[email protected].11/dist/wc/production/shogi-player-wc.min.js
* https://unpkg.com/[email protected].11/dist/wc/development/shogi-player-wc.min.js

production と development 版の2つがあり development 版を使うときはフルパスで書く

Expand All @@ -110,7 +110,7 @@ production と development 版の2つがあり development 版を使うときは

本番では `@x.x.x` をつけてバージョンを固定した方がよい

* https://unpkg.com/[email protected].10
* https://unpkg.com/[email protected].11

最新バージョン → [![npm version](https://badge.fury.io/js/shogi-player.svg)](https://badge.fury.io/js/shogi-player)

Expand Down
2 changes: 1 addition & 1 deletion shogi-player-nuxt-sample/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shogi-player-vue2-sample-umd/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shogi-player-vue2-sample/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e43718c

Please sign in to comment.