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/version-dropdown.rst
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,12 @@ The switcher requires the following configuration steps:
29
29
30
30
Below is a more in-depth description of each of these configuration steps.
31
31
32
+
.. warning::
33
+
Modern web browsers do not allow loading data when the request is made from a page loaded via the ``file:`` protocol. This means that if you build your documentation locally and then directly open one of its pages in the browser, **the version switcher will not be allowed to load its JSON data source** and you'll end up with an empty switcher menu. Possible work-arounds are:
34
+
35
+
1. View the locally-built files through a local webserver (Python provides a builtin module for this: https://docs.python.org/3/library/http.server.html).
36
+
2. Disabling your browser's security settings (either by passing a command-line flag when launching the browser, or through a browser add-on).
37
+
32
38
33
39
Add a JSON file to define your switcher's versions
0 commit comments