mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
doc: update description
Update description about how `conf.py` is loaded/executed
This commit is contained in:
parent
f34eb492a3
commit
d20646194c
4
doc/_static/conf.py.txt
vendored
4
doc/_static/conf.py.txt
vendored
@ -1,8 +1,8 @@
|
||||
# test documentation build configuration file, created by
|
||||
# sphinx-quickstart on Sun Jun 26 00:00:43 2016.
|
||||
#
|
||||
# This file is execfile()d with the current directory set to its
|
||||
# containing dir.
|
||||
# This file is executed through importlib.import_module with
|
||||
# the current directory set to its containing dir.
|
||||
#
|
||||
# Note that not all possible configuration values are present in this
|
||||
# autogenerated file.
|
||||
|
@ -22,9 +22,9 @@ and output behavior.
|
||||
.. _`docutils.conf`: https://docutils.sourceforge.io/docs/user/config.html
|
||||
|
||||
The configuration file is executed as Python code at build time (using
|
||||
:func:`execfile`, and with the current directory set to its containing
|
||||
directory), and therefore can execute arbitrarily complex code. Sphinx then
|
||||
reads simple names from the file's namespace as its configuration.
|
||||
:func:`importlib.import_module`, and with the current directory set to its
|
||||
containing directory), and therefore can execute arbitrarily complex code.
|
||||
Sphinx then reads simple names from the file's namespace as its configuration.
|
||||
|
||||
Important points to note:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user