From 89c83b2b9ef078eb4b267ca0e8340f9ae6d5799c Mon Sep 17 00:00:00 2001 From: Craig Brinck Date: Thu, 9 Nov 2023 19:40:37 -0500 Subject: [PATCH] Updates to autodoc formatting --- docs/source/FEModel3D.rst | 2 +- docs/source/conf.py | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/source/FEModel3D.rst b/docs/source/FEModel3D.rst index e72fe7e1..5bbc575c 100644 --- a/docs/source/FEModel3D.rst +++ b/docs/source/FEModel3D.rst @@ -54,5 +54,5 @@ Avaliable dictionaries are: FEModel3D Reference =================== -.. autoclass:: FEModel3D +.. autoclass:: PyNite.FEModel3D :members: \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index 06a796c7..e54f904b 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -11,11 +11,6 @@ import sys sys.path.insert(0, os.path.abspath('../..')) sys.path.insert(0, os.path.abspath('../../PyNite')) -sys.path.insert(0, os.path.abspath('../../PyNite/FEModel3D')) - -# autodoc settings -autodoc_mock_imports = ['numpy'] # Mock the numpy import -from PyNite import FEModel3D # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information @@ -30,6 +25,9 @@ extensions = ['sphinx.ext.autodoc'] +# Control how class names are displayed +autoclass_content = 'class' + templates_path = ['_templates'] exclude_patterns = []