Skip to content

Commit

Permalink
Holy crap, never had a link back to www intersphinx from doc site???
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Dec 3, 2019
1 parent 1919964 commit d3b481d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions sites/docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Obtain shared config values
import os, sys
from os.path import abspath, join, dirname

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

# Enable autodoc, intersphinx
Expand All @@ -11,6 +12,13 @@
# Autodoc settings
autodoc_default_flags = ["members", "special-members"]

# 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"
Expand Down

0 comments on commit d3b481d

Please sign in to comment.