Skip to content

Commit 2864b70

Browse files
committed
Rename README to README.md. Turn out that GitHub doesn't render README as Markdown if .md extension is missing.
1 parent 9ad308d commit 2864b70

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pdf:
8383
pandoc -s -o README.assignment.pdf README.assignment.md
8484

8585
transform-eqn:
86-
python3 ${SCRIPTS_DIR}/eqn2imgurl.py README.raw.md -o README
86+
python3 ${SCRIPTS_DIR}/eqn2imgurl.py README.raw.md -o README.md
8787

8888
# TODO
8989
release:

README renamed to README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ The pre-commit hook script basically does two things:
5959

6060
1. Format staged C/C++ code
6161

62-
2. Transform LaTeX math equation in `README.raw.md` to image url in `README`
62+
2. Transform LaTeX math equation in `README.raw.md` to image url in `README.md`
6363

64-
Besides relying on the pre-commit hook script, you can manually format code and transform math equations in README
64+
Besides relying on the pre-commit hook script, you can manually format code and transform math equations in README.md
6565

6666
```bash
6767
make reformat

README.raw.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ The pre-commit hook script basically does two things:
5959

6060
1. Format staged C/C++ code
6161

62-
2. Transform LaTeX math equation in `README.raw.md` to image url in `README`
62+
2. Transform LaTeX math equation in `README.raw.md` to image url in `README.md`
6363

64-
Besides relying on the pre-commit hook script, you can manually format code and transform math equations in README
64+
Besides relying on the pre-commit hook script, you can manually format code and transform math equations in README.md
6565

6666
```bash
6767
make reformat

TODO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
- Improve CLI interface to be more user-friendly and intuitive.
7171
- Write README. Elaborate on algorithmic details. Elaborate on analysis of computational complexity.
7272
- Add git tag "submission milestone"
73-
- Customize commit hook: process README.raw.md to README with all latex equation transformed to images.
73+
- Customize commit hook: process README.raw.md to README.md with all latex equation transformed to images.
7474
- Add Travis CI pipeline. Automatically compile and test.
7575
- Create script to replace LaTeX math text with image url. For render in GitHub.
7676

scripts/pre-commit.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# This pre-commit hook script basically does two things:
44
# 1. Format staged C/C++ code
5-
# 2. Transform LaTeX math equation in README.raw.md to image url in README
5+
# 2. Transform LaTeX math equation in README.raw.md to image url in README.md
66

77
# TODO: search in google with query: "git status machine readable"
88

@@ -89,15 +89,15 @@ def main():
8989
except CalledProcessError:
9090
raise RuntimeError("Format staged C/C++ code failed!")
9191

92-
# 2. Transform LaTeX math equation in README.raw.md to image url in README
92+
# 2. Transform LaTeX math equation in README.raw.md to image url in README.md
9393
try:
9494
if "README.raw.md" in filepaths:
9595
subprocess.run(
96-
["python", "scripts/eqn2imgurl.py", "README.raw.md", "-o", "README"],
96+
["python", "scripts/eqn2imgurl.py", "README.raw.md", "-o", "README.md"],
9797
).check_returncode()
98-
subprocess.run(["git", "add", "README"]).check_returncode()
98+
subprocess.run(["git", "add", "README.md"]).check_returncode()
9999
except CalledProcessError:
100-
raise RuntimeError("Transform math equation to image url in README failed!")
100+
raise RuntimeError("Transform math equation to image url in README.md failed!")
101101

102102

103103
if __name__ == "__main__":

0 commit comments

Comments
 (0)