You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user_guide/configuring.rst
+25-5
Original file line number
Diff line number
Diff line change
@@ -332,8 +332,14 @@ Additionally, the screen-reader accessible label for this menu can be configured
332
332
}
333
333
334
334
335
-
Adding external links to your nav bar
336
-
=====================================
335
+
Header Navigation Bar
336
+
=====================
337
+
338
+
The header navigation bar is at the top of each page and contains top-level navigation across pages in your documentation, as well as extra links and components that you can add.
339
+
These sections cover a few things you can control with the Header Navigation Bar.
340
+
341
+
Add external links
342
+
------------------
337
343
338
344
You can add external links to your navigation bar. These will show up to the right
339
345
of your site's main links, and will have a small icon indicating that they point to
@@ -348,6 +354,23 @@ an external site. You can add external links to the nav bar like so:
348
354
]
349
355
}
350
356
357
+
358
+
Header dropdown links
359
+
---------------------
360
+
361
+
By default, this theme will display the first **five** navigation links in the header (including both top-level links and external links).
362
+
It will place the remaining header links in a **dropdown menu** titled "More".
363
+
This prevents the header links from taking up so much space that they crowd out the UI components or spill off screen.
364
+
365
+
To control how many header links are displayed before being placed in the dropdown, use the ``header_links_before_dropdown`` theme configuration variable.
366
+
For example, to change the number of displayed header links to be ``4`` instead of ``5``:abbr:
367
+
368
+
.. code-block:: python
369
+
370
+
html_theme_options = {
371
+
"header_links_before_dropdown": 4
372
+
}
373
+
351
374
Adding favicons
352
375
===============
353
376
@@ -450,9 +473,6 @@ To enable this behavior, set the ``show_nav_level`` value to 0, like below:
450
473
"show_nav_level": 0
451
474
}
452
475
453
-
454
-
455
-
456
476
You can only collapse your ``toctree`` items underneath their caption if a caption is defined for them!
457
477
If your ``toctree`` does not have a caption defined, then all of the pages underneath it will be displayed
458
478
(the same as the default theme behavior). See `the toctree documentation <https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-toctree>`_
0 commit comments