We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6d9db98 + a5bd148 commit eb0f9bfCopy full SHA for eb0f9bf
tools/tensorflow_docs/api_generator/parser.py
@@ -685,7 +685,7 @@ class FileLocation(object):
685
@property
686
def url(self) -> Optional[str]:
687
if self.start_line and self.end_line:
688
- if 'github.com' in self.base_url:
+ if self.base_url and self.base_url.startswith('https://github.com/'):
689
return f'{self.base_url}#L{self.start_line}-L{self.end_line}'
690
return self.base_url
691
0 commit comments