Remove `notice` environment which was deprecated at 1.6

This commit is contained in:
jfbu
2017-05-03 11:51:38 +02:00
parent 64f04c90b9
commit 71a1ffb303
2 changed files with 1 additions and 8 deletions

View File

@@ -38,6 +38,7 @@ Features removed
* prefix and colorfunc parameter for warn()
* ``sphinx.util.compat`` module
* ``sphinx.util.nodes.process_only_nodes()``
* LaTeX environment ``notice``, use ``sphinxadmonition`` instead
Bugs fixed
----------

View File

@@ -1158,14 +1158,6 @@
\begin{sphinx#1}{#2}}
% in end part, need to go around a LaTeX's "feature"
{\edef\spx@temp{\noexpand\end{sphinx\spx@noticetype}}\spx@temp}
% use of ``notice'' is for backwards compatibility and will be removed in
% Sphinx 1.7.
\newenvironment{notice}
{\sphinxdeprecationwarning {notice}{1.6}{1.7}{%
This document was probably built with a Sphinx extension using ``notice''^^J
environment. At Sphinx 1.7, ``notice'' environment will be removed. Please^^J
report to extension author to use ``sphinxadmonition'' instead.^^J%
****}\begin{sphinxadmonition}}{\end{sphinxadmonition}}
%% PYTHON DOCS MACROS AND ENVIRONMENTS