Skip to content

Commit feb1cfd

Browse files
committed
Render the FAQ local tables of contents for all media
Docutils 0.22 doesn't allow the contents directive to be used within an only directive, it complains: ERROR: The "contents" directive may not be used within topics or body elements.
1 parent 4601482 commit feb1cfd

File tree

7 files changed

+7
-21
lines changed

7 files changed

+7
-21
lines changed

Doc/faq/design.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
Design and History FAQ
33
======================
44

5-
.. only:: html
6-
7-
.. contents::
5+
.. contents::
86

97

108
Why does Python use indentation for grouping of statements?

Doc/faq/extending.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
Extending/Embedding FAQ
33
=======================
44

5-
.. only:: html
6-
7-
.. contents::
5+
.. contents::
86

97
.. highlight:: c
108

Doc/faq/general.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
General Python FAQ
55
==================
66

7-
.. only:: html
8-
9-
.. contents::
7+
.. contents::
108

119

1210
General Information

Doc/faq/gui.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
Graphic User Interface FAQ
55
==========================
66

7-
.. only:: html
8-
9-
.. contents::
7+
.. contents::
108

119
.. XXX need review for Python 3.
1210

Doc/faq/library.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
Library and Extension FAQ
55
=========================
66

7-
.. only:: html
8-
9-
.. contents::
7+
.. contents::
108

119
General Library Questions
1210
=========================

Doc/faq/programming.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
Programming FAQ
55
===============
66

7-
.. only:: html
8-
9-
.. contents::
7+
.. contents::
108

119
General Questions
1210
=================

Doc/faq/windows.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
Python on Windows FAQ
99
=====================
1010

11-
.. only:: html
12-
13-
.. contents::
11+
.. contents::
1412

1513
.. XXX need review for Python 3.
1614
XXX need review for Windows Vista/Seven?

0 commit comments

Comments
 (0)