Skip to content

Commit 32030df

Browse files
HnasarHashem Nasarat
and
Hashem Nasarat
authored
docs: Fix edit page link to python files for reference pages
We need to provide a relative path to go up out of the docs dir. See mkdocstrings/mkdocstrings#443. Co-authored-by: Hashem Nasarat <[email protected]>
1 parent 29edd02 commit 32030df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/gen_ref_nav.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
ident = ".".join(parts)
2727
fd.write(f"::: {ident}")
2828

29-
mkdocs_gen_files.set_edit_path(full_doc_path, path)
29+
mkdocs_gen_files.set_edit_path(full_doc_path, ".." / path)
3030

3131
with mkdocs_gen_files.open("reference/SUMMARY.md", "w") as nav_file:
3232
nav_file.writelines(nav.build_literate_nav())

0 commit comments

Comments
 (0)