From 9b97e37f72d1954d848a2528933967aca8c7c68b Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 14 Aug 2024 12:18:17 -0400 Subject: [PATCH] strip off common namespace components from index entries --- doc/src/pair_quip.rst | 2 +- doc/utils/sphinx-config/conf.py.in | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/src/pair_quip.rst b/doc/src/pair_quip.rst index d40d4c3179..96a6e21767 100644 --- a/doc/src/pair_quip.rst +++ b/doc/src/pair_quip.rst @@ -29,7 +29,7 @@ from GitHub: `https://github.com/libAtoms/QUIP `_. The interface is chiefly intended to be used to run Gaussian Approximation Potentials (GAP), which are described in the following publications: -:ref:`(Bartok et al) ` and :ref:`(PhD thesis of Bartok) `. +:ref:`(Bartok et al) ` and :ref:`(PhD thesis of Bartok) `. Only a single pair_coeff command is used with the *quip* style that specifies a QUIP potential file containing the parameters of the diff --git a/doc/utils/sphinx-config/conf.py.in b/doc/utils/sphinx-config/conf.py.in index e2451cd4f1..d12decf1a2 100644 --- a/doc/utils/sphinx-config/conf.py.in +++ b/doc/utils/sphinx-config/conf.py.in @@ -383,6 +383,12 @@ man_pages = [ #man_show_urls = False +# strip off LAMMPS_NS:: from index entries +cpp_index_common_prefix = [ + 'LAMMPS_NS::', + '_LMP_STYLE_CONST::', '_LMP_TYPE_CONST::', '_LMP_VAR_CONST::', +] + # -- Options for Texinfo output ------------------------------------------- # Grouping the document tree into Texinfo files. List of tuples