Skip to content

Commit 813fc58

Browse files
committed
common の docs を移動
0 parents  commit 813fc58

22 files changed

+1409
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_site

CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs.hackforplay.xyz

Gemfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
6+
7+
# gem "rails"
8+
gem "rake"
9+
gem "jekyll", ">= 3.3"
10+
gem "github-pages", group: :jekyll_plugins
11+
gem 'html-proofer'

Gemfile.lock

+265
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,265 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
activesupport (6.0.2.1)
5+
concurrent-ruby (~> 1.0, >= 1.0.2)
6+
i18n (>= 0.7, < 2)
7+
minitest (~> 5.1)
8+
tzinfo (~> 1.1)
9+
zeitwerk (~> 2.2)
10+
addressable (2.7.0)
11+
public_suffix (>= 2.0.2, < 5.0)
12+
coffee-script (2.4.1)
13+
coffee-script-source
14+
execjs
15+
coffee-script-source (1.11.1)
16+
colorator (1.1.0)
17+
commonmarker (0.17.13)
18+
ruby-enum (~> 0.5)
19+
concurrent-ruby (1.1.6)
20+
dnsruby (1.61.3)
21+
addressable (~> 2.5)
22+
em-websocket (0.5.1)
23+
eventmachine (>= 0.12.9)
24+
http_parser.rb (~> 0.6.0)
25+
ethon (0.12.0)
26+
ffi (>= 1.3.0)
27+
eventmachine (1.2.7)
28+
execjs (2.7.0)
29+
faraday (1.0.0)
30+
multipart-post (>= 1.2, < 3)
31+
ffi (1.12.2)
32+
forwardable-extended (2.6.0)
33+
gemoji (3.0.1)
34+
github-pages (204)
35+
github-pages-health-check (= 1.16.1)
36+
jekyll (= 3.8.5)
37+
jekyll-avatar (= 0.7.0)
38+
jekyll-coffeescript (= 1.1.1)
39+
jekyll-commonmark-ghpages (= 0.1.6)
40+
jekyll-default-layout (= 0.1.4)
41+
jekyll-feed (= 0.13.0)
42+
jekyll-gist (= 1.5.0)
43+
jekyll-github-metadata (= 2.13.0)
44+
jekyll-mentions (= 1.5.1)
45+
jekyll-optional-front-matter (= 0.3.2)
46+
jekyll-paginate (= 1.1.0)
47+
jekyll-readme-index (= 0.3.0)
48+
jekyll-redirect-from (= 0.15.0)
49+
jekyll-relative-links (= 0.6.1)
50+
jekyll-remote-theme (= 0.4.1)
51+
jekyll-sass-converter (= 1.5.2)
52+
jekyll-seo-tag (= 2.6.1)
53+
jekyll-sitemap (= 1.4.0)
54+
jekyll-swiss (= 1.0.0)
55+
jekyll-theme-architect (= 0.1.1)
56+
jekyll-theme-cayman (= 0.1.1)
57+
jekyll-theme-dinky (= 0.1.1)
58+
jekyll-theme-hacker (= 0.1.1)
59+
jekyll-theme-leap-day (= 0.1.1)
60+
jekyll-theme-merlot (= 0.1.1)
61+
jekyll-theme-midnight (= 0.1.1)
62+
jekyll-theme-minimal (= 0.1.1)
63+
jekyll-theme-modernist (= 0.1.1)
64+
jekyll-theme-primer (= 0.5.4)
65+
jekyll-theme-slate (= 0.1.1)
66+
jekyll-theme-tactile (= 0.1.1)
67+
jekyll-theme-time-machine (= 0.1.1)
68+
jekyll-titles-from-headings (= 0.5.3)
69+
jemoji (= 0.11.1)
70+
kramdown (= 1.17.0)
71+
liquid (= 4.0.3)
72+
mercenary (~> 0.3)
73+
minima (= 2.5.1)
74+
nokogiri (>= 1.10.4, < 2.0)
75+
rouge (= 3.13.0)
76+
terminal-table (~> 1.4)
77+
github-pages-health-check (1.16.1)
78+
addressable (~> 2.3)
79+
dnsruby (~> 1.60)
80+
octokit (~> 4.0)
81+
public_suffix (~> 3.0)
82+
typhoeus (~> 1.3)
83+
html-pipeline (2.12.3)
84+
activesupport (>= 2)
85+
nokogiri (>= 1.4)
86+
html-proofer (3.15.1)
87+
addressable (~> 2.3)
88+
mercenary (~> 0.3)
89+
nokogumbo (~> 2.0)
90+
parallel (~> 1.3)
91+
rainbow (~> 3.0)
92+
typhoeus (~> 1.3)
93+
yell (~> 2.0)
94+
http_parser.rb (0.6.0)
95+
i18n (0.9.5)
96+
concurrent-ruby (~> 1.0)
97+
jekyll (3.8.5)
98+
addressable (~> 2.4)
99+
colorator (~> 1.0)
100+
em-websocket (~> 0.5)
101+
i18n (~> 0.7)
102+
jekyll-sass-converter (~> 1.0)
103+
jekyll-watch (~> 2.0)
104+
kramdown (~> 1.14)
105+
liquid (~> 4.0)
106+
mercenary (~> 0.3.3)
107+
pathutil (~> 0.9)
108+
rouge (>= 1.7, < 4)
109+
safe_yaml (~> 1.0)
110+
jekyll-avatar (0.7.0)
111+
jekyll (>= 3.0, < 5.0)
112+
jekyll-coffeescript (1.1.1)
113+
coffee-script (~> 2.2)
114+
coffee-script-source (~> 1.11.1)
115+
jekyll-commonmark (1.3.1)
116+
commonmarker (~> 0.14)
117+
jekyll (>= 3.7, < 5.0)
118+
jekyll-commonmark-ghpages (0.1.6)
119+
commonmarker (~> 0.17.6)
120+
jekyll-commonmark (~> 1.2)
121+
rouge (>= 2.0, < 4.0)
122+
jekyll-default-layout (0.1.4)
123+
jekyll (~> 3.0)
124+
jekyll-feed (0.13.0)
125+
jekyll (>= 3.7, < 5.0)
126+
jekyll-gist (1.5.0)
127+
octokit (~> 4.2)
128+
jekyll-github-metadata (2.13.0)
129+
jekyll (>= 3.4, < 5.0)
130+
octokit (~> 4.0, != 4.4.0)
131+
jekyll-mentions (1.5.1)
132+
html-pipeline (~> 2.3)
133+
jekyll (>= 3.7, < 5.0)
134+
jekyll-optional-front-matter (0.3.2)
135+
jekyll (>= 3.0, < 5.0)
136+
jekyll-paginate (1.1.0)
137+
jekyll-readme-index (0.3.0)
138+
jekyll (>= 3.0, < 5.0)
139+
jekyll-redirect-from (0.15.0)
140+
jekyll (>= 3.3, < 5.0)
141+
jekyll-relative-links (0.6.1)
142+
jekyll (>= 3.3, < 5.0)
143+
jekyll-remote-theme (0.4.1)
144+
addressable (~> 2.0)
145+
jekyll (>= 3.5, < 5.0)
146+
rubyzip (>= 1.3.0)
147+
jekyll-sass-converter (1.5.2)
148+
sass (~> 3.4)
149+
jekyll-seo-tag (2.6.1)
150+
jekyll (>= 3.3, < 5.0)
151+
jekyll-sitemap (1.4.0)
152+
jekyll (>= 3.7, < 5.0)
153+
jekyll-swiss (1.0.0)
154+
jekyll-theme-architect (0.1.1)
155+
jekyll (~> 3.5)
156+
jekyll-seo-tag (~> 2.0)
157+
jekyll-theme-cayman (0.1.1)
158+
jekyll (~> 3.5)
159+
jekyll-seo-tag (~> 2.0)
160+
jekyll-theme-dinky (0.1.1)
161+
jekyll (~> 3.5)
162+
jekyll-seo-tag (~> 2.0)
163+
jekyll-theme-hacker (0.1.1)
164+
jekyll (~> 3.5)
165+
jekyll-seo-tag (~> 2.0)
166+
jekyll-theme-leap-day (0.1.1)
167+
jekyll (~> 3.5)
168+
jekyll-seo-tag (~> 2.0)
169+
jekyll-theme-merlot (0.1.1)
170+
jekyll (~> 3.5)
171+
jekyll-seo-tag (~> 2.0)
172+
jekyll-theme-midnight (0.1.1)
173+
jekyll (~> 3.5)
174+
jekyll-seo-tag (~> 2.0)
175+
jekyll-theme-minimal (0.1.1)
176+
jekyll (~> 3.5)
177+
jekyll-seo-tag (~> 2.0)
178+
jekyll-theme-modernist (0.1.1)
179+
jekyll (~> 3.5)
180+
jekyll-seo-tag (~> 2.0)
181+
jekyll-theme-primer (0.5.4)
182+
jekyll (> 3.5, < 5.0)
183+
jekyll-github-metadata (~> 2.9)
184+
jekyll-seo-tag (~> 2.0)
185+
jekyll-theme-slate (0.1.1)
186+
jekyll (~> 3.5)
187+
jekyll-seo-tag (~> 2.0)
188+
jekyll-theme-tactile (0.1.1)
189+
jekyll (~> 3.5)
190+
jekyll-seo-tag (~> 2.0)
191+
jekyll-theme-time-machine (0.1.1)
192+
jekyll (~> 3.5)
193+
jekyll-seo-tag (~> 2.0)
194+
jekyll-titles-from-headings (0.5.3)
195+
jekyll (>= 3.3, < 5.0)
196+
jekyll-watch (2.2.1)
197+
listen (~> 3.0)
198+
jemoji (0.11.1)
199+
gemoji (~> 3.0)
200+
html-pipeline (~> 2.2)
201+
jekyll (>= 3.0, < 5.0)
202+
kramdown (1.17.0)
203+
liquid (4.0.3)
204+
listen (3.2.1)
205+
rb-fsevent (~> 0.10, >= 0.10.3)
206+
rb-inotify (~> 0.9, >= 0.9.10)
207+
mercenary (0.3.6)
208+
mini_portile2 (2.4.0)
209+
minima (2.5.1)
210+
jekyll (>= 3.5, < 5.0)
211+
jekyll-feed (~> 0.9)
212+
jekyll-seo-tag (~> 2.1)
213+
minitest (5.14.0)
214+
multipart-post (2.1.1)
215+
nokogiri (1.10.8)
216+
mini_portile2 (~> 2.4.0)
217+
nokogumbo (2.0.2)
218+
nokogiri (~> 1.8, >= 1.8.4)
219+
octokit (4.16.0)
220+
faraday (>= 0.9)
221+
sawyer (~> 0.8.0, >= 0.5.3)
222+
parallel (1.19.1)
223+
pathutil (0.16.2)
224+
forwardable-extended (~> 2.6)
225+
public_suffix (3.1.1)
226+
rainbow (3.0.0)
227+
rake (13.0.1)
228+
rb-fsevent (0.10.3)
229+
rb-inotify (0.10.1)
230+
ffi (~> 1.0)
231+
rouge (3.13.0)
232+
ruby-enum (0.7.2)
233+
i18n
234+
rubyzip (2.2.0)
235+
safe_yaml (1.0.5)
236+
sass (3.7.4)
237+
sass-listen (~> 4.0.0)
238+
sass-listen (4.0.0)
239+
rb-fsevent (~> 0.9, >= 0.9.4)
240+
rb-inotify (~> 0.9, >= 0.9.7)
241+
sawyer (0.8.2)
242+
addressable (>= 2.3.5)
243+
faraday (> 0.8, < 2.0)
244+
terminal-table (1.8.0)
245+
unicode-display_width (~> 1.1, >= 1.1.1)
246+
thread_safe (0.3.6)
247+
typhoeus (1.3.1)
248+
ethon (>= 0.9.0)
249+
tzinfo (1.2.6)
250+
thread_safe (~> 0.1)
251+
unicode-display_width (1.6.1)
252+
yell (2.2.2)
253+
zeitwerk (2.2.2)
254+
255+
PLATFORMS
256+
ruby
257+
258+
DEPENDENCIES
259+
github-pages
260+
html-proofer
261+
jekyll (>= 3.3)
262+
rake
263+
264+
BUNDLED WITH
265+
2.1.2

Rakefile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
require 'html-proofer'
2+
3+
task :test do
4+
sh "bundle exec jekyll build"
5+
options = {
6+
:assume_extension => true,
7+
:disable_external => true,
8+
}
9+
HTMLProofer.check_directory("./_site", options).run
10+
end
11+
12+
task :serve do
13+
sh "bundle exec jekyll serve"
14+
end

_config.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
theme: jekyll-theme-cayman
2+
title: HackforPlayDocs
3+
lang: ja
4+
google_analytics: UA-113487422-4

_data/reference/ja/enum.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Direction:
2+
name: むき
3+
type: enum
4+
desc: |
5+
むきを表す
6+
code: |
7+
this.むきをかえる(むき.うえ); // うえを向く
8+
this.むきをかえる(むき.みぎ); // みぎを向く
9+
this.むきをかえる(むき.した); // したを向く
10+
this.むきをかえる(むき.ひだり); // ひだりを向く
11+
this.むきをかえる(むき.みぎて); // 自分から見てみぎを向く
12+
this.むきをかえる(むき.ひだりて); // 自分から見てひだりを向く
13+
this.むきをかえる(むき.うしろ); // 自分から見てうしろを向く
14+
this.むきをかえる(むき.ランダム); // 上下左右いずれかの方を向く
15+
16+
Family:
17+
name: なかま
18+
type: enum
19+
desc: |
20+
なかま関係を表す
21+
code: |
22+
this.なかま = なかま.ドクリツ; // 誰とも仲間でない
23+
this.なかま = なかま.プレイヤー; // プレイヤーの仲間
24+
this.なかま = なかま.モンスター; // モンスターの仲間
25+
this.なかま = なかま.マップ; // マップの仲間
26+
this.なかま = なかま.プレイヤー2; // プレイヤー2の仲間

_data/reference/ja/global.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
create:
2+
name: つくる
3+
type: function
4+
desc: |
5+
あたらしくキャラクターをつくる
6+
いずれかのキャラクターを[おや](rpgobject#おや)にしたい場合は[しょうかんする](rpgobject#しょうかんする)を使う
7+
code: |
8+
つくる('プレイヤー', 7, 5, 'map1', Dir.した);
9+
args:
10+
- name: なまえ
11+
type: string
12+
desc: つくりたいキャラクターのなまえ
13+
- name: ひだりから
14+
type: number
15+
desc: マップ上のひだりから何マス目に出てくるか
16+
- name: うえから
17+
type: number
18+
desc: マップ上のうえから何マス目に出てくるか
19+
- name: マップ名
20+
type: string
21+
desc: どのマップに出てくるか
22+
- name: むき
23+
type: number
24+
desc: キャラクターがどの[むき](rpgobject#むき)で出てくるか
25+
26+
log:
27+
name: みる
28+
type: function
29+
desc: |
30+
へんすうの中身を見るための便利な関数
31+
ゲーム画面の下のところに変数の中身が出てくる
32+
code: |
33+
みる(this.たいりょく); // キャラクターの今のたいりょくを見る
34+
args:
35+
- name: へんすう
36+
type: any
37+
desc: 中身を見たい変数
38+
39+
random:
40+
name: らんすう
41+
type: function
42+
desc: |
43+
サイコロをふるように、ランダムに数字をひとつ決めます
44+
code: すうじ = らんすう(1, 7); // 1〜6までの間の乱数を「すうじ」に入れる
45+
args:
46+
- name: はじめ
47+
type: number
48+
desc: サイコロのもっとも小さな数字
49+
- name: おわり
50+
type: number
51+
desc: サイコロのもっとも大きな数字よりも1大きい数字

0 commit comments

Comments
 (0)