|
12 | 12 | # serve to show the default. |
13 | 13 |
|
14 | 14 | import os |
15 | | -import sys |
| 15 | + |
| 16 | +import django |
| 17 | + |
| 18 | +# import sys |
| 19 | + |
16 | 20 |
|
17 | 21 | # If extensions (or modules to document with autodoc) are in another directory, |
18 | 22 | # add these directories to sys.path here. If the directory is relative to the |
19 | 23 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
20 | | -sys.path.append(os.path.dirname(__file__)) |
21 | | -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test.settings") |
| 24 | +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings") |
| 25 | +django.setup() |
22 | 26 |
|
23 | 27 | # -- General configuration ----------------------------------------------------- |
24 | 28 |
|
25 | 29 | # Add any Sphinx extension module names here, as strings. They can be extensions |
26 | 30 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
27 | | -extensions = [ |
28 | | - "sphinx.ext.autodoc", |
29 | | -] |
| 31 | +extensions = ["sphinx.ext.autodoc", "sphinx_rtd_theme"] |
30 | 32 |
|
31 | 33 | # Add any paths that contain templates here, relative to this directory. |
32 | 34 | templates_path = ["_templates"] |
|
42 | 44 |
|
43 | 45 | # General information about the project. |
44 | 46 | project = "django-security" |
45 | | -copyright = "2013, SD Elements" |
| 47 | +copyright = "2024, SD Elements" |
46 | 48 |
|
47 | 49 | # The version info for the project you're documenting, acts as replacement for |
48 | 50 | # |version| and |release|, also used in various other places throughout the |
|
95 | 97 |
|
96 | 98 | # The theme to use for HTML and HTML Help pages. Major themes that come with |
97 | 99 | # Sphinx are currently 'default' and 'sphinxdoc'. |
98 | | -html_theme = "default" |
| 100 | +html_theme = "sphinx_rtd_theme" |
99 | 101 |
|
100 | 102 | # Theme options are theme-specific and customize the look and feel of a theme |
101 | 103 | # further. For a list of options available for each theme, see the |
|
0 commit comments