Skip to content

Documentation generation for function callbacks#482

Merged
joshessman-llnl merged 32 commits intodevelopfrom
feature/essman/document_callbacks
Mar 29, 2021
Merged

Documentation generation for function callbacks#482
joshessman-llnl merged 32 commits intodevelopfrom
feature/essman/document_callbacks

Conversation

@joshessman-llnl
Copy link
Member

Summary

To save space and maintain generality function arguments/return types are stored as integers (corresponding to the FunctionTag enum) in the datastore.

To produce legible documentation for the MFEM coefficient and nested struct examples this PR also modifies the SphinxWriter to only display documentation for the first element of an array/dictionary instead of the same schema for each element. This logic is currently part of the sphinx-specific generation logic but could be simplified considerably if moved to the Writer-independent traversal logic.

@joshessman-llnl joshessman-llnl added Documentation Issues related to documentation Inlet labels Feb 22, 2021
@white238
Copy link
Member

https://axom.readthedocs.io/en/feature-essman-document_callbacks/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

- Default Value
- Range/Valid Values
- Required
* - 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this is helpful..

- Required
* - coef
- The function representing the BC coefficient
- Double(Vector, Double)
Copy link
Member

@white238 white238 Feb 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Should we have two columns? one for return type and one for parameters? Is this clear enough that the first double is the return type?

Copy link
Member

@white238 white238 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While still not perfect. This is a definite improvement. The array of primitives is probably going to need a large amount of work that is out of the scope of this PR. Thanks @joshessman-llnl !

@joshessman-llnl
Copy link
Member Author

This should get merged after #490 due to the changes made in that PR relating to traversal logic.

@white238 white238 requested a review from agcapps March 29, 2021 19:21
Copy link
Member

@agcapps agcapps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your hard work, @joshessman-llnl .

@joshessman-llnl joshessman-llnl merged commit fca1bf2 into develop Mar 29, 2021
@joshessman-llnl joshessman-llnl deleted the feature/essman/document_callbacks branch March 29, 2021 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Issues related to documentation Inlet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document function callbacks in SphinxWriter inlet::SphinxDocWriter should ignore internal container groups

4 participants

Comments