|
9 | 9 | # If extensions (or modules to document with autodoc) are in another directory, |
10 | 10 | # add these directories to sys.path here. If the directory is relative to the |
11 | 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('.')) |
| 12 | +import os |
| 13 | +import sys |
16 | 14 |
|
| 15 | +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "purldb_project.settings") |
| 16 | +sys.path.insert(0, os.path.abspath("../../.")) |
17 | 17 |
|
18 | 18 | # -- Project information ----------------------------------------------------- |
19 | 19 |
|
20 | 20 | project = "PurlDB" |
21 | | -copyright = "nexB Inc. and others." |
| 21 | +copyright = "AboutCode, nexB Inc. and others." |
22 | 22 | author = "AboutCode.org authors and contributors" |
23 | 23 |
|
24 | 24 |
|
|
31 | 31 | "sphinx.ext.intersphinx", |
32 | 32 | "sphinx_reredirects", |
33 | 33 | "sphinx_rtd_theme", |
34 | | - "sphinx_rtd_dark_mode", |
35 | 34 | "sphinx.ext.extlinks", |
36 | 35 | "sphinx_copybutton", |
37 | 36 | "sphinx.ext.autodoc", |
38 | 37 | "sphinx_rtd_dark_mode", # For the Dark Mode |
39 | 38 | ] |
40 | 39 |
|
41 | 40 |
|
42 | | -# Redirects for olds pages |
43 | | -# See https://documatt.gitlab.io/sphinx-reredirects/usage.html |
44 | | -redirects = {} |
45 | | - |
46 | 41 | # This points to aboutcode.readthedocs.io |
47 | 42 | # In case of "undefined label" ERRORS check docs on intersphinx to troubleshoot |
48 | 43 | # Link was created at commit - https://github.com/aboutcode-org/aboutcode/commit/faea9fcf3248f8f198844fe34d43833224ac4a83 |
49 | 44 |
|
50 | 45 | intersphinx_mapping = { |
51 | | - "aboutcode": ("https://aboutcode.readthedocs.io/en/latest/", None), |
52 | | - "scancode-workbench": ( |
53 | | - "https://scancode-workbench.readthedocs.io/en/develop/", |
54 | | - None, |
55 | | - ), |
56 | 46 | "scancode.io": ( |
57 | 47 | "https://scancodeio.readthedocs.io/en/latest/", |
58 | 48 | None, |
|
66 | 56 | # List of patterns, relative to source directory, that match files and |
67 | 57 | # directories to ignore when looking for source files. |
68 | 58 | # This pattern also affects html_static_path and html_extra_path. |
69 | | -exclude_patterns = [] |
| 59 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
70 | 60 |
|
71 | 61 |
|
72 | 62 | # -- Options for HTML output ------------------------------------------------- |
73 | 63 |
|
74 | 64 | # The theme to use for HTML and HTML Help pages. See the documentation for |
75 | 65 | # a list of builtin themes. |
76 | | -# |
77 | 66 | html_theme = "sphinx_rtd_theme" |
78 | 67 |
|
79 | 68 | # Add any paths that contain custom static files (such as style sheets) here, |
|
85 | 74 |
|
86 | 75 | html_context = { |
87 | 76 | "display_github": True, |
88 | | - "github_user": "nexB", |
| 77 | + "github_user": "aboutcode-org", |
89 | 78 | "github_repo": "purldb", |
90 | 79 | "github_version": "main", # branch |
91 | 80 | "conf_py_path": "/docs/source/", # path in the checkout to the docs root |
|
0 commit comments