|
13 | 13 | import os
|
14 | 14 | from pathlib import Path
|
15 | 15 | from jinja2 import FileSystemLoader, Environment
|
| 16 | +import importlib.metadata |
16 | 17 |
|
17 | 18 | # -- Project information (unique to each project) -------------------------------------
|
18 | 19 |
|
|
21 | 22 | author = "labscript suite contributors"
|
22 | 23 |
|
23 | 24 | # The full version, including alpha/beta/rc tags
|
24 |
| -from labscript_devices import __version__ as version # noqa: E402 |
| 25 | +version = importlib.metadata.version('labscript-devices') |
25 | 26 |
|
26 | 27 | release = version
|
27 | 28 |
|
|
49 | 50 |
|
50 | 51 | autodoc_typehints = 'description'
|
51 | 52 | autoclass_content = 'both' # options: 'both', 'class', 'init'
|
52 |
| -autodoc_mock_imports = ['PyDAQmx','labscript_utils'] |
| 53 | +autodoc_mock_imports = ['PyDAQmx','labscript_utils.h5_lock'] |
53 | 54 |
|
54 | 55 | # Prefix each autosectionlabel with the name of the document it is in and a colon
|
55 | 56 | autosectionlabel_prefix_document = True
|
|
64 | 65 | exclude_patterns = []
|
65 | 66 |
|
66 | 67 | # The suffix(es) of source filenames.
|
67 |
| -source_suffix = ['.rst', '.md'] |
| 68 | +source_suffix = { |
| 69 | + '.rst': 'restructuredtext', |
| 70 | + '.md': 'markdown', |
| 71 | +} |
68 | 72 |
|
69 | 73 | # The master toctree document.
|
70 | 74 | master_doc = 'index'
|
|
85 | 89 | 'h5py': ('https://docs.h5py.org/en/stable/', None),
|
86 | 90 | 'pydaqmx': ('https://pythonhosted.org/PyDAQmx/', None),
|
87 | 91 | 'qt': (
|
88 |
| - '', |
| 92 | + 'https://riverbankcomputing.com/static/Docs/PyQt5/', |
89 | 93 | 'pyqt5-modified-objects.inv',
|
90 | 94 | ) # from https://github.com/MSLNZ/msl-qt/blob/master/docs/create_pyqt_objects.py
|
91 | 95 | # under MIT License
|
|
0 commit comments