Skip to content

Commit

Permalink
update templates folder
Browse files Browse the repository at this point in the history
  • Loading branch information
josh146 committed Apr 15, 2020
1 parent e56491c commit dfba326
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 30 deletions.
2 changes: 1 addition & 1 deletion doc/_templates/autosummary/base.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ fullname | replace("pennylane", "qml") | escape | underline}}
{{ fullname | escape | underline}}

.. currentmodule:: {{ module }}

Expand Down
2 changes: 1 addition & 1 deletion doc/_templates/autosummary/class.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ fullname | replace("pennylane", "qml") }}
{{ fullname }}
{{ underline }}

.. autoclass:: {{ fullname }}
Expand Down
2 changes: 1 addition & 1 deletion doc/_templates/autosummary/module.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ fullname | replace("pennylane", "qml") | escape | underline}}
{{ fullname | escape | underline}}

.. automodule:: {{ fullname }}

Expand Down
11 changes: 2 additions & 9 deletions doc/_templates/autosummary_core/base.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@
.. include:: {{ referencefile }}
{% endif %}

{% if module.split(".")[1:] | length >= 1 %}
{% set mod = module.split(".")[1:] | join(".") %}
{% set mod = "qml." + mod %}
{% else %}
{% set mod = "qml" %}
{% endif %}

{{ mod }}.{{ objname }}
={% for i in range(mod|length) %}={% endfor %}{{ underline }}
{{ module }}.{{ objname }}
={% for i in range(module|length) %}={% endfor %}{{ underline }}

.. currentmodule:: {{ module }}

Expand Down
10 changes: 2 additions & 8 deletions doc/_templates/autosummary_core/class.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@
.. include:: {{ referencefile }}
{% endif %}

{% if module.split(".")[1:] | length >= 1 %}
{% set mod = module.split(".")[1:] | join(".") %}
{% set mod = "qml." + mod %}
{% else %}
{% set mod = "qml" %}
{% endif %}

{{ mod }}.{{ objname }}
={% for i in range(mod|length) %}={% endfor %}{{ underline }}
{{ module }}.{{ objname }}
={% for i in range(module|length) %}={% endfor %}{{ underline }}

.. currentmodule:: {{ module }}

Expand Down
10 changes: 2 additions & 8 deletions doc/_templates/autosummary_core/module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@
.. include:: {{ referencefile }}
{% endif %}

{% if module.split(".")[1:] | length >= 1 %}
{% set mod = module.split(".")[1:] | join(".") %}
{% set mod = "qml." + mod %}
{% else %}
{% set mod = "qml" %}
{% endif %}

{{ mod }}.{{ objname }}
={% for i in range(mod|length) %}={% endfor %}{{ underline }}
{{ module }}.{{ objname }}
={% for i in range(module|length) %}={% endfor %}{{ underline }}

.. automodule:: {{ fullname }}

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
qiskit>=0.16
qiskit>=0.18
pennylane
numpy
networkx==2.3
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
long_description = fh.read()

requirements = [
"qiskit>=0.16",
"qiskit>=0.18",
"pennylane>=0.8.1",
"numpy"
]
Expand Down

0 comments on commit dfba326

Please sign in to comment.