diff --git a/crates/veryl/src/doc_builder.rs b/crates/veryl/src/doc_builder.rs index f02fa58c..c8a8f70f 100644 --- a/crates/veryl/src/doc_builder.rs +++ b/crates/veryl/src/doc_builder.rs @@ -125,20 +125,32 @@ const MODULE_TMPL: &str = r#" ### Parameters --- + + {{#each parameters}} -#### {{this.name}}: {{this.typ}} -{{this.description}} - + + + + + {{/each}} + +
{{this.name}}{{this.typ}}{{this.description}}
### Ports --- + + {{#each ports}} -#### {{this.name}}: {{this.direction}}{{this.typ}} -{{this.description}} - + + + + + {{/each}} + +
{{this.name}}{{this.direction}} {{this.typ}}{{this.description}}
"#; #[derive(Serialize)] @@ -172,11 +184,17 @@ const INTERFACE_TMPL: &str = r#" ### Parameters --- + + {{#each parameters}} -#### {{this.name}}: {{this.typ}} -{{this.description}} - + + + + + {{/each}} + +
{{this.name}}{{this.typ}}{{this.description}}
"#; #[derive(Serialize)]