Sfoglia il codice sorgente

Make "Edit on GitHub" always point to master branch

Fixes #1138.
Rémi Verschelde 7 anni fa
parent
commit
24f61b3648
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9 0
      conf.py

+ 9 - 0
conf.py

@@ -66,6 +66,15 @@ html_theme_options = {
     # 'navigation_depth': 4,  # Depth of the headers shown in the navigation bar
 }
 
+# VCS options: https://docs.readthedocs.io/en/latest/vcs.html#github
+html_context = {
+    "display_github": True, # Integrate GitHub
+    "github_user": "godotengine", # Username
+    "github_repo": "godot-docs", # Repo name
+    "github_version": "master", # Version
+    "conf_py_path": "/", # Path in the checkout to the docs root
+}
+
 html_logo = 'img/docs_logo.png'
 
 # Output file base name for HTML help builder