|
16 | 16 |
|
17 | 17 | # Next, we can import out module and all rypes on the struct classes will be |
18 | 18 | # replaced by their runtime types |
19 | | -sys.path.insert(0, str(PROJECT_ROOT / "src")) |
| 19 | +try: |
| 20 | + import icspacket |
| 21 | +except ImportError: |
| 22 | + sys.path.insert(0, str(PROJECT_ROOT / "src")) |
20 | 23 |
|
21 | 24 | # -- Project information ----------------------------------------------------- |
22 | 25 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
|
40 | 43 |
|
41 | 44 | templates_path = ["_templates"] |
42 | 45 | exclude_patterns = [] |
43 | | - |
| 46 | +autodoc_member_order = "bysource" |
44 | 47 |
|
45 | 48 | # -- Options for HTML output ------------------------------------------------- |
46 | 49 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
|
49 | 52 |
|
50 | 53 | html_copy_source = False |
51 | 54 | html_show_sourcelink = False |
| 55 | +html_baseurl = "https://matrixeditor.github.io/icspacket/" |
| 56 | + |
| 57 | +html_sidebars = { |
| 58 | + "**": [ |
| 59 | + "sidebars/localtoc.html", |
| 60 | + "repo-stats-custom.html", |
| 61 | + "sidebars/edit-this-page.html", |
| 62 | + ] |
| 63 | +} |
| 64 | + |
| 65 | +html_context = { |
| 66 | + "source_type": "github", |
| 67 | + "source_user": "MatrixEditor", |
| 68 | + "source_repo": "icspacket", |
| 69 | +} |
| 70 | + |
| 71 | +html_theme_options = { |
| 72 | + "accent_color": "lime", |
| 73 | + "color_mode": "dark", |
| 74 | + "github_url": "https://github.com/MatrixEditor/icspacket", |
| 75 | + "discussion_url": "https://github.com/MatrixEditor/icspacket/discussions", |
| 76 | + "globaltoc_expand_depth": 2, |
| 77 | + "nav_links": [ |
| 78 | + { |
| 79 | + "title": "Examples", |
| 80 | + "url": "examples/index", |
| 81 | + "children": [ |
| 82 | + { |
| 83 | + "title": "MMS Utilities", |
| 84 | + "url": "examples/mms/index", |
| 85 | + "summary": "Manufacturing Message Specification tools", |
| 86 | + "children": [ |
| 87 | + { |
| 88 | + "title": "MMS Client", |
| 89 | + "url": "examples/mms/client", |
| 90 | + "summary": "Interactive MMS client shell", |
| 91 | + }, |
| 92 | + { |
| 93 | + "title": "MMS Utility", |
| 94 | + "url": "examples/mms/utility", |
| 95 | + "summary": "Utility commands for MMS peers", |
| 96 | + }, |
| 97 | + ], |
| 98 | + }, |
| 99 | + ], |
| 100 | + }, |
| 101 | + ], |
| 102 | +} |
0 commit comments