Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Toc2] Scrolling: update a mark in TOC to currently displayed section #1057

Closed
wants to merge 36 commits into from

Conversation

jfbercher
Copy link
Member

This adds support for displaying a small mark at the left of the toc item corresponding to the first header displayed in notebook window. The mark moves as the notebook is scrolled. This was an enhancement request in #944.
Two parameters have been added to the configuration: one for enabling this behavior, the second for altering the color of the mark.
Export have been adapted to preserve this scrolling indicator when exporting the notebook to html.
demo_scroll_collapse

Other modifications include

  • a small rework of configuration load
  • colors are defined in css in addition to being adjusted in nbextension-configurator, so as to present decent defaults when exporting to html.

jcb91 and others added 30 commits August 16, 2017 19:47
by processing them in reverse order
[codefolding] fix restoration of nested folds
We use a synchronous method for detecting the live notebook,
otherwise we run into various timing issues
since it's only used there anyway
…s of toc2

this is accomplished by defining a window.table_of_contents function
synchronously in the first pass of the file, so that it can be called by
subsequent scripts in a page.
to cater for malformed exported notebooks
Update yaml files for 5.x compatible nbextensions
Add sound, sticky options to notify plugin
which was still using the old template name
[toc2] use amd structure to avoid polluting the global namespace
to avoid reloading (from server!) the same config file for each nbextension.
In most cases this also means we don't need to require the 'services/config' module any longer.
@jfbercher
Copy link
Member Author

ok. There are two many conflicts in my attempt to rebase on current master. Closing this PR and opening a new one will save time for me.

@jfbercher jfbercher closed this Aug 28, 2017
@jfbercher jfbercher deleted the toc2 branch August 28, 2017 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants