Skip to content

Commit

Permalink
add __authors__
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyminium committed Sep 20, 2023
1 parent 23a7dfd commit c2a26a8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
import sys

sys.path.insert(0, os.path.abspath("."))
import mdanalysis_sphinx_theme

copyright = "2023, MDAnalysis"
author = "MDAnalysis"
author = mdanalysis_sphinx_theme.__authors__

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

Expand Down
9 changes: 9 additions & 0 deletions mdanalysis_sphinx_theme/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""MDAnalysis Sphinx theme."""

import logging
import os
import pathlib

Expand All @@ -9,6 +10,14 @@

from ._version import get_versions

logger = logging.getLogger(__name__)

try:
from .authors import __authors__
except ImportError:
logger.info('Could not find authors.py, __authors__ will be empty.')
__authors__ = []

__version__ = get_versions()["version"]
del get_versions

Expand Down

0 comments on commit c2a26a8

Please sign in to comment.