Skip to content

Commit d247d71

Browse files
committed
feat: update Docusaurus template
1 parent fcf89e8 commit d247d71

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docusaurus.sqrl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
2-
description: {{@if (it.title)}}{{it.title}}{{/if}}
2+
description: {{@if(it.title)}}{{it.title}}{{#else}}{{it.name}}{{/if}}
33

44
---
55

66
{{@if (it.name)}}# {{it.name}}.sol{{/if}}
77

8+
> [Read code on GitHub](https://github.com/primitivefinance/rmm-manager/tree/develop/contracts{{it.path}}/{{it.name}}.sol)
89

910
{{@if (it.notice)}}{{it.notice}}{{/if}}
1011

@@ -21,7 +22,7 @@ description: {{@if (it.title)}}{{it.title}}{{/if}}
2122
## Methods
2223

2324
{{@foreach(it.methods) => key, val}}
24-
### {{key}}
25+
### {{key.split('(')[0]}}
2526

2627

2728
{{@if (val.notice)}}{{val.notice}}{{/if}}
@@ -47,8 +48,7 @@ description: {{@if (it.title)}}{{it.title}}{{/if}}
4748
| Name | Type | Description |
4849
|---|---|---|
4950
{{@foreach(val.inputs) => key, val}}
50-
| {{key}} | {{val.type}} | {{val.description}}
51-
51+
| {{key}} | {{val.type}} | {{val.description}} |
5252
{{/foreach}}
5353
{{/if}}
5454

@@ -58,8 +58,7 @@ description: {{@if (it.title)}}{{it.title}}{{/if}}
5858
| Name | Type | Description |
5959
|---|---|---|
6060
{{@foreach(val.outputs) => key, val}}
61-
| {{key}} | {{val.type}} | {{val.description}}
62-
61+
| {{key}} | {{val.type}} | {{val.description}} |
6362
{{/foreach}}
6463

6564
{{/if}}

0 commit comments

Comments
 (0)