Functions | Variables
generate_docs Namespace Reference

Functions

def find_modules ()
 
def main ()
 
def replace_toc (modules)
 
def write_automodule (module)
 

Variables

string AUTOMODULE_TEMPLATE
 
 DOCS_DIR = pathlib.Path(__file__).parent.resolve()
 
tuple IGNORED_MODULES
 
tuple IGNORED_PACKAGES
 
tuple INCLUDED_MODULES
 
 PYTHON_DIR = DOCS_DIR.parent
 
string SOURCE_DIR = PYTHON_DIR / "google" / "protobuf"
 
string SOURCE_POSIX = SOURCE_DIR.as_posix()
 
 TOC_REGEX
 
string TOC_TEMPLATE
 

Function Documentation

◆ find_modules()

def generate_docs.find_modules ( )

Definition at line 131 of file generate_docs.py.

◆ main()

def generate_docs.main ( )

Definition at line 183 of file generate_docs.py.

◆ replace_toc()

def generate_docs.replace_toc (   modules)

Definition at line 171 of file generate_docs.py.

◆ write_automodule()

def generate_docs.write_automodule (   module)

Definition at line 160 of file generate_docs.py.

Variable Documentation

◆ AUTOMODULE_TEMPLATE

string generate_docs.AUTOMODULE_TEMPLATE
Initial value:
1 = """.. DO NOT EDIT, generated by generate_docs.py.
2 
3 .. ifconfig:: build_env == 'readthedocs'
4 
5  .. warning::
6 
7  You are reading the documentation for the `latest committed changes
8  <https://github.com/protocolbuffers/protobuf/tree/master/python>`_ of
9  the `Protocol Buffers package for Python
10  <https://developers.google.com/protocol-buffers/docs/pythontutorial>`_.
11  Some features may not yet be released. Read the documentation for the
12  latest released package at `googleapis.dev
13  <https://googleapis.dev/python/protobuf/latest/>`_.
14 
15 {module}
16 {underline}
17 
18 .. automodule:: {module}
19  :members:
20  :inherited-members:
21  :undoc-members:
22 """

Definition at line 107 of file generate_docs.py.

◆ DOCS_DIR

generate_docs.DOCS_DIR = pathlib.Path(__file__).parent.resolve()

Definition at line 66 of file generate_docs.py.

◆ IGNORED_MODULES

tuple generate_docs.IGNORED_MODULES
Initial value:
1 = (
2  "any_test_pb2",
3  "api_pb2",
4  "unittest",
5  "source_context_pb2",
6  "test_messages_proto3_pb2",
7  "test_messages_proto2",
8 )

Definition at line 86 of file generate_docs.py.

◆ IGNORED_PACKAGES

tuple generate_docs.IGNORED_PACKAGES
Initial value:
1 = (
2  "compiler",
3  "docs",
4  "internal",
5  "pyext",
6  "util",
7 )

Definition at line 77 of file generate_docs.py.

◆ INCLUDED_MODULES

tuple generate_docs.INCLUDED_MODULES
Initial value:
1 = (
2  "google.protobuf.internal.containers",
3 )

Definition at line 72 of file generate_docs.py.

◆ PYTHON_DIR

generate_docs.PYTHON_DIR = DOCS_DIR.parent

Definition at line 67 of file generate_docs.py.

◆ SOURCE_DIR

string generate_docs.SOURCE_DIR = PYTHON_DIR / "google" / "protobuf"

Definition at line 68 of file generate_docs.py.

◆ SOURCE_POSIX

string generate_docs.SOURCE_POSIX = SOURCE_DIR.as_posix()

Definition at line 69 of file generate_docs.py.

◆ TOC_REGEX

generate_docs.TOC_REGEX
Initial value:
1 = re.compile(
2  r"\.\. START REFTOC.*\.\. END REFTOC\.\n",
3  flags=re.DOTALL,
4 )

Definition at line 95 of file generate_docs.py.

◆ TOC_TEMPLATE

string generate_docs.TOC_TEMPLATE
Initial value:
1 = """.. START REFTOC, generated by generate_docs.py.
2 .. toctree::
3 
4  {toctree}
5 
6 .. END REFTOC.
7 """

Definition at line 99 of file generate_docs.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:10