Przeglądaj źródła

Disable "Edit on GitHub" button on localized instances

Rémi Verschelde 6 lat temu
rodzic
commit
5c4340d30c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      conf.py

+ 1 - 1
conf.py

@@ -68,7 +68,7 @@ html_theme_options = {
 
 # VCS options: https://docs.readthedocs.io/en/latest/vcs.html#github
 html_context = {
-    "display_github": True, # Integrate GitHub
+    "display_github": !tags.has("i18n"), # Integrate GitHub
     "github_user": "godotengine", # Username
     "github_repo": "godot-docs", # Repo name
     "github_version": "master", # Version