Skip to content

Commit 2ce0e5e

Browse files
authored
Update conf.py
This fixes the "Edit on GitHub" button on each page. Since rst files are generally stored in the content/ subfolder, we get the repo name by going one level above that.
1 parent 3f71c19 commit 2ce0e5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"github_user": github_user,
9090
# Auto-detect directory name. This can break, but
9191
# useful as a default.
92-
"github_repo": github_repo_name or basename(dirname(realpath(__file__))),
92+
"github_repo": github_repo_name or basename(dirname(dirname(realpath(__file__)))),
9393
"github_version": github_version,
9494
"conf_py_path": conf_py_path,
9595
}

0 commit comments

Comments
 (0)