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

✨ NEW: Add logo_only theme option #349

Merged
merged 7 commits into from
Jun 29, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,12 @@ html_favicon = "path/to/favicon.ico"
These will be placed in the top-left of your page.


To **remove the site title** below the logo, add this line in `conf.py`:

```python
logo_only = True
```

## Control the depth of the left sidebar lists to expand

You can control the level of toc items in the left sidebar to remain expanded,
Expand Down
2 changes: 1 addition & 1 deletion sphinx_book_theme/_templates/sidebar-logo.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% if logo %}
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="logo">
{% endif %}
{% if docstitle %}
{% if docstitle and not theme_logo_only %}
<h1 class="site-logo" id="site-title">{{ docstitle }}</h1>
{% endif %}
</a>
Expand Down
1 change: 1 addition & 0 deletions sphinx_book_theme/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ repository_url =
repository_branch =
launch_buttons = {}
home_page_in_toc = False
logo_only =
choldgraf marked this conversation as resolved.
Show resolved Hide resolved
navbar_footer_text =
extra_navbar = Theme by the <a href="https://ebp.jupyterbook.org">Executable Book Project</a>
extra_footer =
Expand Down