-
Notifications
You must be signed in to change notification settings - Fork 16
Remove the JSON-RPC from the example's code in the documentation #288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1961,6 +1961,12 @@ function insertExampleMacros(template, examples, method, json, templates, appApi | |
| let first = true | ||
| let languages = '' | ||
| Object.entries(example.languages).forEach(([name, language]) => { | ||
|
|
||
| //In the generated documentation, the example code for JSON-RPC is deprecated, so we omit it. | ||
|
||
| if (name.toLowerCase() === 'json-rpc') { | ||
| return; | ||
| } | ||
|
|
||
|
Comment on lines
1963
to
+1969
|
||
| let languageContent = language.template //getTemplateForExample(method, templates) | ||
| // wrap example in collapsible HTML if not first | ||
| if (!first) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The summary text "A method that pulls it's description from an external markdown file." uses "it's" (contraction of "it is") instead of the possessive "its". Please update this to use the correct possessive form to avoid a grammatical error in the generated documentation.