mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #7021 from tk0miya/6754_docs_for_nodes_in_confpy
Warn about dangers of inheriting nodes in conf.py (2)
This commit is contained in:
commit
38ef16945e
@ -107,6 +107,20 @@ is just a "general" node.
|
||||
<http://docutils.sourceforge.net/docs/ref/doctree.html>`__ and :ref:`Sphinx
|
||||
<nodes>`.
|
||||
|
||||
.. attention::
|
||||
|
||||
It is important to know that while you can extend Sphinx without
|
||||
leaving your ``conf.py``, if you declare an inherited node right
|
||||
there, you'll hit an unobvious :py:class:`PickleError`. So if
|
||||
something goes wrong, please make sure that you put inherited nodes
|
||||
into a separate Python module.
|
||||
|
||||
For more details, see:
|
||||
|
||||
- https://github.com/sphinx-doc/sphinx/issues/6751
|
||||
- https://github.com/sphinx-doc/sphinx/issues/1493
|
||||
- https://github.com/sphinx-doc/sphinx/issues/1424
|
||||
|
||||
.. rubric:: The directive classes
|
||||
|
||||
A directive class is a class deriving usually from
|
||||
|
Loading…
Reference in New Issue
Block a user