Skip to content

Commit

Permalink
add test and codacy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Jul 23, 2019
1 parent 5154f46 commit 6e56fc4
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
5 changes: 1 addition & 4 deletions ipypublish/sphinx/notebook/css/nb_cells.css
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,7 @@ div.nbinput-toggle-all {
display: inline-block;
cursor: pointer;
min-width: 7ex;
padding-left: 0.4em;
padding-right: 0.4em;
padding-top: 0.2em;
padding-bottom: 0.2em;
padding: 0.2em 0.4em 0.2em 0.4em;
margin-bottom: 2ex;
border: 1px solid #000;
border-radius: 15px;
Expand Down
2 changes: 1 addition & 1 deletion ipypublish/sphinx/notebook/js/toggle_code.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $(function () {
} else {
$(".toggle-nbinput").removeClass("open");
$(".input_area").hide("400");
};
}
});

});
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. nbinput-toggle-all:: NbInput Toggle All

.. nbinput:: ipython3
:execution-count: 3
:no-output:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
- body
role: main
4_children:
- 1_tag: div
2_data:
- ''
- NbInput Toggle All
3_attributes:
class:
- container
- docutils
- nbinput-toggle-all
- 1_tag: div
3_attributes:
class:
Expand Down
10 changes: 10 additions & 0 deletions ipypublish/sphinx/tests/test_notebook/test_cell_decoration_v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
- body
role: main
4_children:
- 1_tag: div
3_attributes:
class:
- container
- docutils
- nbinput-toggle-all
4_children:
- 1_tag: p
2_data:
- NbInput Toggle All
- 1_tag: div
3_attributes:
class:
Expand Down

0 comments on commit 6e56fc4

Please sign in to comment.