| 1 |
# Obtain shared config values |
| 2 |
import sys |
| 3 |
import os |
| 4 |
from os.path import abspath, join, dirname |
| 5 |
|
| 6 |
sys.path.append(abspath(join(dirname(__file__), ".."))) |
| 7 |
from shared_conf import * |
| 8 |
|
| 9 |
# Releases changelog extension |
| 10 |
extensions.append("releases") |
| 11 |
releases_github_path = "pyinvoke/invoke" |
| 12 |
|
| 13 |
# Default is 'local' building, but reference the public docs site when building |
| 14 |
# under RTD. |
| 15 |
target = join(dirname(__file__), "..", "docs", "_build") |
| 16 |
if os.environ.get("READTHEDOCS") == "True": |
| 17 |
target = "https://docs.pyinvoke.org/en/latest/" |
| 18 |
intersphinx_mapping["docs"] = (target, None) |
| 19 |
|
| 20 |
# Sister-site links to documentation |
| 21 |
html_theme_options["extra_nav_links"] = { |
| 22 |
"Documentation": "https://docs.pyinvoke.org" |
| 23 |
} |