Skip to content

Commit a7721c4

Browse files
reorganize again
1 parent 8ff4438 commit a7721c4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
.PHONY: build clean
1+
.PHONY: build clean filenames
22

33
build: clean
44
./build.py
55
cp banner_image.js docs/banner_image.js
66

77
clean:
88
rm -rf docs/
9+
10+
filenames:
11+
python3 normalize_filenames.py

markdown/normalize_filenames.py renamed to normalize_filenames.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
import datetime
33
import html
44
import os
5-
import pprint
65
import string
76
import re
87

9-
os.chdir(os.path.dirname(os.path.abspath(__file__)))
8+
os.chdir("markdown/")
109

1110
files = glob.glob("*.md")
1211

@@ -18,7 +17,6 @@ def slugify(s: str):
1817
return re.sub(fr"[\s{re.escape(string.punctuation)}]+", "_",
1918
html.unescape(s).lower()).strip("_")
2019

21-
assert slugify("Hello, World!") == "hello_world"
2220

2321
for file in files:
2422
date = None

0 commit comments

Comments
 (0)