module documentation

Build configuration file handling.

Unknown Field: copyright
Copyright 2007-2022 by the Sphinx team, see AUTHORS.
Unknown Field: license
BSD, see LICENSE for details.
Class ​Config Configuration file abstraction.
Constant CONFIG​_FILENAME Undocumented
Constant UNSERIALIZABLE​_TYPES Undocumented
Variable copyright​_year​_re Undocumented
Variable logger Undocumented
Class ​Config​Value Undocumented
Class ENUM Represents the candidates which a config value should be one of.
Function check​_confval​_types Check all values for deviation from the default value's type, since that can result in TypeErrors all over the place NB.
Function check​_primary​_domain Undocumented
Function check​_root​_doc Adjust root_doc to 'contents' to support an old project which does not have any root_doc setting.
Function convert​_highlight​_options Convert old styled highlight_options to new styled one.
Function convert​_source​_suffix Convert old styled source_suffix to new styled one.
Function correct​_copyright​_year Correct values of copyright year that are not coherent with the SOURCE_DATE_EPOCH environment variable (if set)
Function eval​_config​_file Evaluate a config file.
Function init​_numfig​_format Initialize :confval:`numfig_format`.
Function is​_serializable Check if object is serializable or not.
Function setup Undocumented
CONFIG_FILENAME: str =

Undocumented

Value
'conf.py'
UNSERIALIZABLE_TYPES =

Undocumented

Value
(type, types.ModuleType, types.FunctionType)
copyright_year_re =

Undocumented

logger =

Undocumented

def check_confval_types(app, config):
Check all values for deviation from the default value's type, since that can result in TypeErrors all over the place NB.
Parameters
app:SphinxUndocumented
config:ConfigUndocumented
def check_primary_domain(app, config):

Undocumented

Parameters
app:SphinxUndocumented
config:ConfigUndocumented
def check_root_doc(app, env, added, changed, removed):
Adjust root_doc to 'contents' to support an old project which does not have any root_doc setting.
Parameters
app:SphinxUndocumented
env:BuildEnvironmentUndocumented
added:Set[str]Undocumented
changed:Set[str]Undocumented
removed:Set[str]Undocumented
Returns
Set[str]Undocumented
def convert_highlight_options(app, config):

Convert old styled highlight_options to new styled one.

  • old style: options
  • new style: a dict which maps from language name to options
Parameters
app:SphinxUndocumented
config:ConfigUndocumented
def convert_source_suffix(app, config):

Convert old styled source_suffix to new styled one.

  • old style: str or list
  • new style: a dict which maps from fileext to filetype
Parameters
app:SphinxUndocumented
config:ConfigUndocumented
def correct_copyright_year(app, config):

Correct values of copyright year that are not coherent with the SOURCE_DATE_EPOCH environment variable (if set)

See https://reproducible-builds.org/specs/source-date-epoch/

Parameters
app:SphinxUndocumented
config:ConfigUndocumented
def eval_config_file(filename, tags):
Evaluate a config file.
Parameters
filename:strUndocumented
tags:Optional[Tags]Undocumented
Returns
Dict[str, Any]Undocumented
def init_numfig_format(app, config):
Initialize :confval:`numfig_format`.
Parameters
app:SphinxUndocumented
config:ConfigUndocumented
def is_serializable(obj):
Check if object is serializable or not.
Parameters
obj:AnyUndocumented
Returns
boolUndocumented
def setup(app):

Undocumented

Parameters
app:SphinxUndocumented
Returns
Dict[str, Any]Undocumented