Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

Commit 4c96578

Browse files
committed
add prolog
1 parent 71363b0 commit 4c96578

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

conf.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,23 @@
9494
}
9595

9696

97+
nbsphinx_prolog = """
98+
{% set docname = env.doc2path(env.docname, base=None) %}
99+
100+
.. only:: html
101+
102+
.. role:: raw-html(raw)
103+
:format: html
104+
105+
.. note::
106+
This page was generated from `{{ docname }}`__.
107+
108+
109+
__ https://github.com/Qiskit/qiskit-tutorials/blob/master/{{ docname }}
110+
111+
"""
112+
113+
97114
# If true, figures, tables and code-blocks are automatically numbered if they
98115
# have a caption.
99116
numfig = True

0 commit comments

Comments
 (0)