Skip to content

Commit 54e93a2

Browse files
committed
Fix for tldr pages switching from master to main
See Moddus#7 for more details.
1 parent 05b1eb7 commit 54e93a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

generator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
</body>
1616
</html>"""
1717

18-
online_url = "https://github.com/tldr-pages/tldr/blob/master/pages"
19-
doc_source = "https://github.com/tldr-pages/tldr/archive/master.zip"
18+
online_url = "https://github.com/tldr-pages/tldr/blob/main/pages"
19+
doc_source = "https://github.com/tldr-pages/tldr/archive/refs/heads/main.zip"
2020
docset_path = "tldrpages.docset"
2121
doc_path_contents = docset_path + "/Contents/"
2222
doc_path_resources = docset_path + "/Contents/Resources/"
2323
doc_path = docset_path + "/Contents/Resources/Documents/"
24-
doc_pref = "tldr-master/pages/"
24+
doc_pref = "tldr-main/pages/"
2525

2626
if os.path.exists(doc_path):
2727
try: shutil.rmtree(doc_path)

0 commit comments

Comments
 (0)