Skip to content

Commit

Permalink
[doc] Update docsite link (#3232)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanming-hu authored Oct 20, 2021
1 parent 2b68ffb commit cdaabc1
Showing 1 changed file with 3 additions and 10 deletions.
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

0 comments on commit cdaabc1

Please sign in to comment.