Skip to content

Commit 58247f3

Browse files
committed
Show source text on GitLab projects
1 parent 56874cb commit 58247f3

File tree

1 file changed

+1
-1
lines changed
  • src/sphinx_book_theme/header_buttons

1 file changed

+1
-1
lines changed

src/sphinx_book_theme/header_buttons/source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def add_source_buttons(app, pagename, templatename, context, doctree):
5555
# Use plain=1 to ensure the source text is shown, not rendered
5656
source_url = edit_url.replace("/edit/", "/blob/") + "?plain=1"
5757
elif provider.lower() == "gitlab":
58-
source_url = edit_url.replace("/edit/", "/blob/")
58+
source_url = edit_url.replace("/edit/", "/blob/") + "?plain=1"
5959
elif provider.lower() == "bitbucket":
6060
source_url = edit_url.replace("?mode=edit", "")
6161

0 commit comments

Comments
 (0)