Skip to content

Commit

Permalink
Docs: Add example notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ameyer-rigetti committed Jul 21, 2021
1 parent de2ceb3 commit 9ac0be8
Show file tree
Hide file tree
Showing 7 changed files with 1,385 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,4 @@ Dependencies are managed with [Poetry](https://python-poetry.org/) so you need t
1. Check style only: `make check-style`
1. Check types only: `make check-types`
1. Reformat all code (to make `check-style` pass): `make format`
1. Build documentation, serve locally, and watch for changes: `make watch-docs`
1. Build documentation, serve locally, and watch for changes: `make watch-docs` (requires `docs` extra: `poetry install -E docs`)
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"autoapi.extension",
"sphinx.ext.napoleon",
"myst_parser",
"nbsphinx",
"sphinx.ext.mathjax",
]

source_suffix = {
Expand Down Expand Up @@ -44,6 +46,7 @@
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]

myst_update_mathjax = False

# -- Options for HTML output -------------------------------------------------
html_theme = "furo"
Expand Down
336 changes: 336 additions & 0 deletions docs/examples/qaoa_pyquil.ipynb

Large diffs are not rendered by default.

713 changes: 713 additions & 0 deletions docs/examples/qaoa_qiskit.ipynb

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ This documentation supports light ☀️ and dark 🌙 modes and will automatica
:end-before: Development
```

```{toctree}
:maxdepth: 2
:caption: Examples
examples/qaoa_qiskit.ipynb
examples/qaoa_pyquil.ipynb
```

```{toctree}
:maxdepth: 2
:caption: API Reference
Expand Down
Loading

0 comments on commit 9ac0be8

Please sign in to comment.