mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
doc: Move sphinx.config API docs to code
Once again, we make things a little smarter by using Python domain roles. Signed-off-by: Stephen Finucane <stephen@that.guru>
This commit is contained in:
parent
391cd8195b
commit
b7749c6ca3
@ -686,16 +686,9 @@ Use this to adapt your extension to API changes in Sphinx.
|
|||||||
The Config object
|
The Config object
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
.. module:: sphinx.config
|
.. currentmodule:: sphinx.config
|
||||||
|
|
||||||
.. class:: Config
|
.. autoclass:: Config
|
||||||
|
|
||||||
The config object makes the values of all config values available as
|
|
||||||
attributes.
|
|
||||||
|
|
||||||
It is available as the ``config`` attribute on the application and
|
|
||||||
environment objects. For example, to get the value of :confval:`language`,
|
|
||||||
use either ``app.config.language`` or ``env.config.language``.
|
|
||||||
|
|
||||||
|
|
||||||
.. _template-bridge:
|
.. _template-bridge:
|
||||||
|
@ -78,8 +78,15 @@ if PY2:
|
|||||||
|
|
||||||
|
|
||||||
class Config(object):
|
class Config(object):
|
||||||
"""
|
"""Configuration file abstraction.
|
||||||
Configuration file abstraction.
|
|
||||||
|
The config object makes the values of all config values available as
|
||||||
|
attributes.
|
||||||
|
|
||||||
|
It is exposed via the :py:attr:`sphinx.application.Application.config` and
|
||||||
|
:py:attr:`sphinx.environment.Environment.config` attributes. For example,
|
||||||
|
to get the value of :confval:`language`, use either ``app.config.language``
|
||||||
|
or ``env.config.language``.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# the values are: (default, what needs to be rebuilt if changed)
|
# the values are: (default, what needs to be rebuilt if changed)
|
||||||
|
Loading…
Reference in New Issue
Block a user