Skip to content

Commit

Permalink
Merge pull request #924 from nexusformat/923-remove-tip
Browse files Browse the repository at this point in the history
remove tip at bottom of every NXDL , place it on NXDL chapter page
  • Loading branch information
prjemian authored Jul 28, 2021
2 parents 925efc9 + fb97d14 commit a2d99da
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
16 changes: 16 additions & 0 deletions manual/source/nxdl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,22 @@ to validate NeXus data files. In fact, all of the tables in the
:ref:`Class Definitions <ClassDefinitions>` Chapter
have been generated directly from the NXDL files.

.. sidebar:: Writing references and anchors in the documentation.

.. tip::

Use the reST anchors when writing documentation in
NXDL source files.
Since the anchors have no title or caption associated,
you will need to supply text with the reference, such as::

:ref:`this text will appear <anchor>`

Since these anchors are absolute references, they may be
used anywhere in the documentation source
(that is, within XML ``<doc>`` structures
in `.nxdl.xml` files or in ``.rst`` files).

The language of NXDL files is intentionally quite small,
to provide only that which is necessary to describe
scientific data structures (or to establish the
Expand Down
13 changes: 0 additions & 13 deletions utils/nxdl2rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,6 @@ def sorter(key):
)
# fmt: on
print(table)
print(
".. tip::\n"
" Use the reST anchors when writing documentation in\n"
" NXDL source files.\n"
" Since the anchors have no title or caption associated,\n"
" you will need to supply text with the reference, such as::\n\n"
" :ref:`this text will appear <anchor>`\n\n"
" Since these anchors are absolute references, they may be\n"
" used anywhere in the documentation source \n"
" (that is, within XML ``<doc>`` structures \n"
" in `.nxdl.xml` files or in ``.rst`` files).\n"
# &lt;doc&gt;
)


def fmtTyp( node ):
Expand Down

0 comments on commit a2d99da

Please sign in to comment.