Skip to content

Commit a8b4fce

Browse files
committed
fix external links and other minor issues with the documentation
1 parent 3fcf487 commit a8b4fce

File tree

13 files changed

+34
-35
lines changed

13 files changed

+34
-35
lines changed

doc/source/about.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ About
44

55
.. include:: cite.rst
66

7-
Please report any bugs, problems or feature requests related to
8-
simplebuild-dgcode in the issue tracker at:
9-
https://github.com/mctools/simplebuild-dgcode/issues.
7+
Please report any bugs, problems or feature requests related to dgcode in the
8+
issue tracker at: https://github.com/mctools/simplebuild-dgcode/issues.
109

1110
.. _sbhistory:
1211

doc/source/cite.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
| **For dgcode:**
55
| T Kittelmann et al 2014 J. Phys.: Conf. Ser. 513 022017
6-
| `DOI 10.1088/1742-6596/513/2/022017 <https://doi.org/10.1088/1742-6596/513/2/022017>`_
6+
| `DOI 10.1088/1742-6596/513/2/022017 <https://doi.org/10.1088/1742-6596/513/2/022017>`__
77
| K Kanaki, T Kittelmann, et al 2018 Physica B, Condens. Matter 551 386–389
8-
| `DOI 10.1016/j.physb.2018.03.025 <https://doi.org/10.1016/j.physb.2018.03.025>`_
8+
| `DOI 10.1016/j.physb.2018.03.025 <https://doi.org/10.1016/j.physb.2018.03.025>`__
99
| **For NCrystal:**
1010
| X.-X. Cai and T. Kittelmann, Comp. Phys. Commun 246 (2020) 106851,
11-
| `DOI 10.1016/j.cpc.2019.07.015 <https://doi.org/10.1016/j.cpc.2019.07.015>`_
11+
| `DOI 10.1016/j.cpc.2019.07.015 <https://doi.org/10.1016/j.cpc.2019.07.015>`__
1212
| **For MCPL**:
1313
| T. Kittelmann, et al., Comp. Phys. Commun 218 (2017) 17-42
14-
| `DOI 10.1016/j.cpc.2017.04.012 <https://doi.org/10.1016/j.cpc.2017.04.012>`_
14+
| `DOI 10.1016/j.cpc.2017.04.012 <https://doi.org/10.1016/j.cpc.2017.04.012>`__

doc/source/griff.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ optimised for easy, fast and reliable analyses from either C++ or Python of
1313
low-multiplicity physics, but supports filtering for scenarios involving higher
1414
multiplicities or statistics. No dedicated publication for Griff exists at this
1515
point in time, but it was presented in `doi:10.1088/1742-6596/513/2/022017
16-
<http://dx.doi.org/10.1088/1742-6596/513/2/022017>`_ which should so far be used
17-
as the main reference.
16+
<http://dx.doi.org/10.1088/1742-6596/513/2/022017>`__ which should so far be
17+
used as the main reference.
1818

1919
Data contents
2020
-------------

doc/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Welcome to the dgcode documentation!
33
************************************
44

55
Welcome to the documentation of "dgcode", a set of `simplebuild
6-
<https://mctools.github.io/simplebuild>`_ packages implementing a Geant4-based
6+
<https://mctools.github.io/simplebuild>`__ packages implementing a Geant4-based
77
simulation framework. It originated in the Detector Group at the European
88
Spallation Source ERIC, and is primarily intended for usage for simulation of
99
thermal neutron detectors and related projects.

doc/source/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Alternatives for experts
5757
The conda recipe above is intended to give a self-contained and reproducible
5858
environment with not only dgcode itself, but also any required tools like
5959
`simplebuild
60-
<https://mctools.github.io/simplebuild>`_, a Python interpreter, and
60+
<https://mctools.github.io/simplebuild>`__, a Python interpreter, and
6161
all the necessary build tools. For special advanced use cases, experts might
6262
simply want to add the code itself into an environment where they otherwise have
6363
ensured that all of these third-party tools are already available. In such a

doc/source/intro.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ Features
6868

6969
* Post-simulation analysis can be done as desired, and might for instance
7070
include a Griff analysis written in C++, which outputs histogram data in
71-
:ref:`SimpleHists<sbsimplehists>` files, usually followed by a final
71+
:ref:`SimpleHists <sbsimplehists>` files, usually followed by a final
7272
statistical analysis and plot-production in Python, where all the usual
73-
tools (e.g. `Matplotlib<https://matplotlib.org/>`__ and
73+
tools (e.g. `Matplotlib <https://matplotlib.org/>`__ and
7474
`SciPy <https://scipy.org/>`__) are available.
7575

7676
* Due in particular to being based on `simplebuild

doc/source/license.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ License
33
*******
44

55
``simplebuild-dgcode`` is licensed under the `Apache-2.0 License
6-
<https://www.apache.org/licenses/LICENSE-2.0>`_.
6+
<https://www.apache.org/licenses/LICENSE-2.0>`__.
77

88
.. include:: ../../LICENSE
99
:literal:

doc/source/matcookbook.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ case. Instead, one can currently resort to a few different strategies:
7272

7373
- Use the ``G4_STAINLESS-STEEL`` material, which is a structure-less material
7474
with a particular composition defined in `Geant4's database
75-
<https://geant4-userdoc.web.cern.ch/UsersGuides/ForApplicationDeveloper/html/Appendix/materialNames.html>`_.
75+
<https://geant4-userdoc.web.cern.ch/UsersGuides/ForApplicationDeveloper/html/Appendix/materialNames.html>`__.
7676
- Use either ``stdlib::Fe_sg229_Iron-alpha.ncmat`` or
7777
``stdlib::Fe_sg225_Iron-gamma.ncmat``, and the
7878
`atomdb <https://github.com/mctools/ncrystal/wiki/CfgRefDoc>`__ keyword of
@@ -257,7 +257,7 @@ density when using these to model a particular component. You can also read the
257257
notes for a particular material by a command like ``nctool --extract
258258
stdlib::Polystyrene_C8H8.ncmat | less`` (or simply find and click on the
259259
material on the `NCrystal data library page
260-
<https://github.com/mctools/ncrystal/wiki/Data-library>`_.
260+
<https://github.com/mctools/ncrystal/wiki/Data-library>`__.
261261

262262
.. list-table::
263263
:header-rows: 1
@@ -446,8 +446,8 @@ aluminium atoms are actually randomly switched with chromium atoms.
446446
In general the NCrystal cfg-string syntax for defining a multi-phase material is
447447
``phases<FRAC1*CFG1&..&FRACN*CFGN>[;COMMONCFG]``. Here, ``FRAC1`` is the
448448
fraction of phase 1, which is defined by the NCrystal cfg-string ``CFG1``, and
449-
so forth. The indicated fractions are assumed to be volume fractions, and must
450-
sum to 1, and ``COMMONCFG`` contains cfg-parameters applied to all phases
449+
so forth. The indicated fractions are assumed to be "by-volume" fractions, and
450+
must sum to 1, and ``COMMONCFG`` contains cfg-parameters applied to all phases
451451
(e.g. if ``COMMONCFG`` is ``;temp=200K``, all phases would change their
452452
temperature -- which in the particular case of temperature is quite sensible).
453453

@@ -536,7 +536,7 @@ https://github.com/mctools/ncrystal-notebooks.
536536

537537
| **If you use NCrystal to model single crystals, please cite:**
538538
| T. Kittelmann and X.-X. Cai, Comp. Phys. Commun 267 (2021) 108082,
539-
| `DOI 10.1016/j.cpc.2021.108082 <https://doi.org/10.1016/j.cpc.2021.108082>`_
539+
| `DOI 10.1016/j.cpc.2021.108082 <https://doi.org/10.1016/j.cpc.2021.108082>`__
540540
541541
.. _sbmatpg:
542542

@@ -586,7 +586,7 @@ it. The example below shows this in practice:
586586

587587
| **If you use NCrystal to model pyrolitic graphite, please cite:**
588588
| T. Kittelmann and X.-X. Cai, Comp. Phys. Commun 267 (2021) 108082,
589-
| `DOI 10.1016/j.cpc.2021.108082 <https://doi.org/10.1016/j.cpc.2021.108082>`_
589+
| `DOI 10.1016/j.cpc.2021.108082 <https://doi.org/10.1016/j.cpc.2021.108082>`__
590590
591591
Other materials
592592
---------------

doc/source/matdef.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ as the "NamedMaterial" mechanism, has several advantages:
1212
#. Defining materials is easier.
1313
#. Materials can be easily modified from command line or Python code.
1414
#. It integrates directly with how materials are defined in `NCrystal
15-
<https://github.com/mctools/ncrystal/wiki>`_, allowing direct usage of these
15+
<https://github.com/mctools/ncrystal/wiki>`__, allowing direct usage of these
1616
high-fidelity materials, and exposing all features of NCrystal directly.
1717

1818
In the following, we will provide a few :ref:`general remarks <sbmatgeneral>`
@@ -26,15 +26,15 @@ General remarks
2626
---------------
2727

2828
The strings defining most materials in typical dgcode projects will actually be
29-
the same strings that are used with `NCrystal (aka "NCrystal cfg-strings)
30-
<https://github.com/mctools/ncrystal/wiki/Using-NCrystal#uniform-material-configuration-syntax>`_,
31-
so you might wish to consult the NCrystal documentation for those. Most
32-
of the entries in the :ref:`cookbook <sbmatcookbook>` are indeed such NCrystal
33-
cfg-strings.
29+
the same strings that are used with NCrystal (aka "NCrystal cfg-strings),
30+
so you might wish to consult the `NCrystal documentation
31+
<https://github.com/mctools/ncrystal/wiki/Using-NCrystal#uniform-material-configuration-syntax>`__
32+
for those. Most of the entries in the :ref:`cookbook <sbmatcookbook>` are
33+
indeed such NCrystal cfg-strings.
3434

3535
On that note, be aware that outside the :ref:`cookbook <sbmatcookbook>` you
3636
can look for specific NCrystal materials both online in the `NCrystal data
37-
library page <https://github.com/mctools/ncrystal/wiki/Data-library>`_, or in
37+
library page <https://github.com/mctools/ncrystal/wiki/Data-library>`__, or in
3838
your terminal via the ``nctool`` command by invoking ``nctool
3939
--browse``. Combined with the unix ``grep`` command, you can use this for a
4040
quick-and-dirty material search in the terminal. As an example, searching for
@@ -70,7 +70,7 @@ directory). For this reason, most of the examples in the :ref:`cookbook
7070

7171
In addition to NCrystal materials, you can also use any material from Geant4's
7272
own `built-in database of elements and NIST compounds
73-
<https://geant4-userdoc.web.cern.ch/UsersGuides/ForApplicationDeveloper/html/Appendix/materialNames.html>`_,
73+
<https://geant4-userdoc.web.cern.ch/UsersGuides/ForApplicationDeveloper/html/Appendix/materialNames.html>`__,
7474
and even override their temperature or density, using dedicated keywords
7575
``temp_kelvin`` (:math:`\mathrm{K}`), ``density_gcm3``
7676
(:math:`\mathrm{g}/\mathrm{cm}^3`), ``density_kgm3``
@@ -112,7 +112,7 @@ Inspect via NCrystal utilities
112112
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113113

114114
The material definitions which are also `NCrystal cfg-strings
115-
<https://github.com/mctools/ncrystal/wiki/Using-NCrystal#uniform-material-configuration-syntax>`_,
115+
<https://github.com/mctools/ncrystal/wiki/Using-NCrystal#uniform-material-configuration-syntax>`__,
116116
can be investigated with NCrystal tools. The most easily used of these is the
117117
command line tool ``nctool``, and the usage is very simple. First of all,
118118
detailed thermal neutron cross sections and sample neutron scattering

doc/source/newsimproject.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ build everything afterwards with ``sb`` (that might take a few minutes):
2929
So assuming we want a project to investigate the properties of a new amazing
3030
detector technology, named "tricorder", we then proceed by using the
3131
``dgcode_newsimproject`` command (please try to use `CamelCasing
32-
<https://en.wikipedia.org/wiki/Camel_case>`_ for project names):
32+
<https://en.wikipedia.org/wiki/Camel_case>`__ for project names):
3333

3434
.. include:: ../build/autogen_tricorder_newsimproj_TriCorder.txt
3535
:literal:

doc/source/particlegenerators.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ package.
134134

135135
randomize_y=True random_min_y_meters=0.5 random_max_y_meters=1.0
136136
* And finally the ability to specify particle identity via `pdg code
137-
<https://pdg.lbl.gov/2023/reviews/rpp2023-rev-monte-carlo-numbering.pdf>`_
137+
<https://pdg.lbl.gov/2023/reviews/rpp2023-rev-monte-carlo-numbering.pdf>`__
138138
rather than names, and to generate more than 1 primary particle each
139139
event.
140140
* Too see all the parameters of ``FlexGen``, simply run the command::

doc/source/simplehists.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ list of features include:
5252

5353
* To/from raw bytes in both C++ and Python (in the form of ``std::string`` or
5454
``bytes`` respectively).
55-
* To work with the standard Python ``pickle`` module.
55+
* They work with the standard Python ``pickle`` module.
5656
* Histograms can be cloned, merged, normalised, scaled, integrated, ...
5757
* The C++ interface is simple to use and very fast.
5858
* The Python interface additionally features integration with Numpy arrays and
@@ -70,7 +70,7 @@ list of features include:
7070
in a ``.shist`` file to `ROOT <http://root.cern.ch/>`__ histograms and store
7171
them in a ``.root`` file. This requires ROOT to have been installed in the
7272
environment, which `might not be simple
73-
<https://github.com/conda-forge/root-feedstock/issues/214>`_.
73+
<https://github.com/conda-forge/root-feedstock/issues/214>`__.
7474

7575
Example: Producing histograms in C++
7676
-------------------------------------

doc/source/vis.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Custom 3D Viewer
1717
----------------
1818

1919
In dgcode, we provide a custom `OpenSceneGraph
20-
<https://www.openscenegraph.com/>`_-based 3D visualisation tool which can be
20+
<https://www.openscenegraph.com/>`__-based 3D visualisation tool which can be
2121
used to visualise both simulation geometries and data. Despite being a bit rough
2222
around the edges (for instance it could use a better name than "CoolNameHere"),
2323
it has already been highly useful for a lot of work so far.
@@ -216,7 +216,7 @@ the various commands that one might use in the interactive Geant4 terminal
216216
except to note that a few of the more useful commands are printed by dgcode in
217217
the terminal (see first screenshot in this section), and refer
218218
interested parties to the `official Geant4 documentation on visualisation
219-
<https://geant4-userdoc.web.cern.ch/UsersGuides/ForApplicationDeveloper/html/GettingStarted/visualization.html>`_.
219+
<https://geant4-userdoc.web.cern.ch/UsersGuides/ForApplicationDeveloper/html/GettingStarted/visualization.html>`__.
220220

221221
Note that you exit the terminal by the command "exit" (or ``ctrl+D``, like in BASH).
222222

0 commit comments

Comments
 (0)