Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] add GitHub ID hyperlinks in estimator table #5916

Merged
merged 4 commits into from Feb 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 19 additions & 6 deletions docs/source/conf.py
Expand Up @@ -324,13 +324,26 @@ def _process_author_info(author_info):
Multiple author names will be separated by a comma,
with the final name always preceded by "&".
"""
if isinstance(author_info, list):
if len(author_info) > 1:
return ", ".join(author_info[:-1]) + " & " + author_info[-1]
else:
return author_info[0]
if isinstance(author_info, str) and author_info.lower() == "sktime developers":
link = (
'<a href="https://www.sktime.net/en/stable/about/team.html">'
"sktime developers</a>"
)
return link

if not isinstance(author_info, list):
author_info = [author_info]

def _add_link(github_id_str):
link = '<a href="https://www.github.com/{0}">{0}</a>'.format(github_id_str)
return link

author_info = [_add_link(author) for author in author_info]

if len(author_info) > 1:
return ", ".join(author_info[:-1]) + " & " + author_info[-1]
else:
return author_info
return author_info[0]

def _does_not_start_with_underscore(input_string):
return not input_string.startswith("_")
Expand Down