This PR updates TryExamplesDirective to use the standard method of allowing custom css in Sphinx to customize the buttons as suggested by Carreau here. It also adds customization of min_height to the config file try_examples.json so that the minimum height can bet changed at runtime. An option has been given to the directive to set the specific height of the iframe container for the embedded notebook and the min_height option has been removed. The specific height overrides the minimum height set in try_examples.json. I've also attempted to improve the documentation, and have added an example_class option to the directive which can be targeted in custom css as suggested by Carreau.
Closes #122, #127
This PR updates
TryExamplesDirective
to use the standard method of allowing custom css in Sphinx to customize the buttons as suggested by Carreau here. It also adds customization ofmin_height
to the config filetry_examples.json
so that the minimum height can bet changed at runtime. An option has been given to the directive to set the specific height of the iframe container for the embedded notebook and themin_height
option has been removed. The specific height overrides the minimum height set intry_examples.json
. I've also attempted to improve the documentation, and have added anexample_class
option to the directive which can be targeted in custom css as suggested by Carreau.