Skip to content

Commit

Permalink
Include _static/images/logo.png so projects can use it instead of c…
Browse files Browse the repository at this point in the history
…opying `no_image.png` (#318)

Part of #262.

14 projects are copying around the same `no_image.png` file. It's
helpful so that you can set `nbsphinx_thumbnails` to point to it. This
PR adds the file to `qiskit_sphinx_theme` so that they can instead use
the standard file if they want.

They don't have to switch to this file. And repos can also still
override `images/logo.png` how they want, e.g. that Metal has it be a
Metal specific logo currently. Their override will take precedence.

--

Note that we already distribute `static/images/logo.svg`. But
`nbsphinx_thumbnails` doesn't work with an SVG.

--

This PR also removes `gallery.css` from the example docs. We don't use
`sphinx-gallery`, so this was a bad copy and paste.
  • Loading branch information
Eric-Arellano authored May 11, 2023
1 parent 20eda07 commit c22d017
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 197 deletions.
195 changes: 0 additions & 195 deletions example_docs/docs/_static/gallery.css

This file was deleted.

4 changes: 2 additions & 2 deletions example_docs/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
# This allows including custom CSS and HTML templates.
html_static_path = ['_static']
templates_path = ['_templates']
html_css_files = ['gallery.css']

# Sphinx should ignore these patterns when building.
exclude_patterns = ['_build', '**.ipynb_checkpoints']
Expand Down Expand Up @@ -101,5 +100,6 @@
# Settings for Jupyter notebooks.
nbsphinx_execute = "never"
nbsphinx_thumbnails = {
"sphinx_guide/notebook": "_static/no_image.png",
# Default image for thumbnails.
"**": "_static/images/logo.png",
}
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c22d017

Please sign in to comment.