Skip to content

Commit 1df0f23

Browse files
committed
Fix autodoc not loading clr_loader from the repository
1 parent c1e3375 commit 1df0f23

File tree

1 file changed

+5
-37
lines changed

1 file changed

+5
-37
lines changed

doc/conf.py

Lines changed: 5 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,13 @@
1-
# Configuration file for the Sphinx documentation builder.
2-
#
3-
# This file only contains a selection of the most common options. For a full
4-
# list see the documentation:
5-
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6-
7-
# -- Path setup --------------------------------------------------------------
8-
9-
# If extensions (or modules to document with autodoc) are in another directory,
10-
# add these directories to sys.path here. If the directory is relative to the
11-
# documentation root, use os.path.abspath to make it absolute, like shown here.
12-
#
13-
# import os
14-
# import sys
15-
# sys.path.insert(0, os.path.abspath('.'))
16-
17-
18-
# -- Project information -----------------------------------------------------
19-
201
project = "clr-loader"
212
copyright = "2022, Benedikt Reinartz"
223
author = "Benedikt Reinartz"
234

24-
25-
# -- General configuration ---------------------------------------------------
26-
27-
# Add any Sphinx extension module names here, as strings. They can be
28-
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
29-
# ones.
305
extensions = ["sphinx.ext.autodoc"]
316

7+
# Add parent to path for autodoc
8+
import sys, os
9+
sys.path.append(os.path.abspath('..'))
10+
3211
# autodoc_typehints = "both"
3312

3413
# Add any paths that contain templates here, relative to this directory.
@@ -38,16 +17,5 @@
3817
# directories to ignore when looking for source files.
3918
# This pattern also affects html_static_path and html_extra_path.
4019
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
41-
42-
43-
# -- Options for HTML output -------------------------------------------------
44-
45-
# The theme to use for HTML and HTML Help pages. See the documentation for
46-
# a list of builtin themes.
47-
#
4820
html_theme = "furo"
49-
50-
# Add any paths that contain custom static files (such as style sheets) here,
51-
# relative to this directory. They are copied after the builtin static files,
52-
# so a file named "default.css" will overwrite the builtin "default.css".
53-
html_static_path = ["_static"]
21+
html_static_path = []

0 commit comments

Comments
 (0)