Skip to content

Commit 50f17a3

Browse files
authored
FIX workaround sphinx limitation with rst_prolog (scikit-learn#26680)
1 parent 1cbf71b commit 50f17a3

9 files changed

+45
-0
lines changed

doc/templates/class.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
..
2+
The empty line below should not be removed. It is added such that the `rst_prolog`
3+
is added before the :mod: directive. Otherwise, the rendering will show as a
4+
paragraph instead of a header.
5+
16
:mod:`{{module}}`.{{objname}}
27
{{ underline }}==============
38

doc/templates/class_with_call.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
..
2+
The empty line below should not be removed. It is added such that the `rst_prolog`
3+
is added before the :mod: directive. Otherwise, the rendering will show as a
4+
paragraph instead of a header.
5+
16
:mod:`{{module}}`.{{objname}}
27
{{ underline }}===============
38

doc/templates/deprecated_class.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
..
2+
The empty line below should not be removed. It is added such that the `rst_prolog`
3+
is added before the :mod: directive. Otherwise, the rendering will show as a
4+
paragraph instead of a header.
5+
16
:mod:`{{module}}`.{{objname}}
27
{{ underline }}==============
38

doc/templates/deprecated_class_with_call.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
..
2+
The empty line below should not be removed. It is added such that the `rst_prolog`
3+
is added before the :mod: directive. Otherwise, the rendering will show as a
4+
paragraph instead of a header.
5+
16
:mod:`{{module}}`.{{objname}}
27
{{ underline }}===============
38

doc/templates/deprecated_class_without_init.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
..
2+
The empty line below should not be removed. It is added such that the `rst_prolog`
3+
is added before the :mod: directive. Otherwise, the rendering will show as a
4+
paragraph instead of a header.
5+
16
:mod:`{{module}}`.{{objname}}
27
{{ underline }}==============
38

doc/templates/deprecated_function.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
..
2+
The empty line below should not be removed. It is added such that the `rst_prolog`
3+
is added before the :mod: directive. Otherwise, the rendering will show as a
4+
paragraph instead of a header.
5+
16
:mod:`{{module}}`.{{objname}}
27
{{ underline }}====================
38

doc/templates/display_all_class_methods.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
..
2+
The empty line below should not be removed. It is added such that the `rst_prolog`
3+
is added before the :mod: directive. Otherwise, the rendering will show as a
4+
paragraph instead of a header.
5+
16
:mod:`{{module}}`.{{objname}}
27
{{ underline }}==============
38

doc/templates/display_only_from_estimator.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
..
2+
The empty line below should not be removed. It is added such that the `rst_prolog`
3+
is added before the :mod: directive. Otherwise, the rendering will show as a
4+
paragraph instead of a header.
5+
16
:mod:`{{module}}`.{{objname}}
27
{{ underline }}==============
38

doc/templates/function.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
..
2+
The empty line below should not be removed. It is added such that the `rst_prolog`
3+
is added before the :mod: directive. Otherwise, the rendering will show as a
4+
paragraph instead of a header.
5+
16
:mod:`{{module}}`.{{objname}}
27
{{ underline }}====================
38

0 commit comments

Comments
 (0)