Skip to content

Commit 744631b

Browse files
committed
bring in changes from nexusformat/1428
1 parent b4acce9 commit 744631b

19 files changed

+5725
-187
lines changed

dev_tools/docs/nxdl_index.py

Lines changed: 38 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,21 @@ def nxdl_indices() -> Dict[str, dict]:
6666
else:
6767
file = ""
6868
print("---------++++++++-", section)
69-
if file.endswith("contributed_definitions/index.rst"):
69+
if file.endswith("applications/index.rst"):
70+
rst_lines.append(f"{indentation}apm-structure\n")
7071
rst_lines.append(f"{indentation}em-structure\n")
72+
rst_lines.append(f"{indentation}mpes-structure\n")
7173
rst_lines.append(f"{indentation}optical-spectroscopy-structure\n")
74+
if file.endswith("base_classes/index.rst"):
75+
rst_lines.append(f"{indentation}apm-structure\n")
76+
rst_lines.append(f"{indentation}cgms-structure\n")
77+
rst_lines.append(f"{indentation}em-structure\n")
7278
rst_lines.append(f"{indentation}mpes-structure\n")
79+
rst_lines.append(f"{indentation}optical-spectroscopy-structure\n")
80+
if file.endswith("contributed_definitions/index.rst"):
7381
rst_lines.append(f"{indentation}apm-structure\n")
82+
rst_lines.append(f"{indentation}optical-spectroscopy-structure\n")
7483
rst_lines.append(f"{indentation}transport-structure\n")
75-
rst_lines.append(f"{indentation}spm-structure\n")
76-
rst_lines.append(f"{indentation}cgms-structure\n")
77-
rst_lines.append(f"{indentation}icme-structure\n")
78-
7984
for cname in sorted(classes):
8085
rst_lines.append(f"{indentation}{cname}\n")
8186

@@ -112,6 +117,20 @@ def get_nxclass_description(nxdl_file: Path, namespaces) -> str:
112117
*might* be used in an instance of that class.
113118
Consider the base classes as a set of *components*
114119
that are used to construct a data file.
120+
121+
Some base classes are grouped together:
122+
:ref:`Atom Probe Microscopy <BC-Apm-Structure>`
123+
124+
:ref:`Computational Geometry and Microstructures <BC-Cgms-Structure>`
125+
126+
:ref:`Electron Microscopy <BC-Em-Structure>`
127+
128+
:ref:`Multi-dimensional Photoemission Spectroscopy <BC-Mpes-Structure>`
129+
130+
:ref:`Optical Spectroscopy <BC-Opt-Spec-Structure>`
131+
132+
and others are simply listed here:
133+
115134
""",
116135
# - - - - - - - - - - - - - - - - - - - - - - - - - - - -
117136
"applications": """
@@ -140,6 +159,18 @@ def get_nxclass_description(nxdl_file: Path, namespaces) -> str:
140159
In application definitions involving raw data,
141160
write the raw data in the :ref:`NXinstrument` tree and then link to it
142161
from the location(s) defined in the relevant application definition.
162+
163+
Some application definitions are grouped together:
164+
:ref:`Atom Probe Microscopy <AppDef-Apm-Structure>`
165+
166+
:ref:`Electron Microscopy <AppDef-Em-Structure>`
167+
168+
:ref:`Multi-dimensional Photoemission Spectroscopy <AppDef-Mpes-Structure>`
169+
170+
:ref:`Optical Spectroscopy <AppDef-Opt-Spec-Structure>`
171+
172+
and others are simply listed here:
173+
143174
""",
144175
# - - - - - - - - - - - - - - - - - - - - - - - - - - - -
145176
"contributed_definitions": """
@@ -162,18 +193,9 @@ def get_nxclass_description(nxdl_file: Path, namespaces) -> str:
162193
and acceptance as either a base class or application definition.
163194
164195
Some contributions are grouped together:
165-
:ref:`Optical Spectroscopy <Optical-Spectroscopy-Structure>`
166-
167-
:ref:`Multi-dimensional Photoemission Spectroscopy <Mpes-Structure>`
168-
169-
:ref:`Atom Probe Microscopy <Apm-Structure>`
170-
171-
:ref:`Electron Microscopy <Em-Structure>`
172-
173-
:ref:`Transport Measurements <Transport-Structure>`
174-
175-
:ref:`Geometry and Microstructures <CgmsFeatures-Structure>`
196+
:ref:`Optical Spectroscopy <Contributed-Opt-Spec-Structure>`
176197
198+
:ref:`Transport Measurements <Contributed-Transport-Structure>`
177199
178200
and others are simply listed here:
179201

0 commit comments

Comments
 (0)