builder-tools: fixed links for github

This commit is contained in:
Artem30801
2020-10-15 15:45:05 +03:00
parent 88b25b720a
commit a4db9e2528
3 changed files with 42 additions and 42 deletions

View File

@@ -96,7 +96,7 @@ class DocsGenerator:
relpath = os.path.sep.join(
os.path.relpath(module.__file__, output_path).split(os.path.sep)[1:]
)
docs = self.get_full_markdown(module, relpath)
docs = self.get_full_markdown(module, relpath.replace(os.path.sep, "/"))
with open(output_path, 'w') as f:
for line in docs:
f.write(line.replace("\n", os.linesep) + '\n')