diff --git a/site/docs/trackers/package-tree.html b/site/docs/trackers/package-tree.html
index 86e56ed..44672f4 100644
--- a/site/docs/trackers/package-tree.html
+++ b/site/docs/trackers/package-tree.html
@@ -59,9 +59,9 @@
diff --git a/site/docs/utils/package-summary.html b/site/docs/utils/package-summary.html
index 0a1ba52..9a0e612 100644
--- a/site/docs/utils/package-summary.html
+++ b/site/docs/utils/package-summary.html
@@ -68,19 +68,19 @@
-
+
This class is used to check the availability of the python environment and the eye-tracking device, and to get the eye tracker name and the available frequencies.
-
+
This class is used to detect the operating system.
-
+
This class is used to get the relative path of a file compared to the project path.
-
+
This class is used to write the XML document to the XML file.
diff --git a/site/docs/utils/package-tree.html b/site/docs/utils/package-tree.html
index 66f784b..2a47800 100644
--- a/site/docs/utils/package-tree.html
+++ b/site/docs/utils/package-tree.html
@@ -59,10 +59,10 @@
Class Hierarchy
diff --git a/site/rename.py b/site/rename.py
new file mode 100644
index 0000000..4c40ef5
--- /dev/null
+++ b/site/rename.py
@@ -0,0 +1,36 @@
+"""
+Rename all the `ClassName.html` to `classname.html` in the /docs folder.
+This is to make sure that the links in the JavaDoc is useful after the
+processing by Retype.
+"""
+import os
+
+
+def get_candidate_list(path):
+ candidate_list = []
+ for root, dirs, files in os.walk(path):
+ for file in files:
+ if file.endswith('.java'):
+ candidate_list.append(file.replace('.java', '.html'))
+ return candidate_list
+
+
+def rename_text(file_path, candidate_list):
+ with open(file_path, 'r') as f:
+ content = f.read()
+ for candidate in candidate_list:
+ content = content.replace(candidate, candidate.lower())
+ with open(file_path, 'w') as f:
+ f.write(content)
+
+
+if __name__ == '__main__':
+ path_java = '../src/main/java'
+ path_docs = './docs'
+ candidates = get_candidate_list(path_java)
+ for root, dirs, files in os.walk(path_docs):
+ for file in files:
+ if file.endswith('.html'):
+ rename_text(os.path.join(root, file), candidates)
+ if file in candidates:
+ os.rename(os.path.join(root, file), os.path.join(root, file.lower()))