Skip to content

Commit a68a02a

Browse files
committed
deploy: 7f79e44
1 parent b22fd19 commit a68a02a

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

feed.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="https://dojocon2025.coderdojo.jp/feed.xml" rel="self" type="application/atom+xml" /><link href="https://dojocon2025.coderdojo.jp/" rel="alternate" type="text/html" /><updated>2025-08-28T01:44:56+09:00</updated><id>https://dojocon2025.coderdojo.jp/feed.xml</id><title type="html">DojoCon Japan</title><subtitle>DojoCon Japan は CoderDojo コミュニティのカンファレンスイベントです。CoderDojo 関係者を対象に運営ノウハウの共有や関係者同士の交流などを目的として毎年開催されています。</subtitle></feed>
1+
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="https://dojocon2025.coderdojo.jp/feed.xml" rel="self" type="application/atom+xml" /><link href="https://dojocon2025.coderdojo.jp/" rel="alternate" type="text/html" /><updated>2025-08-28T02:11:53+09:00</updated><id>https://dojocon2025.coderdojo.jp/feed.xml</id><title type="html">DojoCon Japan</title><subtitle>DojoCon Japan は CoderDojo コミュニティのカンファレンスイベントです。CoderDojo 関係者を対象に運営ノウハウの共有や関係者同士の交流などを目的として毎年開催されています。</subtitle></feed>

test-directory-structure.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/usr/bin/python
2+
from pathlib import Path
3+
4+
"""
5+
すべてのページが index.html として生成されているか検査するスクリプト
6+
7+
foobar/baz/index.html
8+
-> /foobar/baz/ と /foobar/baz の双方がルーティングできる
9+
10+
foobar/baz.html
11+
-> /foobar/baz/ がルーティングできない
12+
"""
13+
14+
15+
def main() -> int:
16+
allowed_names = ["index.html", "404.html"]
17+
errors = list[str]()
18+
19+
for cwd, _dirs, files in Path("_site").walk():
20+
for file in files:
21+
if not file.endswith(".html"):
22+
continue
23+
24+
if file in allowed_names:
25+
continue
26+
27+
path = cwd.joinpath(file).as_posix()
28+
errors.append(path)
29+
30+
if 0 < len(errors):
31+
print("index.html でない HTML ファイルが生成されました:")
32+
for i in errors:
33+
print(f"- {i}")
34+
return 1
35+
36+
return 0
37+
38+
39+
if __name__ == "__main__":
40+
import sys
41+
42+
sys.exit(main())

0 commit comments

Comments
 (0)