10000 DOC: dropdowns in userguide · matplotlib/matplotlib@c784fe2 · GitHub
[go: up one dir, main page]

Skip to content

Commit c784fe2

Browse files
committed
DOC: dropdowns in userguide
1 parent 8c3736f commit c784fe2

File tree

2 files changed

+94
-19
lines changed

2 files changed

+94
-19
lines changed

doc/_static/mpl.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,14 @@ table.property-table td {
9999
display: inline-block;
100100
margin: 0 0.5em;
101101
}
102+
103+
/* Removes title from toc in dropdwon */
104+
105+
.sd-dropdown>.sd-card-body>.toctree-wrapper>ul>.toctree-l1>a{
106+
display: none
107+
}
108+
109+
.sd-dropdown>.sd-card-body>.toctree-wrapper>ul>.toctree-l1>ul{
110+
list-style:none;
111+
padding-inline-start:0em;
112+
}

doc/users/index.rst

Lines changed: 83 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,102 @@
44

55

66
###########
7-
Users guide
7+
User guide
88
###########
99

1010
General
1111
#######
1212

13-
.. toctree::
14-
:maxdepth: 2
13+
.. dropdown:: Getting Started
14+
15+
.. toctree::
16+
:maxdepth: 2
17+
18+
getting_started/index.rst
19+
20+
.. dropdown:: Installation
21+
22+
.. toctree::
23+
:maxdepth: 2
24+
25+
installing/index.rst
26+
27+
.. dropdown:: Guide to Matplotlib
28+
29+
.. toctree::
30+
:maxdepth: 2
31+
32+
explain/index.rst
33+
34+
35+
.. dropdown:: Troubleshooting
36+
37+
.. toctree::
38+
:maxdepth: 2
39+
40+
faq/index.rst
41+
42+
.. dropdown:: External Resources
43+
44+
.. toctree::
45+
:maxdepth: 2
46+
47+
resources/index.rst
48+
49+
`User Contributed Packages <https://matplotlib.org/mpl-third-party/>`_
1550

16-
getting_started/index.rst
17-
installing/index.rst
18-
explain/index.rst
19-
faq/index.rst
20-
resources/index.rst
2151

2252
Tutorials and examples
2353
######################
54+
.. dropdown:: Plot Types
55+
56+
.. toctree::
57+
:maxdepth: 2
2458

25-
.. toctree::
26-
:maxdepth: 1
59+
../plot_types/index.rst
60+
61+
.. dropdown:: Tutorials
62+
63+
.. toctree::
64+
:maxdepth: 2
65+
66+
../tutorials/index.rst
67+
68+
.. dropdown:: Example Gallery
69+
70+
.. toctree::
71+
:maxdepth: 2
72+
73+
../gallery/index.rst
2774

28-
../plot_types/index.rst
29-
../tutorials/index.rst
30-
../gallery/index.rst
3175

3276
Reference
3377
#########
3478

35-
.. toctree::
36-
:maxdepth: 2
79+
.. dropdown:: API Reference
80+
81+
.. toctree::
82+
:maxdepth: 2
83+
84+
../api/index.rst
85+
86+
.. dropdown:: Contributing Guide
87+
88+
.. toctree::
89+
:maxdepth: 2
90+
91+
../devel/index.rst
92+
93+
.. dropdown:: Project Information
94+
95+
.. toctree::
96+
:maxdepth: 2
97+
98+
project/index.rst
99+
100+
.. dropdown:: Release Notes
101+
102+
.. toctree::
103+
:maxdepth: 2
37104

38-
../api/index.rst
39-
../devel/index.rst
40-
project/index.rst
41-
release_notes.rst
105+
release_notes.rst

0 commit comments

Comments
 (0)
0