-
Notifications
You must be signed in to change notification settings - Fork 127
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
Use new Furo theme #1225
Use new Furo theme #1225
Changes from all commits
b1bdbbc
e930740
c4abfc7
390d79c
453e45e
2dca0a1
21494bf
2ba6109
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.nbsphinx-gallery { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); | ||
gap: 5px; | ||
margin-top: 1em; | ||
margin-bottom: 1em; | ||
} | ||
|
||
.nbsphinx-gallery>a { | ||
padding: 5px; | ||
border: 1px dotted currentColor; | ||
border-radius: 2px; | ||
text-align: center; | ||
} | ||
|
||
.nbsphinx-gallery>a:hover { | ||
border-style: solid; | ||
} | ||
|
||
.nbsphinx-gallery img { | ||
max-width: 100%; | ||
max-height: 100%; | ||
} | ||
|
||
.nbsphinx-gallery>a>div:first-child { | ||
display: flex; | ||
align-items: start; | ||
justify-content: center; | ||
height: 120px; | ||
margin-bottom: 5px; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
|
||
import os | ||
import sys | ||
import subprocess | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was an unused import. |
||
import datetime | ||
|
||
# -- Path setup -------------------------------------------------------------- | ||
|
@@ -36,9 +35,11 @@ | |
|
||
# -- Project information ----------------------------------------------------- | ||
# The short X.Y version | ||
version = "0.6" | ||
version = os.getenv("VERSION_STRING", "0.6") | ||
|
||
# The full version, including alpha/beta/rc tags | ||
release = "0.6.0" | ||
release = os.getenv("RELEASE_STRING", "0.6.0") | ||
|
||
project = "Qiskit Experiments" | ||
copyright = f"2021-{datetime.date.today().year}, Qiskit Development Team" # pylint: disable=redefined-builtin | ||
author = "Qiskit Development Team" | ||
|
@@ -65,10 +66,21 @@ | |
"autodoc_analysis", | ||
"autodoc_visualization", | ||
"jupyter_execute_custom", | ||
"sphinx_remove_toctrees", | ||
] | ||
|
||
# Remove stubs from the toctree by default because the full build is slow | ||
# This is turned off for docs deployment | ||
if not os.getenv("FULL_TOCTREE", None): | ||
remove_from_toctrees = ["stubs/*"] | ||
|
||
html_static_path = ["_static"] | ||
templates_path = ["_templates"] | ||
# Manually add the gallery CSS file for now | ||
# TODO: Figure out why the styling is not working by default | ||
html_css_files = [ | ||
"nbsphinx-gallery.css", | ||
] | ||
|
||
nbsphinx_timeout = 360 | ||
nbsphinx_execute = os.getenv("QISKIT_DOCS_BUILD_TUTORIALS", "never") | ||
|
@@ -137,34 +149,21 @@ | |
# package. Works only for the HTML builder currently. | ||
modindex_common_prefix = ["qiskit_experiments."] | ||
|
||
# -- Configuration for extlinks extension ------------------------------------ | ||
# Refer to https://www.sphinx-doc.org/en/master/usage/extensions/extlinks.html | ||
|
||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
|
||
# The theme to use for HTML and HTML Help pages. See the documentation for | ||
# a list of builtin themes. | ||
# | ||
html_theme = "qiskit_sphinx_theme" # use the theme in subdir 'theme' | ||
html_theme = "qiskit-ecosystem" | ||
|
||
coruscating marked this conversation as resolved.
Show resolved
Hide resolved
|
||
html_context = { | ||
"analytics_enabled": True, | ||
"expandable_sidebar": True, | ||
} | ||
|
||
html_title = f"{project} {release}" | ||
|
||
docs_url_prefix = "ecosystem/experiments" | ||
|
||
html_last_updated_fmt = "%Y/%m/%d" | ||
|
||
html_theme_options = { | ||
"logo_only": True, | ||
"display_version": True, | ||
"prev_next_buttons_location": "bottom", | ||
"style_external_links": True, | ||
} | ||
|
||
|
||
autoclass_content = "both" | ||
intersphinx_mapping = { | ||
"matplotlib": ("https://matplotlib.org/stable/", None), | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,22 +92,12 @@ We've divided up the documentation into four sections with different purposes: | |
|
||
To the API reference | ||
|
||
.. toctree:: | ||
:hidden: | ||
:caption: Tutorials | ||
|
||
All Tutorials <tutorials/index> | ||
tutorials/intro | ||
tutorials/getting_started | ||
Calibrations <tutorials/calibrations> | ||
Data Processor <tutorials/data_processor> | ||
Curve Analysis <tutorials/curve_analysis> | ||
Visualization <tutorials/visualization> | ||
Custom Experiments <tutorials/custom_experiment> | ||
|
||
.. toctree:: | ||
:hidden: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be hidden? Another option is to set There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
Qiskit Experiments Home <self> | ||
Getting Started <tutorials/getting_started> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding |
||
tutorials/index | ||
howtos/index | ||
manuals/index | ||
apidocs/index | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a comment explaining what's going on. Or even better, open a GitHub issue and link to it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a comment here: https://github.com/Qiskit-Extensions/qiskit-experiments/blob/2ba6109e11fc086855d8360ad173a04f094dc7d4/docs/conf.py#L80
I can write an issue too.