Skip to content

Commit

Permalink
switch to sphinx-pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
glow-mdsol committed Nov 16, 2023
1 parent c26244f commit ac3de78
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,13 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import os

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.

import importlib.metadata

_DISTRIBUTION_METADATA = importlib.metadata.metadata('rwslib')
from sphinx_pyproject import SphinxConfig

author = _DISTRIBUTION_METADATA['Author']
project = _DISTRIBUTION_METADATA['Name']
version = _DISTRIBUTION_METADATA['Version']
copyright = _DISTRIBUTION_METADATA['Copyright']
config = SphinxConfig("../../pyproject.toml", globalns=globals(), style="poetry")


# -- General configuration -----------------------------------------------------
Expand Down

0 comments on commit ac3de78

Please sign in to comment.