Skip to content

Commit

Permalink
Merge the two themes
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Arellano committed Dec 5, 2023
1 parent bb08fb7 commit 35a7790
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 51 deletions.
2 changes: 1 addition & 1 deletion src/qiskit_sphinx_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def setup(app: sphinx.application.Sphinx) -> dict[str, bool]:
translations.setup(app)

app.add_html_theme("qiskit", _get_theme_absolute_path("theme/qiskit-sphinx-theme"))
app.add_html_theme("qiskit-ecosystem", _get_theme_absolute_path("ecosystem"))
app.add_html_theme("qiskit-ecosystem", _get_theme_absolute_path("theme/qiskit-sphinx-theme"))

app.connect("config-inited", activate_furo)
app.connect("html-page-context", remove_thebe_if_not_needed)
Expand Down
2 changes: 1 addition & 1 deletion src/qiskit_sphinx_theme/assets/styles/_colors.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
body {
// Define the Carbon color schemes from
// Define the Carbon color schemes from
// https://github.com/carbon-design-system/carbon/blob/v10/packages/colors/src/colors.js
//
// Projects can override `--color-brand-primary` to whatever they want.
Expand Down
11 changes: 11 additions & 0 deletions src/qiskit_sphinx_theme/assets/styles/_left-sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ body {
text-transform: unset;
}


// ------------------------------------------------------------------------------
// Logos
// ------------------------------------------------------------------------------

// Furo only sets `max-width` to 100%, and height stays at `auto`. That results in
// logos appearing small in the in the left sidebar.
.sidebar-logo {
width: 100%;
}

// --------------------------------------------------------------------------------------
// Common config for Translations & Previous Releases
// --------------------------------------------------------------------------------------
Expand Down

This file was deleted.

31 changes: 0 additions & 31 deletions src/qiskit_sphinx_theme/ecosystem/theme.conf

This file was deleted.

4 changes: 4 additions & 0 deletions src/qiskit_sphinx_theme/theme/qiskit-sphinx-theme/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ inherit = furo
stylesheet = styles/qiskit-sphinx-theme.css

sidebars =
custom_templates/sidebar_brand.html,
sidebar/search.html,
sidebar/scroll-start.html,
sidebar/navigation.html,
custom_templates/sidebar_version_list.html,
sidebar/scroll-end.html,
custom_templates/sidebar_languages.html

[options]
disable_ecosystem_logo =
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 35a7790

Please sign in to comment.