summaryrefslogtreecommitdiff
path: root/sites/www/conf.py
blob: 179f0b7f60505e317a90c303fa31d30e362dd6fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Obtain shared config values
from pathlib import Path
import os
import sys

updir = Path(__file__).parent.parent.resolve()
sys.path.append(str(updir))
from shared_conf import *

# Releases changelog extension
extensions.append("releases")
releases_release_uri = "https://github.com/paramiko/paramiko/tree/%s"
releases_issue_uri = "https://github.com/paramiko/paramiko/issues/%s"
releases_development_branch = "main"
# Don't show unreleased_X.x sections up top for 1.x or 2.x anymore
releases_supported_versions = [3]

# Default is 'local' building, but reference the public docs site when building
# under RTD.
target = updir / "docs" / "_build"
if os.environ.get("READTHEDOCS") == "True":
    target = "http://docs.paramiko.org/en/latest/"
intersphinx_mapping["docs"] = (str(target), None)

# Sister-site links to API docs
html_theme_options["extra_nav_links"] = {
    "API Docs": "http://docs.paramiko.org"
}