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] Update docsite link #3232

Merged
merged 1 commit into from
Oct 20, 2021
Merged
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
13 changes: 3 additions & 10 deletions python/taichi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,10 @@ def __call__(self):
return getattr(self, args.command)(sys.argv[2:])

def _get_friend_links(self):
uri = 'en/stable'
try:
import locale # pylint: disable=C0415
if 'zh' in locale.getdefaultlocale()[0]:
uri = 'zh_CN/latest'
except:
pass
return '\n' \
f'Docs: https://taichi.rtfd.io/{uri}\n' \
f'GitHub: https://github.com/taichi-dev/taichi\n' \
f'Forum: https://forum.taichi.graphics\n'
'Docs: https://docs.taichi.graphics/\n' \
'GitHub: https://github.com/taichi-dev/taichi/\n' \
'Forum: https://forum.taichi.graphics/\n'

def _usage(self) -> str:
"""Compose deterministic usage message based on registered_commands."""
Expand Down