blob: 6a252b056ea6fc6df79b6243c2fbb64944c37309 [file] [log] [blame]
Tommy Carpenterfbb59282020-04-08 07:04:51 -04001import os
2import sys
Tommy Carpenter53786ca2020-02-28 09:17:46 -05003from docs_conf.conf import *
4
Lott, Christopher (cl778h)db26ba22020-04-09 18:25:19 -04005# autodoc needs this to find the code
Tommy Carpenterfbb59282020-04-08 07:04:51 -04006sys.path.insert(0, os.path.abspath("../"))
7
ehietala12486342022-06-15 12:21:41 +03008language = 'en'
9
Lott, Christopher (cl778h)f55e4d82020-04-10 16:02:11 -040010extensions = ["sphinx.ext.autodoc", "sphinx.ext.intersphinx", "sphinx.ext.viewcode", "numpydoc"]
Tommy Carpenterfbb59282020-04-08 07:04:51 -040011
Lott, Christopher (cl778h)db26ba22020-04-09 18:25:19 -040012# don't alphabetically order
Tommy Carpenterfbb59282020-04-08 07:04:51 -040013autodoc_member_order = "bysource"
Lott, Christopher (cl778h)ca170d32020-05-12 15:05:59 -040014# 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.
16numpydoc_show_class_members = False
Tommy Carpenterfbb59282020-04-08 07:04:51 -040017
Tommy Carpenter53786ca2020-02-28 09:17:46 -050018linkcheck_ignore = ["http://localhost.*", "http://127.0.0.1.*", "https://gerrit.o-ran-sc.org.*"]
Lott, Christopher (cl778h)db26ba22020-04-09 18:25:19 -040019
20# silence complaints from autodoc gen
Lott, Christopher (cl778h)4b9552c2020-04-09 14:49:02 -040021nitpick_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)db26ba22020-04-09 18:25:19 -040026
27# RMR c library is not available in ReadTheDocs
28autodoc_mock_imports = ['ricxappframe.rmr.rmrclib']
Lott, Christopher (cl778h)f55e4d82020-04-10 16:02:11 -040029
30# Supports links to RMR man pages
31branch = 'latest'
32intersphinx_mapping['ric-plt-lib-rmr'] = ('https://docs.o-ran-sc.org/projects/o-ran-sc-ric-plt-lib-rmr/en/%s' % branch, None)