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

Adding popouts to the right #266

Closed
choldgraf opened this issue Aug 20, 2019 · 1 comment
Closed

Adding popouts to the right #266

choldgraf opened this issue Aug 20, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@choldgraf
Copy link
Collaborator

choldgraf commented Aug 20, 2019

In a lot of documents (e.g., the spacy documentation as well as the Tufte theme style), the content has a right sidebar with popout information (and in some cases, things like plots). For example:

image

We had one attempt at this that petered out here: #169

This is likely what'd be needed to make this work:

https://github.com/jupyter/jupyter-book/pull/169/files#diff-e5460f1334ce33770f3270e4f8f2e423R27

this issue is for keeping track of what was done in the hopes that we can get there eventually.

What would need to be done

  • Probably some restructuring of the CSS that defines the layout of the main page, to make sure things behaved as expected on different sizes
  • CSS rules to pop out cells with a certain tag into the right sidebar
  • CSS rules to pop out the outputs of some cells to the right sidebar
  • A decision about what to do with the right sidebar elements when the screen is too narrow
  • A way to prevent the TOC from totally blocking the sidebar (see below)

What to do about the Table of Contents?

One challenge with #169 was that the right TOC occluded the popouts, and we couldn't figure out a good way to merge the two together. One option would be to make the right TOC hidden by default, and shown with a hover. E.g., something like this:

Wrka1HLyVl

could be accomplished with just a few CSS rules. Then you could have the right popouts span much more of the space.

To do

@choldgraf choldgraf added the enhancement New feature or request label Aug 20, 2019
@choldgraf
Copy link
Collaborator Author

This is now done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant