Skip to content

Commit

Permalink
Add panels examples to docs (#7)
Browse files Browse the repository at this point in the history
* Sphinx panels examples to docs

* Add panels examples
  • Loading branch information
nonhermitian authored Nov 9, 2020
1 parent 2b09964 commit 00b170e
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
'sphinx.ext.viewcode',
'sphinx.ext.extlinks',
'jupyter_sphinx',
'sphinx_panels',
'sphinx_autodoc_typehints',
]

Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Qiskit sphinx theme |version| documentation
Functions <functions>
Classes <classes>
Jupyter <jupyter>
Panels <panels>


.. Hiding - Indices and tables
Expand Down
81 changes: 81 additions & 0 deletions docs/panels.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
======
Panels
======

Basic panels
============

.. panels::
:container: container-lg pb-3
:column: col-lg-4 col-md-4 col-sm-6 col-xs-12 p-2

panel1
---
panel2
---
panel3
---
:column: col-lg-12 p-2
panel4

Dropdowns
=========

.. dropdown:: Hey, I am a dropdown

Lots of cool stuff can be done with dropdowns!


.. dropdown:: My content will fade in
:animate: fade-in

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Tabs
====

.. tabbed:: Tab 1

Tab 1 content

.. tabbed:: Tab 2
:class-content: pl-1 bg-primary

Tab 2 content


Cards
=====


.. panels::
:container: container-lg
:column: col-lg-6 p-2
:img-top-cls: pl-2 pr-2

---
:img-top: images/yi_jing_01_chien.jpg


This is an example card.

More content here.

++++++
:badge:`Example,badge-primary badge-pill`


---
:img-top: images/yi_jing_01_chien.jpg

This is an example card.

:math:`\sin^{2}(x)+\cos^{2}(x) = 1`

++++++
:badge:`Example,badge-primary badge-pill`
:badge:`Tutorial,badge-success badge-pill`

0 comments on commit 00b170e

Please sign in to comment.