sphinx-book-theme option "repository_url" and "use_edit_page_button" bug with Gitlab button edit link
See original GitHub issue**After activate “use_repository_button”: True, “use_issues_button”: True, with gitlab all working well. Only “use_edit_page_button”: True, bug with Gitlab button edit link **
Sphinx html doc return bad link edit option : https://github.com/utilisateur/initiation_developpement_python_pour_administrateur/edit/master/docs/sources-documents/index.rst
The correct link is : http://gitlab.domaine-perso.fr/utilisateur/initiation_developpement_python_pour_administrateur/edit/master/docs/sources-documents/index.rst
Sphinx book theme don’t replace https://github.com with http://gitlab.domaine-perso.fr
**File theme configuration with conf.py from sphinx : … html_theme = ‘sphinx_book_theme’ html_theme_options = { “repository_url”: “http://gitlab.domaine-perso.fr/utilisateur/initiation_developpement_python_pour_administrateur”, “use_repository_button”: True, “use_issues_button”: True, “use_edit_page_button”: True, #“repository_branch”: “master”, “path_to_docs”: “docs/sources-documents”, “use_download_button”: True, “use_fullscreen_button”: True, “home_page_in_toc”: False, “toc_title”: “Titre panneau latéral droite”, “extra_navbar”: “
Mon HTML de navigation
”, } html_title = “Documentation développement python pour l’administrateur” html_logo = “images/logo.png” html_favicon = “images/favicon.png” **Steps to reproduce the behavior:
- Go to Gitlab (Github ?) icon.
- Scroll down to “suggested modification”
- Click on suggested modification
- See link error
Click return correct URL http://gitlab.domaine-perso.fr/utilisateur/initiation_developpement_python_pour_administrateur/edit/master/docs/sources-documents/index.rst and replace https://github.com with http://gitlab.domaine-perso.fr
Environment
- Python Version [3.9.4]:
- Package version of sphinx-book-theme 0.1.0`:
- Operating System: Kubuntu 21.04
Sphinx doc conf select to french langage
Gitlab is locally installed .
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:7
Seeing this as well, even with
in _config.yml
Probably an upstream bug: https://github.com/executablebooks/sphinx-book-theme/issues/418