-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UPPERCASE to indicate flexible names #1485
Conversation
@phyy-nx Do you interpret this to mean Change the Python code that renders the documentation? Probably will need to add |
I'll list any such instances here and open new issue for each NXDL file separately. |
I'll modify the NXcanSAS and NXdata NXDL files as part of this PR to test documentation of substitutions for the variations of |
In application definitions, definitions/applications/NXcanSAS.nxdl.xml Line 144 in ab5e65d
the attribute name has upper case but the "SAS" part cannot be replaced by the user. |
The only case in NXcanSAS that requires a non-default definitions/applications/NXcanSAS.nxdl.xml Line 1190 in ab5e65d
This situation is |
@woutdenolf Can you help out with this PR? I'm stuck on the step Document all substitutable letters in italics. You understand the Python code now better. Can you try this out on NXdata & NXcanSAS? Together, they represent all the |
I added the |
Yup, that's right |
… substitutible characters
I agree. A quick web search shows bolditalic is not possible in rst. |
Should be: and should be noted on #1490 (not for this PR to resolve) |
It should be possible to use html directly, as in this quick google find I tried the raw html workaround from above link using sphinx 7.3.7 and it seems to work. Though perhaps italics only is easier to tell from bold than bolditalics |
Note that the new convention on substitutable names also effects how the method 'get_first_parent_ref' shall work. It is using get_nx_namefit, but it only checks for UPPERCASE prefixes. |
|
Is there any way to format the entire line in HTML? Might not be if we also want to generate the proper anchors for cross-referencing. |
https://kallimachos.github.io/rst/bolditalic.html :bolditalic:`This is bold and italic using the :bolditalic: role.`
.. raw:: html
<b><i>This is bold and italics using raw html.</i></b> Seems like a sphinx extension? https://github.com/kallimachos/rst/blob/9249dbd4916aece34d27d09fc2c287cadaa2b644/doc/conf.py#L20 This would allow inline bolditalic. I'll try. |
… On Wed, Oct 2, 2024, 11:06 AM Wout De Nolf ***@***.***> wrote:
Seems to work:
image.png (view on web)
<https://github.com/user-attachments/assets/a41b8edf-3e74-4c89-98cc-4ad64cbeddb5>
An example of the RST formatting of a partial attribute:
**@**\ :bolditalic:`AXISNAME`\ **_indices**: (optional) :ref:`NX_INT <NX_INT>`
—
Reply to this email directly, view it on GitHub
<#1485 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARMUMDQXBWOWCI5ITZ4EQDZZQKZ3AVCNFSM6AAAAABPBXI62OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBZGA2TOMBTGA>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
nameType [specified(default), any, or partial] and its meaning is now handled by the dev_tools/utils/nxdl_utils.py in the PR #1428 |
To be clear, the commits I added to this PR support nameType based RST formatting of the field/attribute/group/link name. For example
Which results in Anchor and index is not affected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small suggestion for the xsd file.
We've gained this WARNING (and warnings have been promoted to ERRORs) when building the docs:
|
editing checklist
partial
and its descriptionnameType
in fields, groups, and attributes