Skip to content

Commit

Permalink
Add notebooks to docs (#20)
Browse files Browse the repository at this point in the history
* Changed settings to add notebooks in docs

* Added Clifford RB notebook to docs

* Removed notebook from old location

* Reran notebook

* Max depth of headings to 1

* Adapted heading levels in notebook

* Update changelog

* Add IQM logo file

It is used by Sphinxh for documentation builds

* Corrected link in changelog

---------

Co-authored-by: Ricardas <ricardas.brazinskas@meetiqm.com>
  • Loading branch information
a-auer and rbrazinskas authored Dec 17, 2024
1 parent b177630 commit 4571e7b
Show file tree
Hide file tree
Showing 9 changed files with 493 additions and 205 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ version.txt

/Outputs/
/tests/Outputs/
/examples/Outputs/*
/examples/Outputs/*

# Exceptions
!logo.png
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Changelog
=========

Version 2.2
===========
* Added Clifford RB example notebook to docs. `#20 <https://github.com/iqm-finland/iqm-benchmarks/pull/20>`_

Version 2.1
===========
* Fixed bug in RB plots for individual decays.
Expand Down
Binary file added docs/_static/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
'sphinx.ext.todo',
'sphinx.ext.extlinks',
'sphinx.ext.intersphinx',
'myst_parser'
"myst_nb",
]

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -162,6 +162,9 @@
'mr': ('https://github.com/iqm-finland/iqm-benchmarks/pull/%s', 'MR '),
}

# -- Options for MyST-NB ---------------------------------------------------------
nb_execution_mode = 'off'


# -- Options for sphinxcontrib.bibtex -------------------------------------------------

Expand Down
472 changes: 472 additions & 0 deletions docs/example_clifford_rb.ipynb

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/examples.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Examples
########

.. toctree::
:maxdepth: 1

example_clifford_rb
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Contents
:maxdepth: 2

readme
examples
API
license

Expand Down
203 changes: 0 additions & 203 deletions examples/example_clifford_rb.ipynb

This file was deleted.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ dependencies = [
"pycurl >= 7.45.3, < 8.0",
"xarray >= 2024.6.0, < 2025.0.0",
"types-pycurl",
"myst-nb == 1.1.0",
]

[project.urls]
Expand Down

0 comments on commit 4571e7b

Please sign in to comment.