jupyter-book icon indicating copy to clipboard operation
jupyter-book copied to clipboard

Logo expands to hide book title in sidebar

Open joelostblom opened this issue 2 years ago • 0 comments

Describe the bug

context When I create a book using this minimal _config.yml, the logo shows up as bigger than expected and covers the title in the side bar.

title: My sample book
author: The Jupyter Book Community
logo: logo.png
only_build_toc_files: true
execute:
  execute_notebooks: force

expectation I expected the logo to show up above the title and not cover it

bug Instead of the desired behavior:

image

I now see this:

image

No error shows up when building, but a few seemingly unrelated warnings:

$ jupyter-book build mybook
Running Jupyter-Book v0.15.1
Source Folder: /home/joel/proj/mds/DSCI_531_viz-1_instructors
Config Path: /home/joel/proj/mds/DSCI_531_viz-1_instructors/_config.yml
Output Path: /home/joel/proj/mds/DSCI_531_viz-1_instructors/_build/html
Running Sphinx v5.0.2
making output directory... done
[etoc] Changing master_doc to 'intro'
[etoc] Excluded 190 extra file(s) not in toc
myst v0.18.1: MdParserConfig(commonmark_only=False, gfm_only=False, enable_extensions=['colon_fence', 'dollarmath', 'linkify', 'substitution', 'tasklist'], disable_syntax=[], all_links_external=False, url_schemes=['mailto', 'http', 'https'], ref_domains=None, highlight_code_blocks=True, number_code_blocks=[], title_to_header=False, heading_anchors=None, heading_slug_func=None, footnote_transition=True, words_per_minute=200, sub_delimiters=('{', '}'), linkify_fuzzy_links=True, dmath_allow_labels=True, dmath_allow_space=True, dmath_allow_digits=True, dmath_double_inline=False, update_mathjax=True, mathjax_classes='tex2jax_process|mathjax_process|math|output_area')
myst-nb v0.17.2: NbParserConfig(custom_formats={}, metadata_key='mystnb', cell_metadata_key='mystnb', kernel_rgx_aliases={}, execution_mode='force', execution_cache_path='', execution_excludepatterns=[], execution_timeout=30, execution_in_temp=False, execution_allow_errors=False, execution_raise_on_error=False, execution_show_tb=False, merge_streams=False, render_plugin='default', remove_code_source=False, remove_code_outputs=False, code_prompt_show='Show code cell {type}', code_prompt_hide='Hide code cell {type}', number_source_lines=False, output_stderr='show', render_text_lexer='myst-ansi', render_error_lexer='ipythontb', render_image_options={}, render_figure_options={}, render_markdown_format='commonmark', output_folder='build', append_css=True, metadata_to_fm=False)
Using jupyter-cache at: /home/joel/proj/mds/DSCI_531_viz-1_instructors/_build/.jupyter_cache
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 4 source files that are out of date
updating environment: [new config] 4 added, 0 changed, 0 removed
/home/joel/proj/mds/DSCI_531_viz-1_instructors/lectures/1-intro-viz-altair-ggplot.md: Executing notebook using local CWD [mystnb]                           
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[IPKernelApp] WARNING | Unknown error in handling startup files:
/home/joel/proj/mds/DSCI_531_viz-1_instructors/lectures/2-data-types_graphical-marks_visual-encondings.md: Executing notebook using local CWD [mystnb]      
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[IPKernelApp] WARNING | Unknown error in handling startup files:
WARN Stacking is applied even though the aggregate function is non-summative ("mean").
WARN Stacking is applied even though the aggregate function is non-summative ("mean").
/home/joel/proj/mds/DSCI_531_viz-1_instructors/lectures/2-data-types_graphical-marks_visual-encondings.md: Executed notebook in 10.09 seconds [mystnb]
reading sources... [100%] lectures/faq                                                                                                                      
/home/joel/proj/mds/DSCI_531_viz-1_instructors/lectures/1-intro-viz-altair-ggplot.md: WARNING: Executing notebook failed: CellExecutionError [mystnb.exec]
/home/joel/proj/mds/DSCI_531_viz-1_instructors/lectures/1-intro-viz-altair-ggplot.md: WARNING: Notebook exception traceback saved in: /home/joel/proj/mds/DSCI_531_viz-1_instructors/_build/html/reports/lectures/1-intro-viz-altair-ggplot.err.log [mystnb.exec]
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] lectures/faq                                                                                                                       
generating indices... genindex done
writing additional pages... search done
copying images... [100%] _build/jupyter_execute/b3b38c2ab2127a063df830accd3becd245e7ba09908411785e5ee3a2eb813346.png                                        
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
[etoc] missing index.html written as redirect to 'intro.html'
build succeeded, 2 warnings.

The HTML pages are in _build/html.

problem This is a problem because it is helpful to have the title of the page in the side bar and the giant logo does not look very appealing.

Reproduce the bug

I tried this with a completely new book as well and same results:

jupyter-book create mybook
jupyter-book build mybook

List your environment

Jupyter Book      : 0.15.1
External ToC      : 0.3.1
MyST-Parser       : 0.18.1
MyST-NB           : 0.17.2
Sphinx Book Theme : 1.0.1
Jupyter-Cache     : 0.6.1
NbClient          : 0.7.4

Python 3.11, Ubuntu 22.04

joelostblom avatar Sep 29 '23 16:09 joelostblom