Skip to content

Commit 1f2f366

Browse files
committed
Use sphinx-astropy rather than astropy-helpers
1 parent 2aee654 commit 1f2f366

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

docs/conf.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,13 @@
2929
import os
3030
import sys
3131

32+
# Load all of the global Astropy configuration
3233
try:
33-
import astropy_helpers
34+
from sphinx_astropy.conf.v1 import * # noqa
3435
except ImportError:
35-
# 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
36+
print('ERROR: the documentation requires the sphinx-astropy package to '
37+
'be installed')
38+
sys.exit(1)
4439

4540
from configparser import ConfigParser
4641
conf = ConfigParser()

0 commit comments

Comments
 (0)