Skip to content

Commit 820ee5e

Browse files
committed
DOC: hide main index by default, add instructions
1 parent d2111ea commit 820ee5e

2 files changed

Lines changed: 44 additions & 1 deletion

File tree

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070

7171
html_show_copyright = False
7272

73-
html_permalinks_icon = '§'
73+
html_permalinks_icon = '#'
7474

7575
html_favicon = 'favicon.svg'
7676

doc/index.rst

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
----
44

5+
.. raw:: html
6+
7+
<details>
8+
<summary>click here to see full table of contents</summary>
9+
510
.. toctree::
611

712
installation
@@ -15,3 +20,41 @@
1520
.. only:: html
1621

1722
:ref:`genindex`
23+
24+
.. raw:: html
25+
26+
</details>
27+
28+
.. only:: html
29+
30+
.. admonition:: How To Navigate This Site
31+
32+
Use the *next* and *previous* links at the top and the bottom of each page
33+
to flip through the pages.
34+
Alternatively, you can use the right and left arrow keys
35+
on your keyboard.
36+
Some additional keyboard shortcuts
37+
are provided via the `accesskey feature`__:
38+
:kbd:`n` next,
39+
:kbd:`p` previous,
40+
:kbd:`u` up (= to the parent page),
41+
:kbd:`i` index,
42+
:kbd:`s` search and
43+
:kbd:`m` menu (= open/close sidebar).
44+
45+
__ https://developer.mozilla.org/en-US/docs/
46+
Web/HTML/Global_attributes/accesskey
47+
48+
Click on the `hamburger button`__ in the topbar
49+
to open and close the sidebar.
50+
The width of the sidebar can be adjusted by dragging its border.
51+
Click on the title in the topbar to scroll to the top of the page,
52+
if already at the top, go "up" to the parent page
53+
(eventually ending up on this very page).
54+
55+
__ https://en.wikipedia.org/wiki/Hamburger_button
56+
57+
On *touch-enabled* devices:
58+
Tap at the top of the page to show the topbar (if it was scrolled away);
59+
swipe from the left edge to show the sidebar,
60+
swipe towards the left to hide it.

0 commit comments

Comments
 (0)