mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-09-01 02:37:21 +00:00
Parse description from node doc comments (#2089)
* Parse description from node doc comments * Add node description tooltips * Code review --------- Co-authored-by: Adam G <adamgerhant@gmail.com> Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
8fdecaa487
commit
35f7cfac80
12 changed files with 144 additions and 24 deletions
|
@ -22,6 +22,7 @@ pub(crate) fn generate_node_code(parsed: &ParsedNodeFn) -> syn::Result<TokenStre
|
|||
fields,
|
||||
body,
|
||||
crate_name: graphene_core_crate,
|
||||
description,
|
||||
..
|
||||
} = parsed;
|
||||
|
||||
|
@ -257,6 +258,7 @@ pub(crate) fn generate_node_code(parsed: &ParsedNodeFn) -> syn::Result<TokenStre
|
|||
let metadata = NodeMetadata {
|
||||
display_name: #display_name,
|
||||
category: #category,
|
||||
description: #description,
|
||||
fields: vec![
|
||||
#(
|
||||
FieldMetadata {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue