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

A plugin to hide the input cells #298

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SuryaSankar
Copy link

No description provided.

@ralsina
Copy link
Member

ralsina commented Feb 14, 2019

Isn't this the same as adding that CSS in conf.py?

@SuryaSankar
Copy link
Author

I wasn't aware that there was a method to add CSS in conf.py. The documentation indicated that the way to insert css snippets common across all themes was to use site.template_hoooks['extra_head']. So tried this approach, so that the same will work on all themes.

I am trying to create multiple sites using Nikola. Will be nice if I can just enable this functionality using nikola plugin -i hide_input_cells instead of having to edit a file in every project.

@@ -0,0 +1,20 @@
from __future__ import unicode_literals
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We recommend adding a license snippet to all plugins.

"""
<!--Code inserted by HideInputCells -->
<style type="text/css">
div.input {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those selectors feel too wide, are you sure you can’t use something that would only work on Jupyter notebooks and not all potential div.inputs and div.prompts out there?

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.

3 participants