File tree Expand file tree Collapse file tree
packages/google-cloud-apiregistry/docs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525# All configuration values have a default; values that are commented out
2626# serve to show the default.
2727
28+ import logging
2829import os
2930import shlex
3031import sys
383384napoleon_use_ivar = False
384385napoleon_use_param = True
385386napoleon_use_rtype = True
387+
388+
389+ # --- Specific Warning Filters not covered by SuppressedWarnings ---
390+ class UnexpectedUnindentFilter (logging .Filter ):
391+ """Filter out warnings about unexpected unindentation."""
392+
393+ def filter (self , record ):
394+ # Return False to suppress the warning, True to allow it
395+ msg = record .getMessage ()
396+ if "Bullet list ends without a blank line" in msg :
397+ return False
398+ return True
399+
400+
401+ def setup (app ):
402+ # Sphinx's logger is hierarchical. Adding the filter to the
403+ # root 'sphinx' logger will catch warnings from all sub-loggers.
404+ logger = logging .getLogger ("sphinx" )
405+ logger .addFilter (UnexpectedUnindentFilter ())
You can’t perform that action at this time.
0 commit comments