| 1 |
# Obtain shared config values |
| 2 |
import os, sys |
| 3 |
from os.path import abspath, join, dirname |
| 4 |
|
| 5 |
sys.path.append(abspath("..")) |
| 6 |
sys.path.append(abspath("../..")) |
| 7 |
from shared_conf import * |
| 8 |
|
| 9 |
# Enable autodoc, intersphinx |
| 10 |
extensions.extend(["sphinx.ext.autodoc"]) |
| 11 |
|
| 12 |
# Autodoc settings |
| 13 |
autodoc_default_options = { |
| 14 |
"members": True, |
| 15 |
"special-members": True, |
| 16 |
} |
| 17 |
|
| 18 |
# Default is 'local' building, but reference the public www site when building |
| 19 |
# under RTD. |
| 20 |
target = join(dirname(__file__), "..", "www", "_build") |
| 21 |
if os.environ.get("READTHEDOCS") == "True": |
| 22 |
target = "http://paramiko.org" |
| 23 |
intersphinx_mapping["www"] = (target, None) |
| 24 |
|
| 25 |
# Sister-site links to WWW |
| 26 |
html_theme_options["extra_nav_links"] = { |
| 27 |
"Main website": "http://www.paramiko.org" |
| 28 |
} |