Skip to content

Commit 31c9023

Browse files
committed
Demodocs: Use gloable section numbering
1 parent a2c0f30 commit 31c9023

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-4
lines changed

demo_docs/source/api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
:mod:`test_py_module`
44
*********************
55

6+
.. contents:: Table of Contents
7+
68
.. automodule:: test_py_module.test
79
:members:
810
:private-members:

demo_docs/source/demo.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ Paragraph Level Markup
88
**********************
99

1010
.. contents:: Table of Contents
11-
.. section-numbering::
12-
1311

1412
Inline Markup
1513
=============

demo_docs/source/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Contents
1212

1313
.. toctree::
1414
:maxdepth: 3
15+
:numbered:
1516
:caption: Syntax Constructs
1617

1718
structure
@@ -21,6 +22,7 @@ Contents
2122

2223
.. toctree::
2324
:maxdepth: 3
25+
:numbered:
2426
:caption: This is an incredibly long caption for a long menu
2527

2628
long

demo_docs/source/lists_tables.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Lists & Tables
44
**************
55

66
.. contents:: Table of Contents
7-
.. section-numbering::
87

98
Lists
109
=====

demo_docs/source/long.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
12
Long Sticky Nav
23
===============
34

5+
.. contents:: Table of Contents
6+
47
This section demonstrates how the 'sticky_navigation' setting behaves when the menu is very long. When this section is selected, it will make the menu and the main area scroll when you are at the top of the page.
58

69

demo_docs/source/structure.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Structural Elements
44
*******************
55

66
.. contents:: Table of Contents
7-
.. section-numbering::
87

98
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec lorem neque, interdum in ipsum nec,
109
finibus dictum velit. Ut eu efficitur arcu, id aliquam erat. In sit amet diam gravida, imperdiet tellus eu,

0 commit comments

Comments
 (0)