Skip to content

Commit 10dc537

Browse files
committed
add alias for diffpy.cmi and manually change non-rst file references
1 parent ce22cb3 commit 10dc537

29 files changed

+69
-62
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Sphinx sources for the [diffpy.org][site] web page.
99
- [Where to Make Changes](#where-to-make-changes)
1010
- [Adding Citations](#adding-citations)
1111
- [Adding Publications that Describe a DiffPy Project (the "Reference" Section)](#reference-section-1)
12-
- [Adding Other Publications (the "Publication Using DiffPy.CMI" Section)](#reference-section-2)
12+
- [Adding Other Publications (the "Publication Using diffpy.cmi" Section)](#reference-section-2)
1313
- [New Version of Existing Project](#new-version)
1414
- [New Project](#publishing-new-project)
1515
- [Publishing Changes](#publishing-changes)
@@ -107,8 +107,8 @@ you add the reference to the proper section and do so in descending reverse chro
107107
(i.e., the newest citations should appear at the top of their respective sections).
108108

109109
<a name="reference-section-note">*Note:*</a> In this example, the citation is for a publication
110-
which describes a product of the DiffPy.CMI project (namely, PDFgetN3). For publications which
111-
describe a component of DiffPy.CMI, we provide a link to download the publication directly from
110+
which describes a product of the diffpy.cmi project (namely, PDFgetN3). For publications which
111+
describe a component of diffpy.cmi, we provide a link to download the publication directly from
112112
the [diffpy.org][site] website. Here, the link is provided via the `|downloadJuhasJac18|` tag
113113
which is the identifier for another snippet within [abbreviations.txt](https://github.com/diffpy/diffpy.github.io/blob/source/abbreviations.txt#L294) following the definition
114114
of `|citeJuhasJac18|`, seen here as:
@@ -130,10 +130,10 @@ placed within `pdfgetx`'s documentation directory and referenced accordingly wit
130130

131131

132132
<a name="reference-section-2"></a>
133-
### Adding Other Publications (the "Publication Using DiffPy.CMI" Section)
133+
### Adding Other Publications (the "Publication Using diffpy.cmi" Section)
134134

135-
Adding references to publications that do not describe the release/use of a product within the DiffPy.CMI
136-
project (e.g., papers which use some component of DiffPy.CMI), we simply provide the usual citation text (with
135+
Adding references to publications that do not describe the release/use of a product within the diffpy.cmi
136+
project (e.g., papers which use some component of diffpy.cmi), we simply provide the usual citation text (with
137137
appropriate DOI link). To add a citation of this type, refer to the information in [Reference Section](#reference-section-1), but
138138
disregard everything starting at, and following, the [Note](#reference-section-note).
139139

_includes/substitutions.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.. define global names and alias here
2+
.. |diffpycmi| replace:: diffpy.cmi

_templates/menu01.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<ul class="dropdown-menu menu01"
88
role="menu"
99
aria-labelledby="dLabelMenu01">
10-
<li><a href="{{pathto('products/diffpycmi/index')}}">DiffPy.CMI</a></li>
10+
<li><a href="{{pathto('products/diffpycmi/index')}}">diffpy.cmi</a></li>
1111
<li><a href="{{pathto('products/xPDFsuite')}}">xPDFsuite</a></li>
1212
<li><a href="{{pathto('products/pdfgetx')}}">PDFgetX3, PDFgetN3 and PDFgetS3</a></li>
1313
<li><a href="{{pathto('products/pdfgui')}}">PDFgui</a></li>

abbreviations.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767

6868
.. |DiffPyCMI| replace::
69-
:doc:`DiffPy.CMI </products/diffpycmi/index>`
69+
:doc:`diffpy.cmi </products/diffpycmi/index>`
7070

7171
.. |citeShiPRL14| replace:: Chenyang Shi, Majid Beidaghi, Michael
7272
Naguib, Olha Mashtalir, Yury Gogotsi, and Simon J. L. Billinge,

conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@
4040
# The encoding of source files.
4141
#source_encoding = 'utf-8-sig'
4242

43+
# The reST default prolog, included at the beginning of every source file.
44+
rst_prolog = """
45+
.. include:: _includes/substitutions.rst
46+
"""
47+
4348
# The master toctree document.
4449
master_doc = 'index'
4550

products/diffpycmi/LICENSE.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ Copyright (c) 2014-2019, Brookhaven Science Associates, Brookhaven National
1414
Laboratory
1515

1616

17-
The "DiffPy.CMI" is distributed subject to the following license conditions:
17+
The "diffpy.cmi" is distributed subject to the following license conditions:
1818

1919

2020
SOFTWARE LICENSE AGREEMENT
2121

22-
Software: DiffPy.CMI
22+
Software: diffpy.cmi
2323

2424

25-
(1) The "Software", below, refers to the aforementioned DiffPy.CMI (in either
25+
(1) The "Software", below, refers to the aforementioned diffpy.cmi (in either
2626
source code, or binary form and accompanying documentation).
2727

2828
Part of the software was derived from the DANSE, ObjCryst++ (with permission),

products/diffpycmi/cmi_exchange.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ CMI Exchange
22
=============
33

44
The `CMI Exchange`_ is a collection of community developed scripts,
5-
functions, and IPython plugins that make use of the DiffPy.CMI
6-
framework. If you are new to DiffPy.CMI it is a great place to get
7-
started. If you've been working with DiffPy.CMI for a while and feel
5+
functions, and IPython plugins that make use of the |diffpycmi|
6+
framework. If you are new to |diffpycmi| it is a great place to get
7+
started. If you've been working with |diffpycmi| for a while and feel
88
that others would benefit from seeing your code please contribute!
99

1010
.. _cmi exchange: https://github.com/diffpy/cmi_exchange#cmi-exchange

products/diffpycmi/contents.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _contents:
22

3-
DiffPy.CMI Contents
3+
|diffpycmi| Contents
44
===================
55

6-
The DiffPy.CMI release includes Python and C++ libraries developed by
6+
The |diffpycmi| release includes Python and C++ libraries developed by
77
the DiffPy team as well as external libraries necessary for functionality.
88

99
Libraries developed by the DiffPy team

products/diffpycmi/contributecode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
How to Contribute Code
22
======================
33

4-
The DiffPy.CMI bundle consists of the following projects, all hosted on
4+
The |diffpycmi| bundle consists of the following projects, all hosted on
55
github. To contribute code simply fork the project you'd like to work
66
on and issue a pull request.
77

products/diffpycmi/index.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##########
2-
DiffPy.CMI
2+
|diffpycmi|
33
##########
44

55
Diffpy.cmi is designed as an extensible complex modeling infrastructure.
@@ -169,7 +169,7 @@ Tutorials
169169
=========
170170

171171
* A step-by-step tutorial on using diffpy.cmi for PDF analysis is available at the documentation site for
172-
``DiffPy.CMI`` -- https://www.diffpy.org/diffpy.cmi/tutorials/index.html.
172+
``diffpy.cmi`` -- https://www.diffpy.org/diffpy.cmi/tutorials/index.html.
173173

174174
* Worked examples and experimental data from the book *Atomic Pair Distribution Function Analysis: A Primer* are freely available at our
175175
`GitHub repository <https://github.com/Billingegroup/pdfttp_data>`_.
@@ -194,16 +194,16 @@ at the links below.
194194
* |doc-libdiffpy|_ -- C++ library for calculation of PDF and other real-space
195195
quantities
196196

197-
See :ref:`DiffPy.CMI contents <contents>` for a complete list
198-
of open-source libraries that are included in DiffPy.CMI and
197+
See :ref:`diffpy.cmi contents <contents>` for a complete list
198+
of open-source libraries that are included in |diffpycmi| and
199199
their respective project pages.
200200

201201

202202
Reference
203203
=========
204204

205205
If you use this software in a research work which leads to publication,
206-
we ask you to acknowledge the use of DiffPy.CMI by citing the following
206+
we ask you to acknowledge the use of |diffpycmi| by citing the following
207207
paper:
208208

209209
* |citeJuhasAca15|

0 commit comments

Comments
 (0)