|
2 | 2 | Configuration
|
3 | 3 | *************
|
4 | 4 |
|
5 |
| -TODO |
| 5 | +There are a number of options for configuring your site's look and feel. |
| 6 | +All configuration options are passed with the ``html_theme_options`` variable |
| 7 | +in your ``conf.py`` file. This is a dictionary with ``key: val`` pairs that |
| 8 | +you can configure in various ways. This page describes the options available to you. |
| 9 | + |
| 10 | +Configure social media buttons |
| 11 | +============================== |
| 12 | + |
| 13 | +If you'd like social media buttons to show up to the right of your nav bar, use the |
| 14 | +following configuration: |
| 15 | + |
| 16 | +.. code:: python |
| 17 | +
|
| 18 | + html_theme_options: { |
| 19 | + "github_url": "https://github.com/<your-org>/<your-repo>", |
| 20 | + "twitter_url": "https://twitter.com/<your-handle>", |
| 21 | + } |
| 22 | +
|
| 23 | +Adding external links to your nav bar |
| 24 | +===================================== |
| 25 | + |
| 26 | +You can add external links to your navigation bar. These will show up to the right |
| 27 | +of your site's main links, and will have a small icon indicating that they point to |
| 28 | +an external site. You can add external links to the nav bar like so: |
| 29 | + |
| 30 | +.. code:: python |
| 31 | +
|
| 32 | + html_theme_options: { |
| 33 | + "external_links": [ |
| 34 | + {"name": "link-one-name", "url": "https://<link-one>"}, |
| 35 | + {"name": "link-two-name", "url": "https://<link-two>"} |
| 36 | + ] |
| 37 | + } |
| 38 | +
|
| 39 | +
|
| 40 | +Hiding the previous and next buttons |
| 41 | +==================================== |
| 42 | + |
| 43 | +By default, each page of your site will have "previous" and "next" buttons |
| 44 | +at the bottom. You can hide these buttons with the following configuration: |
| 45 | + |
| 46 | +.. code:: python |
| 47 | +
|
| 48 | + html_theme_options: { |
| 49 | + "show_prev_next": False |
| 50 | + } |
0 commit comments