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/layout.rst
+21-2
Original file line number
Diff line number
Diff line change
@@ -192,8 +192,9 @@ which they appear. This page describes the major areas that you can customize.
192
192
Header / Navigation Bar
193
193
=======================
194
194
195
-
The header is at the top of the page above all other content, and contains site-level information.
195
+
Located in ``sections/header.html``.
196
196
197
+
The header is at the top of the page above all other content, and contains site-level information.
197
198
198
199
Header sections
199
200
---------------
@@ -264,14 +265,23 @@ If you'd like these items to snap to the right of the page, use this configurati
264
265
Article Header
265
266
==============
266
267
268
+
Located in ``sections/header-article.html``.
269
+
267
270
The article header is a narrow bar just above the article's content.
268
-
It does not contain anything immediately viewable to the reader, but is kept as a placeholder in case theme developers wish to re-use it in the future.
271
+
There are two sub-sections that can have component templates added to them:
272
+
273
+
- ``article_header_start`` is aligned to the beginning (left) of the article header.
274
+
By default, this section has the ``breadcrumbs.html`` component which displays links to parent pages of the current page.
275
+
- ``article_header_end`` is aligned to the end (right) of the article header.
276
+
By default, this section is empty.
269
277
270
278
.. _layout-sidebar-primary:
271
279
272
280
Primary sidebar (left)
273
281
======================
274
282
283
+
Located in ``sections/sidebar-primary.html``.
284
+
275
285
The primary sidebar is just to the left of a page's main content.
276
286
It is primarily used for between-section navigation.
277
287
By default it will show links to any sublings / children of the current active top-level section (corresponding to links in your header navigation bar).
@@ -358,6 +368,8 @@ use this pattern:
358
368
Footer Content
359
369
==============
360
370
371
+
Located in ``sections/footer-content.html``.
372
+
361
373
The footer content is a narrow bar spanning the article’s content and secondary sidebar.
362
374
It does not contain anything immediately viewable to the reader, but is kept as a placeholder in case theme developers wish to re-use it in the future.
363
375
@@ -367,6 +379,8 @@ It does not contain anything immediately viewable to the reader, but is kept as
367
379
Secondary Sidebar (right)
368
380
=========================
369
381
382
+
Located in ``sections/sidebar-secondary.html``.
383
+
370
384
The in-page sidebar is just to the right of a page's article content, and is
371
385
configured in ``conf.py`` with ``html_theme_options['secondary_sidebar_items']``.
372
386
@@ -387,6 +401,8 @@ To learn how to further customize or remove the secondary sidebar, please check
387
401
Article Footer
388
402
==============
389
403
404
+
Located in ``sections/footer-article.html``.
405
+
390
406
The article footer exists just below your page's article, and is primarily used for navigating between adjacent sections / pages.
391
407
392
408
Hide the previous and next buttons
@@ -406,6 +422,8 @@ at the bottom. You can hide these buttons with the following configuration:
406
422
Footer
407
423
======
408
424
425
+
Located in ``sections/footer.html``.
426
+
409
427
The footer is just below a page’s main content, and is configured in ``conf.py``
410
428
with ``html_theme_options['footer_items']``.
411
429
@@ -451,6 +469,7 @@ will be named accordingly).
451
469
452
470
.. refer to files in: src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/
0 commit comments