Skip to content

Commit 7302b4e

Browse files
authored
Merge pull request #1410 from jfbercher/toc2_update
[toc2] Updates
2 parents 7ce811a + 240ea8f commit 7302b4e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/jupyter_contrib_nbextensions/nbconvert_support/toc2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def _raw_mimetypes_default(self):
4949

5050
@property
5151
def default_config(self):
52-
c = Config({'ExtractOutputPreprocessor': {'enabled': True}})
52+
c = Config({'ExtractOutputPreprocessor': {'enabled': False}})
5353
# import here to avoid circular import
5454
from jupyter_contrib_nbextensions.nbconvert_support import (
5555
templates_directory)

src/jupyter_contrib_nbextensions/nbextensions/toc2/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,8 @@ This option requires the IPython kernel and is not present with other kernels.
142142
+ constrain draggable toc to the body
143143
+ various bits of cleanup
144144
+ add settings dialog for per-notebook metadata-stored settings
145+
- @jfbercher Feb 2018, Option to define a number to begin numbering with.
146+
- @jcb91 March 2018, Add controls for all per-notebook metadata options
147+
- @jfbercher December 2018, toc2 history. Moves into the toc2 history of jumps into the notebook, using the forward-back browser buttons.
148+
- @zthxxx, April 2018, fix toc2.js load failed with working in non-live notebook (with navigation menu enabled)
149+
- @jfbercher April 2018, Some export tuning

src/jupyter_contrib_nbextensions/templates/toc2.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
$( document ).ready(function(){
1919
2020
var cfg = {{ nb.get('metadata', {}).get('toc', {})|tojson|safe }};
21-
21+
cfg.navigate_menu=false;
2222
// fire the main function with these parameters
2323
require(['nbextensions/toc2/toc2'], function (toc2) {
2424
toc2.table_of_contents(cfg);

0 commit comments

Comments
 (0)