19 PYTHON_FOLDER = os.path.join(os.path.dirname(os.path.realpath(__file__)),
'..',
20 '..',
'..',
'src',
'python')
21 sys.path.insert(0, os.path.join(PYTHON_FOLDER,
'grpcio'))
22 sys.path.insert(0, os.path.join(PYTHON_FOLDER,
'grpcio_channelz'))
23 sys.path.insert(0, os.path.join(PYTHON_FOLDER,
'grpcio_health_checking'))
24 sys.path.insert(0, os.path.join(PYTHON_FOLDER,
'grpcio_reflection'))
25 sys.path.insert(0, os.path.join(PYTHON_FOLDER,
'grpcio_status'))
26 sys.path.insert(0, os.path.join(PYTHON_FOLDER,
'grpcio_testing'))
30 project =
'gRPC Python'
31 copyright =
'2020, The gRPC Authors'
32 author =
'The gRPC Authors'
36 version =
'.'.join(grpc_version.VERSION.split(
'.')[:3])
37 release = grpc_version.VERSION
38 if 'dev' in grpc_version.VERSION:
41 branch =
'v%s.%s.x' % tuple(grpc_version.VERSION.split(
'.')[:2])
45 templates_path = [
'_templates']
46 source_suffix = [
'.rst',
'.md']
49 exclude_patterns = [
'_build',
'Thumbs.db',
'.DS_Store']
56 'sphinx.ext.viewcode',
58 'sphinx.ext.napoleon',
59 'sphinx.ext.coverage',
60 'sphinx.ext.autodoc.typehints',
63 napoleon_google_docstring =
True
64 napoleon_numpy_docstring =
True
65 napoleon_include_special_with_doc =
True
67 autodoc_default_options = {
71 autodoc_mock_imports = []
73 autodoc_typehints =
'description'
77 html_theme =
'alabaster'
78 html_theme_options = {
79 'fixed_sidebar':
True,
80 'page_width':
'1140px',
82 'analytics_id':
'UA-60127042-1',
83 'description': grpc_version.VERSION,
84 'show_powered_by':
False,
86 html_static_path = [
"_static"]
90 man_pages = [(master_doc,
'grpcio',
'grpcio Documentation', [author], 1)]
95 (master_doc,
'grpcio',
'grpcio Documentation', author,
'grpcio',
96 'One line description of project.',
'Miscellaneous'),
102 epub_exclude_files = [
'search.html']
106 todo_include_todos =
True
110 rst_epilog =
'.. |grpc_types_link| replace:: https://github.com/grpc/grpc/blob/%s/include/grpc/impl/codegen/grpc_types.h' % branch