OpenUSD icon indicating copy to clipboard operation
OpenUSD copied to clipboard

Doxygen `\ref` is removed from `documentation` fields in `generatedSchema.usda`

Open nvmkuruc opened this issue 1 year ago • 7 comments

Description of Issue

Attribute doc strings in schema.usda may include doxygen commands like this

https://github.com/PixarAnimationStudios/OpenUSD/blob/59992d2178afcebd89273759f2bddfe730e59aa8/pxr/usd/usdGeom/schema.usda#L2326

However, when usdGenSchema is run, the \\ref is removed, leaving the doc string for the schema definition incomplete.

https://github.com/PixarAnimationStudios/OpenUSD/blob/59992d2178afcebd89273759f2bddfe730e59aa8/pxr/usd/usdGeom/generatedSchema.usda#L4210

Steps to Reproduce

System Information (OS, Hardware)

Package Versions

Build Flags

nvmkuruc avatar Sep 20 '24 13:09 nvmkuruc

Filed as internal issue #USD-10164

jesschimein avatar Sep 20 '24 17:09 jesschimein

Good opportunity to say... we anticipate all of the doxygen/developer documentation to be eliminated from the SchemaRegistry in favor of userDoc/userDocBrief, in time. Since solving this problem in a nice way in all cases is, in our opinion, tricky, and since nobody (before now :-) ) has noticed, we'd like to close this as "not fixing"

spiffmon avatar Sep 21 '24 00:09 spiffmon

we anticipate all of the doxygen/developer documentation to be eliminated from the SchemaRegistry in favor of userDoc/userDocBrief, in time

This was going to be our recommendation--

Since solving this problem in a nice way in all cases is, in our opinion, trick

-- for this exact reason.

Do you have a timeline or way for us to track the status of the userDoc / userDocBrief effort?

nvmkuruc avatar Sep 23 '24 14:09 nvmkuruc

We're working on it - stay tuned, please!

spiffmon avatar Sep 24 '24 01:09 spiffmon

Hi @spiffmon and @dsyu-pixar. Now that OpenUSD supports userDocBrief would you accept a brief documentation update for the Camera schema for 25.05 or are you already working on this?

Thanks!

nvmkuruc avatar Jan 25 '25 12:01 nvmkuruc

@nvmkuruc we're initially focusing on UsdLux schemas (followed by UsdRender and possibly UsdShade), so we'd welcome updates for Camera and any other UsdGeom schemas (thank you!). Let me know if you run into any issues with userDoc/userDocBrief, or if any of the basic steps in the "Generating Schema User Docs" section of docs/README.md don't make sense.

dsyu-pixar avatar Jan 27 '25 17:01 dsyu-pixar

Thanks Dan!

nvmkuruc avatar Jan 27 '25 17:01 nvmkuruc