aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-11-21 20:06:17 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-11-21 20:33:28 +0100
commitffb47d7dd27fc90860215c729a34b9ebe072ea90 (patch)
tree084d8d3ed398145400c6112ac7859e6973c57c26
parent28f4f9f59ea040ad5fe941498cb0dac39c28f323 (diff)
downloadPROJ-ffb47d7dd27fc90860215c729a34b9ebe072ea90.tar.gz
PROJ-ffb47d7dd27fc90860215c729a34b9ebe072ea90.zip
Doc: configure the 'Edit on GitHub' button
-rw-r--r--HOWTO-RELEASE3
-rw-r--r--docs/source/conf.py6
2 files changed, 9 insertions, 0 deletions
diff --git a/HOWTO-RELEASE b/HOWTO-RELEASE
index 865dbcf2..0911486e 100644
--- a/HOWTO-RELEASE
+++ b/HOWTO-RELEASE
@@ -243,3 +243,6 @@ If the previous active version was, let's say, 6.1 and the new version is, let's
then checkout 6.1 branch, and in travis/after_success.sh, remove the code
that causes commits to 6.1 to cause a website refresh, that is remove the
code under `if test "$TRAVIS_SECURE_ENV_VARS" = "true" -a "$TRAVIS_BRANCH" = "6.1"; then`.
+
+Also edit docs/source/conf.py to change the active branch for documentation
+in the `github_version` variable.
diff --git a/docs/source/conf.py b/docs/source/conf.py
index cd004777..914d8bba 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -171,6 +171,12 @@ html_logo = '../images/logo.png'
html_static_path = ['_static']
html_context = {
+ 'display_github': True,
+ 'theme_vcs_pageview_mode': 'edit',
+ 'github_user': 'OSGeo',
+ 'github_repo': 'PROJ',
+ # TODO: edit when switching active branch
+ 'github_version': '/6.2/docs/source/',
'css_files': [
'_static/theme_overrides.css', # override wide tables in RTD theme
],