From 96c518b5c79f1451db3e1524bd5db85214c3d30c Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 18 Feb 2025 22:21:35 +0100 Subject: [PATCH 1/4] Update conf.py --- docs/sphinx/source/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/sphinx/source/conf.py b/docs/sphinx/source/conf.py index 61c2f63c8..29bbdea33 100644 --- a/docs/sphinx/source/conf.py +++ b/docs/sphinx/source/conf.py @@ -71,7 +71,7 @@ # General information about the project. project = u'SofaPython3' -copyright = u'2023, SOFA Framework' +copyright = u'2025, SOFA Framework' author = u'consortium@sofa-framework.org' stream = os.popen("git rev-parse --abbrev-ref HEAD") @@ -124,6 +124,7 @@ def custom_underline_filter(text, char): 'display_version': True, 'prev_next_buttons_location': 'bottom', 'style_external_links': False, + 'github_url':True, # Toc options 'collapse_navigation': False, From 8b28cd5db04a80e5fa913f65ed48e6815f7c1ca6 Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 18 Feb 2025 23:24:42 +0100 Subject: [PATCH 2/4] Apply suggestions from code review --- docs/sphinx/source/conf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/sphinx/source/conf.py b/docs/sphinx/source/conf.py index 29bbdea33..d0798f8c7 100644 --- a/docs/sphinx/source/conf.py +++ b/docs/sphinx/source/conf.py @@ -71,7 +71,7 @@ # General information about the project. project = u'SofaPython3' -copyright = u'2025, SOFA Framework' +copyright = '%Y, SOFA Framework' author = u'consortium@sofa-framework.org' stream = os.popen("git rev-parse --abbrev-ref HEAD") @@ -124,7 +124,6 @@ def custom_underline_filter(text, char): 'display_version': True, 'prev_next_buttons_location': 'bottom', 'style_external_links': False, - 'github_url':True, # Toc options 'collapse_navigation': False, From 1ebc7b02be77adffb6e490178721a5dda037a722 Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 18 Feb 2025 23:53:36 +0100 Subject: [PATCH 3/4] Update conf.py --- docs/sphinx/source/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/sphinx/source/conf.py b/docs/sphinx/source/conf.py index d0798f8c7..a1a552899 100644 --- a/docs/sphinx/source/conf.py +++ b/docs/sphinx/source/conf.py @@ -84,6 +84,10 @@ def custom_underline_filter(text, char): html_context = { 'current_version': version, 'underline_filter': custom_underline_filter, + 'display_github': True, + 'github_user': 'sofa-framework', + 'github_repo': 'SofaPython3', + 'github_version': 'tree/master/docs', } # The language for content autogenerated by Sphinx. Refer to documentation From 247797db5531d80f1cd59cb621b194f9a74ee83c Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 18 Feb 2025 23:59:07 +0100 Subject: [PATCH 4/4] Apply suggestions from code review --- docs/sphinx/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sphinx/source/conf.py b/docs/sphinx/source/conf.py index a1a552899..33991fa68 100644 --- a/docs/sphinx/source/conf.py +++ b/docs/sphinx/source/conf.py @@ -87,7 +87,7 @@ def custom_underline_filter(text, char): 'display_github': True, 'github_user': 'sofa-framework', 'github_repo': 'SofaPython3', - 'github_version': 'tree/master/docs', + 'github_version': 'master/docs/sphinx/source', } # The language for content autogenerated by Sphinx. Refer to documentation