Skip to content

Commit

Permalink
Update Sphinx theme (#693)
Browse files Browse the repository at this point in the history
* Update Sphinx theme

Co-authored-by: Frank Harkins <36071638+frankharkins@users.noreply.github.com>

* Fix docs heading levels

---------

Co-authored-by: Frank Harkins <36071638+frankharkins@users.noreply.github.com>
Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 16, 2023
1 parent 92977fe commit 17a6f85
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 29 deletions.
15 changes: 2 additions & 13 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,19 +177,8 @@

# -- Options for HTML output -------------------------------------------------

html_theme = "qiskit_sphinx_theme"
html_theme_options = {
"logo_only": False,
"display_version": True,
"prev_next_buttons_location": "bottom",
"style_external_links": False,
# Toc options
"collapse_navigation": True,
"sticky_navigation": True,
"navigation_depth": 4,
"includehidden": True,
"titles_only": False,
}
html_theme = "qiskit-ecosystem"
html_title = f"{project} {release}"

intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
Expand Down
6 changes: 3 additions & 3 deletions qiskit_machine_learning/algorithms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
.. currentmodule:: qiskit_machine_learning.algorithms
Machine Learning Base Classes
=============================
-----------------------------
.. autosummary::
:toctree: ../stubs/
Expand All @@ -30,7 +30,7 @@
SerializableModelMixin
Machine Learning Objective Functions
====================================
------------------------------------
.. autosummary::
:toctree: ../stubs/
Expand All @@ -41,7 +41,7 @@
OneHotObjectiveFunction
Algorithms
==========
----------
Classifiers
+++++++++++
Expand Down
4 changes: 2 additions & 2 deletions qiskit_machine_learning/circuit/library/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
.. currentmodule:: qiskit_machine_learning.circuit.library
Feature Maps
============
------------
.. autosummary::
:toctree: ../stubs/
Expand All @@ -30,7 +30,7 @@
RawFeatureVector
Helper Circuits
===============
---------------
.. autosummary::
:toctree: ../stubs/
Expand Down
2 changes: 1 addition & 1 deletion qiskit_machine_learning/connectors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
.. currentmodule:: qiskit_machine_learning.connectors
Connectors
======================
----------------------
.. autosummary::
:toctree: ../stubs/
Expand Down
2 changes: 1 addition & 1 deletion qiskit_machine_learning/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
.. currentmodule:: qiskit_machine_learning.datasets
Datasets
========
--------
.. autosummary::
:toctree: ../stubs/
Expand Down
4 changes: 2 additions & 2 deletions qiskit_machine_learning/kernels/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
.. currentmodule:: qiskit_machine_learning.kernels
Quantum Kernels
===============
---------------
.. autosummary::
:toctree: ../stubs/
Expand All @@ -50,7 +50,7 @@
TrainableFidelityStatevectorKernel
Submodules
==========
----------
.. autosummary::
:toctree:
Expand Down
6 changes: 3 additions & 3 deletions qiskit_machine_learning/neural_networks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
.. currentmodule:: qiskit_machine_learning.neural_networks
Neural Network Base Classes
===========================
---------------------------
.. autosummary::
:toctree: ../stubs/
Expand All @@ -37,7 +37,7 @@
NeuralNetwork
Neural Networks
===============
---------------
.. autosummary::
:toctree: ../stubs/
Expand All @@ -47,7 +47,7 @@
SamplerQNN
Neural Network Metrics
======================
----------------------
.. autosummary::
:toctree: ../stubs/
Expand Down
2 changes: 1 addition & 1 deletion qiskit_machine_learning/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
.. currentmodule:: qiskit_machine_learning.utils
Utilities
==========
----------
.. autosummary::
:toctree:
Expand Down
4 changes: 2 additions & 2 deletions qiskit_machine_learning/utils/loss_functions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
.. currentmodule:: qiskit_machine_learning.utils.loss_functions
Loss Function Base Class
========================
------------------------
.. autosummary::
:toctree: ../stubs/
Expand All @@ -30,7 +30,7 @@
KernelLoss
Loss Functions
==============
--------------
.. autosummary::
:toctree: ../stubs/
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ qiskit-aer>=0.11.2
mypy>=0.981
mypy-extensions>=0.4.3
nbsphinx
qiskit_sphinx_theme~=1.12.0
qiskit_sphinx_theme~=1.16.0

0 comments on commit 17a6f85

Please sign in to comment.