-
Notifications
You must be signed in to change notification settings - Fork 673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sphinx-book-theme option "repository_url" and "use_edit_page_button" bug with Gitlab button edit link #1310
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Seeing this as well, even with
in _config.yml |
With
and
The |
@NikosAlexandris for me on jupyter-book
|
Indeed, same behavior here. |
Experiencing the same issue. Has any of the developers any hint, where to dig into to solve this? I would like to help, but no time to dive deep into this repo atm. At least it doesn't seem to be a simple hardcoded issue ':) |
Probably an upstream bug: executablebooks/sphinx-book-theme#418 |
**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:
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
Sphinx doc conf select to french langage
Gitlab is locally installed .
The text was updated successfully, but these errors were encountered: