Skip to content

Commit 7c176ad

Browse files
committed
Document how to remove backrefs (closes #364).
1 parent 60e6038 commit 7c176ad

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

doc/usage.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,30 @@ For example:
613613

614614
:ref:`section-local-bibliographies`
615615

616+
.. _section-removing-backrefs:
617+
618+
Removing Back References
619+
~~~~~~~~~~~~~~~~~~~~~~~~
620+
621+
By default, for every citation,
622+
Sphinx will generate back references, or "backrefs",
623+
to where the citation was cited from,
624+
at least if they are in the same document.
625+
If you do not want these back references,
626+
you can remove them using a css style sheet, as follows.
627+
First, add this to your ``conf.py``:
628+
629+
.. code:: python
630+
html_static_path = ["_static"]
631+
html_css_files = ["custom.css"]
632+
633+
Then, use this code for your ``_static/custom.css`` style sheet:
634+
635+
.. code:: css
636+
.backrefs {
637+
display: none;
638+
}
639+
616640
.. _section-filtering:
617641

618642
Filtering

0 commit comments

Comments
 (0)