Skip to content

Commit

Permalink
Revert to sphinx_astropy.conf rather than sphinx_astropy.conf.v2
Browse files Browse the repository at this point in the history
  • Loading branch information
aphearin committed Sep 9, 2024
1 parent 3580070 commit f881071
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,11 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
#

import os
import sys
from datetime import datetime, timezone
from importlib import metadata

try:
import sphinx_astropy
except ImportError:
# Building from inside the docs/ directory?
if os.path.basename(os.getcwd()) == "docs":
a_h_path = os.path.abspath(os.path.join("..", "sphinx_astropy"))
if os.path.isdir(a_h_path):
sys.path.insert(1, a_h_path)

# Load all of the global Astropy configuration
from sphinx_astropy.conf.v2 import exclude_patterns
from sphinx_astropy.conf import exclude_patterns

# -- General configuration ----------------------------------------------------

Expand Down

0 comments on commit f881071

Please sign in to comment.