From 90e29b33e6a7452266572339280013bb4e546666 Mon Sep 17 00:00:00 2001 From: Ren Wei Date: Fri, 10 Dec 2021 15:16:32 +0800 Subject: [PATCH] html_context to build html. enable EditOnGithub correct the conf_py_path code format --- docs/source/conf.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 5004914ab..3ade97229 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -100,4 +100,11 @@ imgmath_latex = 'latex' -html_show_sourcelink = False +html_context = { + 'display_github': True, + 'show_source': False, + 'github_user': 'PaddlePaddle', + 'github_repo': project, + 'github_version': 'develop', + 'conf_py_path': '/docs/source/', +}