We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aee654 commit 1f2f366Copy full SHA for 1f2f366
docs/conf.py
@@ -29,18 +29,13 @@
29
import os
30
import sys
31
32
+# Load all of the global Astropy configuration
33
try:
- import astropy_helpers
34
+ from sphinx_astropy.conf.v1 import * # noqa
35
except ImportError:
- # Building from inside the docs/ directory?
36
- if os.path.basename(os.getcwd()) == 'docs':
37
- a_h_path = os.path.abspath(os.path.join('..', 'astropy_helpers'))
38
- if os.path.isdir(a_h_path):
39
- sys.path.insert(1, a_h_path)
40
-
41
-# Load all of the global Astropy configuration
42
-from astropy_helpers.sphinx.conf import *
43
-import urllib
+ print('ERROR: the documentation requires the sphinx-astropy package to '
+ 'be installed')
+ sys.exit(1)
44
45
from configparser import ConfigParser
46
conf = ConfigParser()
0 commit comments