Tommy Carpenter | fbb5928 | 2020-04-08 07:04:51 -0400 | [diff] [blame] | 1 | import os |
| 2 | import sys |
Tommy Carpenter | 53786ca | 2020-02-28 09:17:46 -0500 | [diff] [blame] | 3 | from docs_conf.conf import * |
| 4 | |
Lott, Christopher (cl778h) | db26ba2 | 2020-04-09 18:25:19 -0400 | [diff] [blame] | 5 | # autodoc needs this to find the code |
Tommy Carpenter | fbb5928 | 2020-04-08 07:04:51 -0400 | [diff] [blame] | 6 | sys.path.insert(0, os.path.abspath("../")) |
| 7 | |
ehietala | 1248634 | 2022-06-15 12:21:41 +0300 | [diff] [blame] | 8 | language = 'en' |
| 9 | |
Lott, Christopher (cl778h) | f55e4d8 | 2020-04-10 16:02:11 -0400 | [diff] [blame] | 10 | extensions = ["sphinx.ext.autodoc", "sphinx.ext.intersphinx", "sphinx.ext.viewcode", "numpydoc"] |
Tommy Carpenter | fbb5928 | 2020-04-08 07:04:51 -0400 | [diff] [blame] | 11 | |
Lott, Christopher (cl778h) | db26ba2 | 2020-04-09 18:25:19 -0400 | [diff] [blame] | 12 | # don't alphabetically order |
Tommy Carpenter | fbb5928 | 2020-04-08 07:04:51 -0400 | [diff] [blame] | 13 | autodoc_member_order = "bysource" |
Lott, Christopher (cl778h) | ca170d3 | 2020-05-12 15:05:59 -0400 | [diff] [blame] | 14 | # Tell numpydoc NOT to generate a list of class members to silence sphinx warnings like this: |
| 15 | # simple.py:docstring of simple.simple.Simple.rst:20:autosummary: stub file not found 'simple.simple.Simple.hello'. Check your autosummary_generate setting. |
| 16 | numpydoc_show_class_members = False |
Tommy Carpenter | fbb5928 | 2020-04-08 07:04:51 -0400 | [diff] [blame] | 17 | |
Tommy Carpenter | 53786ca | 2020-02-28 09:17:46 -0500 | [diff] [blame] | 18 | linkcheck_ignore = ["http://localhost.*", "http://127.0.0.1.*", "https://gerrit.o-ran-sc.org.*"] |
Lott, Christopher (cl778h) | db26ba2 | 2020-04-09 18:25:19 -0400 | [diff] [blame] | 19 | |
| 20 | # silence complaints from autodoc gen |
Lott, Christopher (cl778h) | 4b9552c | 2020-04-09 14:49:02 -0400 | [diff] [blame] | 21 | nitpick_ignore = [ |
| 22 | ('py:class', 'ctypes.c_char_p'), |
| 23 | ('py:class', 'ctypes.c_void_p'), |
| 24 | ('py:class', 'ricxappframe.rmr.rmr.LP_rmr_mbuf_t'), |
| 25 | ] |
Lott, Christopher (cl778h) | db26ba2 | 2020-04-09 18:25:19 -0400 | [diff] [blame] | 26 | |
| 27 | # RMR c library is not available in ReadTheDocs |
| 28 | autodoc_mock_imports = ['ricxappframe.rmr.rmrclib'] |
Lott, Christopher (cl778h) | f55e4d8 | 2020-04-10 16:02:11 -0400 | [diff] [blame] | 29 | |
| 30 | # Supports links to RMR man pages |
| 31 | branch = 'latest' |
| 32 | intersphinx_mapping['ric-plt-lib-rmr'] = ('https://docs.o-ran-sc.org/projects/o-ran-sc-ric-plt-lib-rmr/en/%s' % branch, None) |