File: conf.py

package info (click to toggle)
paramiko 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,408 kB
  • sloc: python: 18,837; xml: 19; makefile: 5
file content (28 lines) | stat: -rw-r--r-- 743 bytes parent folder | download | duplicates (2)
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
import os, sys
from os.path import abspath, join, dirname

sys.path.append(abspath(".."))
sys.path.append(abspath("../.."))
from shared_conf import *

# Enable autodoc, intersphinx
extensions.extend(["sphinx.ext.autodoc"])

# Autodoc settings
autodoc_default_options = {
    "members": True,
    "special-members": True,
}

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

# Sister-site links to WWW
html_theme_options["extra_nav_links"] = {
    "Main website": "http://www.paramiko.org"
}