File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 119
119
"site_path" , "/api/python" , "Path prefix in the _toc.yaml"
120
120
)
121
121
122
+ _CODE_URL_PREFIX = flags .DEFINE_string (
123
+ 'code_url_prefix ", " https :// github .com / google / generative - ai - python / blob / master / google / generativeai ",
124
+ "where to find the project code" )
122
125
123
126
class MyFilter :
124
127
def __init__ (self , base_dirs ):
@@ -183,7 +186,7 @@ def gen_api_docs():
183
186
pathlib .Path (google .generativeai .__file__ ).parent ,
184
187
pathlib .Path (google .ai .generativelanguage .__file__ ).parent .parent ,
185
188
),
186
- code_url_prefix = ('https://github.com/google/generative-ai-python/blob/master/google/generativeai' ,
189
+ code_url_prefix = (_CODE_URL_PREFIX . value ,
187
190
'https://github.com/googleapis/google-cloud-python/tree/main/packages/google-ai-generativelanguage/google/ai' ),
188
191
search_hints = _SEARCH_HINTS .value ,
189
192
site_path = _SITE_PATH .value ,
You can’t perform that action at this time.
0 commit comments