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/configuring.rst
+15-2Lines changed: 15 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,9 @@ You can configure different parts of the theme.
8
8
Project-wide Configuration
9
9
==========================
10
10
11
+
HTML Theme Options
12
+
------------------
13
+
11
14
The theme's project-wide options are defined in the ``sphinx_rtd_theme/theme.conf``
12
15
file of this repository, and can be defined in your project's ``conf.py`` via
13
16
``html_theme_options``. For example:
@@ -21,6 +24,7 @@ file of this repository, and can be defined in your project's ``conf.py`` via
21
24
'display_version': True,
22
25
'prev_next_buttons_location': bottom,
23
26
'style_external_links': False,
27
+
'vcs_pageview_mode': '',
24
28
# Toc options
25
29
'collapse_navigation': False,
26
30
'sticky_navigation': True,
@@ -32,7 +36,7 @@ file of this repository, and can be defined in your project's ``conf.py`` via
32
36
The following options are available:
33
37
34
38
Base options
35
-
------------
39
+
~~~~~~~~~~~~
36
40
37
41
* ``canonical_url`` String. This will specify a `canonical url <https://en.wikipedia.org/wiki/Canonical_link_element>`__
38
42
to let search engines know they should give higher ranking to latest version of the docs.
@@ -42,9 +46,12 @@ Base options
42
46
* ``prev_next_buttons_location`` String. can take the value ``bottom``, ``top``, ``both`` , or ``None``
43
47
and will display the "Next" and "Previous" buttons accordingly.
44
48
* ``style_external_links`` Bool. Add an icon next to external links. Defaults to ``False``.
49
+
* ``vcs_pageview_mode`` String. Changes how to view files when using `display_github`, `display_gitlab`, etc.
50
+
When using Github or Gitlab this can be: `blob` (default), `edit`, or `raw`,
51
+
on Bitbucket, this can be either: `view` (default) or `edit`.
45
52
46
53
TOC Options
47
-
-----------
54
+
~~~~~~~~~~~
48
55
49
56
These effect how we display the Table of Contents in the side bar. You can read more about them here: http://www.sphinx-doc.org/en/stable/templating.html#toctree
50
57
@@ -55,6 +62,12 @@ These effect how we display the Table of Contents in the side bar. You can read
55
62
* ``includehidden`` Bool. Specifies if the sidebar includes toctrees marked with the ``:hidden:`` option
56
63
* ``titles_only`` Bool. If True, removes headers within a page from the sidebar.
0 commit comments