class documentation

class Config:

View In Hierarchy

Configuration file abstraction.

The config object makes the values of all config values available as attributes.

It is exposed via the sphinx.application.Application.config and sphinx.environment.Environment.config attributes. For example, to get the value of :confval:`language`, use either app.config.language or env.config.language.

Class Method read Create a Config object from configuration file.
Method __contains__ Undocumented
Method __delitem__ Undocumented
Method __getattr__ Undocumented
Method __getitem__ Undocumented
Method __getstate__ Obtains serializable data for pickling.
Method __init__ Undocumented
Method __iter__ Undocumented
Method __setitem__ Undocumented
Method __setstate__ Undocumented
Method add Undocumented
Method convert​_overrides Undocumented
Method filter Undocumented
Method init​_values Undocumented
Method post​_init​_values Initialize additional config variables that are added after init_values() called.
Method pre​_init​_values Initialize some limited config variables before initializing i18n and loading extensions.
Class Variable config​_values Undocumented
Instance Variable ​_raw​_config Undocumented
Instance Variable extensions Undocumented
Instance Variable overrides Undocumented
Instance Variable setup Undocumented
Instance Variable values Undocumented
@classmethod
def read(cls, confdir, overrides=None, tags=None):
Create a Config object from configuration file.
Parameters
confdir:strUndocumented
overrides:DictUndocumented
tags:TagsUndocumented
Returns
ConfigUndocumented
def __contains__(self, name):

Undocumented

Parameters
name:strUndocumented
Returns
boolUndocumented
def __delitem__(self, name):

Undocumented

Parameters
name:strUndocumented
def __getattr__(self, name):

Undocumented

Parameters
name:strUndocumented
Returns
AnyUndocumented
def __getitem__(self, name):

Undocumented

Parameters
name:strUndocumented
Returns
AnyUndocumented
def __getstate__(self):
Obtains serializable data for pickling.
Returns
DictUndocumented
def __init__(self, config={}, overrides={}):

Undocumented

Parameters
config:Dict[str, Any]Undocumented
overrides:Dict[str, Any]Undocumented
def __iter__(self):

Undocumented

Returns
Generator[ConfigValue, None, None]Undocumented
def __setitem__(self, name, value):

Undocumented

Parameters
name:strUndocumented
value:AnyUndocumented
def __setstate__(self, state):

Undocumented

Parameters
state:DictUndocumented
def add(self, name, default, rebuild, types):

Undocumented

Parameters
name:strUndocumented
default:AnyUndocumented
rebuild:Union[bool, str]Undocumented
types:AnyUndocumented
def convert_overrides(self, name, value):

Undocumented

Parameters
name:strUndocumented
value:AnyUndocumented
Returns
AnyUndocumented
def filter(self, rebuild):

Undocumented

Parameters
rebuild:Union[str, List[str]]Undocumented
Returns
Iterator[ConfigValue]Undocumented
def init_values(self):

Undocumented

def post_init_values(self):
Initialize additional config variables that are added after init_values() called.
def pre_init_values(self):
Initialize some limited config variables before initializing i18n and loading extensions.
config_values: Dict[str, Tuple] =

Undocumented

_raw_config =

Undocumented

extensions: List[str] =

Undocumented

overrides =

Undocumented

setup: Optional[Callable] =

Undocumented

values =

Undocumented