File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 181
181
}
182
182
183
183
hw_dir = pathlib .Path (__file__ ).resolve ().parents [0 ]
184
- if "GITHUB_BASE_REF" in os .environ :
185
- branch_name = os .environ ["GITHUB_BASE_REF" ]
184
+ if "GITHUB_SHA" in os .environ :
185
+ commit_sha = os .environ ["GITHUB_SHA" ]
186
+ project_url = (
187
+ f"https://github.com/logicalclocks/feature-store-api/tree/{ commit_sha } /python"
188
+ )
186
189
else :
187
- branch_name = "master"
190
+ branch_name = os .environ .get ("GITHUB_BASE_REF" , "master" )
191
+ project_url = (
192
+ f"https://github.com/logicalclocks/feature-store-api/blob/{ branch_name } /python"
193
+ )
188
194
189
195
190
196
def generate (dest_dir ):
191
197
doc_generator = keras_autodoc .DocumentationGenerator (
192
198
PAGES ,
193
- project_url = f"https://github.com/logicalclocks/hopsworks-api/blob/ { branch_name } /python" ,
199
+ project_url = project_url ,
194
200
template_dir = "./docs/templates" ,
195
201
titles_size = "###" ,
196
202
extra_aliases = {},
You can’t perform that action at this time.
0 commit comments