Skip to content

Commit

Permalink
reorganize again
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoncoder047 committed Sep 9, 2024
1 parent 8ff4438 commit a7721c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
.PHONY: build clean
.PHONY: build clean filenames

build: clean
./build.py
cp banner_image.js docs/banner_image.js

clean:
rm -rf docs/

filenames:
python3 normalize_filenames.py
4 changes: 1 addition & 3 deletions markdown/normalize_filenames.py → normalize_filenames.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

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

assert slugify("Hello, World!") == "hello_world"

for file in files:
date = None
Expand Down

0 comments on commit a7721c4

Please sign in to comment.