in update-toc.py [0:0]
def get_non_standard_hrefs(self, doc_repo_location):
excluded_href_paths = []
target = os.path.join(doc_repo_location, ".openpublishing.publish.config.json")
with open(target, "r") as f:
data = json.load(f)
for dependent_repo in data["dependent_repositories"]:
excluded_href_paths.append("~/{}".format(dependent_repo["path_to_root"]))
return excluded_href_paths