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: src/jupyter_contrib_nbextensions/nbextensions/toc2/README.md
+29-11Lines changed: 29 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,10 @@
4
4
5
5
The toc2 extension enables to collect all running headers and display them in a floating window, as a sidebar or with a navigation menu. The extension is also draggable, resizable, collapsable, dockable and features automatic numerotation with unique links ids, and an optional toc cell. Sections of currently selected/edited or running cells are highlighted in the toc. Some minor diplay tweaks are also available (moving header tile/menus, widening cells); Finally, the toc can preserved when exporting to html.
- Display Table of Contents as a sidebar (otherwise as a floating window; default: true)
46
+
- Title of the sidebar/window (default: `Contents`)
40
47
- The maximum depth of headers to display on toc (with a default of 4)
41
48
- The state of the toc cell (default: false, ie not present)
49
+
- Title of the toc cell sidebar/window (default: `Table of Contents`)
42
50
- Add a navigation menu (default: true)
43
-
- Widening the display area to fit the browser window (may be useful with sidebar option; default: true)
51
+
- Widening the display area to fit the browser window (may be useful with sidebar option; default: true)
44
52
- The numbering of headers (true by default)
45
53
- Moving header title and menus on the left (default: true)
46
-
- Marking toc item of first header displayed on viewport when scrolling the notebook (default: true)
54
+
- Marking toc item of first header displayed on viewport when scrolling the notebook (default: true)
47
55
- Skipping h1 headers, useful if you want to use h1 as unnumbered notebook title (default: false)
48
-
- Customization of highlighting the title of currently selected/running sections.
56
+
- Customization of highlighting the title of currently selected/running sections.
49
57
- Customization of background, fonts, border and highlighting colors in the toc window and navigation menus (as third demo).
50
58
- Collapse/uncollapse ToC2 sections when collapsible_headings is used to collapse/uncollapse notebook sections (default: false).
51
59
52
-
The differents states and position of the floating window have reasonable defaults and can be modfied per notebook).
60
+
Some config settings are stored in notebook metadata, so that they can be
61
+
altered per-notebook, as well as setting the default in the configurator.
62
+
The differents states and position of the floating window have reasonable
63
+
defaults and can be modfied per notebook.
64
+
53
65
54
66
#### Demo with dark theme
55
67

@@ -121,6 +133,12 @@ This option requires the IPython kernel and is not present with other kernels.
121
133
- Support customization of background, fonts, border and highlighting colors in the toc window and navigation menus with PR [#969](https://github.com/ipython-contrib/jupyter_contrib_nbextensions/pull/969)
122
134
-@jfbercher, @louisabraham, @jcb91 July 2017. Add support for skipping h1
123
135
headings, enabling their use as unnumbered notebook titles
124
-
-@jcb91 with minor contributions by @jfbercher. August 2017. Make toc entries collapsible #1031 with optional synchronization with `collapsible_headings` + some small other tweaks.
125
-
-@jcb91 August 2017. Use amd structure for toc2.js
126
-
-@jfbercher August 2017. Add a mark to the currently displayed section in the table of contents window as user scrolls the notebook, cf #944.
136
+
-@jcb91 with minor contributions by @jfbercher. August 2017. Make toc entries collapsible #1031 with optional synchronization with `collapsible_headings` + some small other tweaks.
137
+
-@jcb91 August 2017. Use amd structure for toc2.js
138
+
-@jfbercher August 2017. Add a mark to the currently displayed section in the table of contents window as user scrolls the notebook, cf #944.
139
+
-@jcb91 October 2017,
140
+
+ correct toc tree construction
141
+
+ simplify toc cell processing
142
+
+ constrain draggable toc to the body
143
+
+ various bits of cleanup
144
+
+ add settings dialog for per-notebook metadata-stored settings
0 commit comments