We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ff4438 commit a7721c4Copy full SHA for a7721c4
Makefile
@@ -1,8 +1,11 @@
1
-.PHONY: build clean
+.PHONY: build clean filenames
2
3
build: clean
4
./build.py
5
cp banner_image.js docs/banner_image.js
6
7
clean:
8
rm -rf docs/
9
+
10
+filenames:
11
+ python3 normalize_filenames.py
markdown/normalize_filenames.py renamed to normalize_filenames.py
@@ -2,11 +2,10 @@
import datetime
import html
import os
-import pprint
import string
import re
-os.chdir(os.path.dirname(os.path.abspath(__file__)))
+os.chdir("markdown/")
files = glob.glob("*.md")
12
@@ -18,7 +17,6 @@ def slugify(s: str):
18
17
return re.sub(fr"[\s{re.escape(string.punctuation)}]+", "_",
19
html.unescape(s).lower()).strip("_")
20
21
-assert slugify("Hello, World!") == "hello_world"
22
23
for file in files:
24
date = None
0 commit comments