Skip to content

Commit

Permalink
WIP #1057
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jun 17, 2022
1 parent 0e39b90 commit cf4ece1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions utils/dev_nxdl2rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
# nxdl = os.path.join(BASEDIR, '..', 'base_classes', 'NXcrystal.nxdl.xml')
# nxdl = os.path.join(BASEDIR, '..', 'base_classes', 'NXentry.nxdl.xml')
# nxdl = os.path.join(BASEDIR, '..', 'base_classes', 'NXobject.nxdl.xml')
nxdl = os.path.join(BASEDIR, '..', 'base_classes', 'NXroot.nxdl.xml')
# nxdl = os.path.join(BASEDIR, '..', 'base_classes', 'NXroot.nxdl.xml')
# nxdl = os.path.join(BASEDIR, '..', 'base_classes', 'NXuser.nxdl.xml')
# nxdl = os.path.join(BASEDIR, '..', 'contributed_definitions', 'NXarpes.nxdl.xml')
nxdl = os.path.join(BASEDIR, '..', 'applications', 'NXarpes.nxdl.xml')
# nxdl = os.path.join(BASEDIR, '..', 'contributed_definitions', 'NXmagnetic_kicker.nxdl.xml')


Expand Down
5 changes: 4 additions & 1 deletion utils/nxdl2rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,10 @@ def printFullTree(ns, parent, name, indent, parent_path):
if name == '':
name = typ.lstrip('NX').upper()
typ = ':ref:`%s`' % typ
print(f"{indent}{hyperlinkTarget(parent_path, name, 'group')}")
hTarget = hyperlinkTarget(parent_path, name, 'group')
target = hTarget.replace(".. _", "").replace(":\n", "")
# TODO: https://github.com/nexusformat/definitions/issues/1057
print(f"{indent}{hTarget}")
print(f"{indent}**{name}**: {optional_text}{typ}\n")

printIfDeprecated(ns, node, indent+INDENTATION_UNIT)
Expand Down

0 comments on commit cf4ece1

Please sign in to comment.