Skip to content

Commit 3e656b4

Browse files
committed
DOC: added button to edit on GitHub
fixes #39859
1 parent 4f952b7 commit 3e656b4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@
270270
"icon": "fa-brands fa-mastodon",
271271
},
272272
],
273+
"secondary_sidebar_items": ["page-toc", "sourcelink", "edit-this-page"],
274+
"use_edit_page_button": True
273275
}
274276

275277
# Add any paths that contain custom themes here, relative to this directory.
@@ -393,6 +395,10 @@
393395
html_context = {
394396
"redirects": dict(moved_api_pages),
395397
"header": header,
398+
"github_user": "pandas-dev",
399+
"github_repo": "pandas",
400+
"github_version": "main",
401+
"doc_path": "doc/source",
396402
}
397403

398404
# If false, no module index is generated.

0 commit comments

Comments
 (0)