Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def write_ranking_repo(file_name, method, repos):
for idx, repo in enumerate(repos):
repo_description = repo['description']
if repo_description is not None:
repo_description = repo_description.replace('|', '\|') # in case there is '|' in description
repo_description = repo_description.replace('|', '\\|') # in case there is '|' in description
f.write("| {} | [{}]({}) | {} | {} | {} | {} | {} | {} |\n".format(
idx + 1, repo['name'], repo['html_url'], repo['stargazers_count'], repo['forks_count'],
repo['language'], repo['open_issues_count'], repo_description, repo['pushed_at']
Expand Down
10 changes: 5 additions & 5 deletions source/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
"JavaScript", "Julia", "Kotlin", "Lua", "MATLAB", "Objective-C", "Perl", "PHP", "PowerShell", "Python", "R", "Ruby", "Rust", "Scala", "Shell",
"Swift", "TeX", "TypeScript", "Vim-script"]
# Escape characters in markdown like # + - etc
languages_md = ["ActionScript", "C", "C\#", "C\+\+", "Clojure", "CoffeeScript", "CSS", "Dart", "DM", "Elixir", "Go", "Groovy", "Haskell", "HTML", "Java",
"JavaScript", "Julia", "Kotlin", "Lua", "MATLAB", "Objective\-C", "Perl", "PHP", "PowerShell", "Python", "R", "Ruby", "Rust", "Scala", "Shell",
languages_md = ["ActionScript", "C", "C\\#", "C\\+\\+", "Clojure", "CoffeeScript", "CSS", "Dart", "DM", "Elixir", "Go", "Groovy", "Haskell", "HTML", "Java",
"JavaScript", "Julia", "Kotlin", "Lua", "MATLAB", "Objective\\-C", "Perl", "PHP", "PowerShell", "Python", "R", "Ruby", "Rust", "Scala", "Shell",
"Swift", "TeX", "TypeScript", "Vim script"]
table_of_contents = """
* [ActionScript](#actionscript)
* [C](#c)
* [C\#](#c-1)
* [C\+\+](#c-2)
* [C\\#](#c-1)
* [C\\+\\+](#c-2)
* [Clojure](#clojure)
* [CoffeeScript](#coffeescript)
* [CSS](#css)
Expand All @@ -37,7 +37,7 @@
* [Kotlin](#kotlin)
* [Lua](#lua)
* [MATLAB](#matlab)
* [Objective\-C](#objective-c)
* [Objective\\-C](#objective-c)
* [Perl](#perl)
* [PHP](#php)
* [PowerShell](#powershell)
Expand Down