Another attempt at fixing doc gen
@@ -112,7 +112,8 @@ class Section(object):
value = import_object(self.doc.sections[0].identifier)
filename = inspect.getsourcefile(value).split("/client/")[-1]
#TODO: this breaks without the HEAD/client replace on master in github actions?
- branch = os.popen("git rev-parse --abbrev-ref HEAD").read().strip().replace("HEAD/client", "master")
+ branch = os.popen("git rev-parse --abbrev-ref HEAD").read().strip().replace("HEAD/client",
+ "master").replace("HEAD", "master")
self.link = "https://github.com/wandb/client/blob/{}/{}#L{}".format(branch, filename, lineno)
except TypeError as e:
pass
