|
12 | 12 | # |
13 | 13 | import os |
14 | 14 | import sys |
15 | | -sys.path.insert(0, os.path.abspath('../sw360')) |
| 15 | +current_dir = os.path.dirname(__file__) |
| 16 | +target_dir = os.path.abspath(os.path.join(current_dir, "../sw360")) |
| 17 | +sys.path.insert(0, target_dir) |
| 18 | +target2 = os.path.abspath(os.path.join(current_dir, "../")) |
| 19 | +sys.path.insert(0, target2) |
16 | 20 |
|
17 | 21 |
|
18 | 22 | # -- Project information ----------------------------------------------------- |
19 | 23 |
|
20 | 24 | project = 'Python interface for SW360' |
21 | | -copyright = '2020, Thomas Graf' |
| 25 | +copyright = '2020, Siemens AG' |
22 | 26 | author = 'Thomas Graf' |
23 | 27 |
|
24 | 28 |
|
|
27 | 31 | # Add any Sphinx extension module names here, as strings. They can be |
28 | 32 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
29 | 33 | # ones. |
30 | | -extensions = ['sphinx.ext.autodoc'] |
| 34 | +extensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosummary'] |
31 | 35 |
|
32 | 36 | # Add any paths that contain templates here, relative to this directory. |
33 | 37 | templates_path = ['_templates'] |
34 | 38 |
|
35 | 39 | # List of patterns, relative to source directory, that match files and |
36 | 40 | # directories to ignore when looking for source files. |
37 | 41 | # This pattern also affects html_static_path and html_extra_path. |
38 | | -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 42 | +exclude_patterns = [] |
39 | 43 |
|
40 | 44 |
|
41 | 45 | # -- Options for HTML output ------------------------------------------------- |
|
44 | 48 | # a list of builtin themes. |
45 | 49 | # |
46 | 50 | html_theme = 'alabaster' |
| 51 | +html_theme_options = { |
| 52 | + "github_user": "sw360", |
| 53 | + "github_repo": "sw360python", |
| 54 | + "github_button": True, |
| 55 | + "fixed_sidebar": True, |
| 56 | + "extra_nav_links": { |
| 57 | + "Package on PyPi": "https://pypi.org/project/sw360/", |
| 58 | + "Source on Github": "https://github.com/sw360/sw360python/", |
| 59 | + }, |
| 60 | +} |
47 | 61 |
|
48 | 62 | # Add any paths that contain custom static files (such as style sheets) here, |
49 | 63 | # relative to this directory. They are copied after the builtin static files, |
50 | 64 | # so a file named "default.css" will overwrite the builtin "default.css". |
51 | | -html_static_path = ['_static'] |
| 65 | +# html_static_path = ['_static'] |
0 commit comments