Skip to content

Commit

Permalink
feat(audits/render): Render audit results to HTML with `renderAuditRe…
Browse files Browse the repository at this point in the history
…sultsToHTML` (#53)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
enisdenjo and github-actions[bot] committed Feb 12, 2023
1 parent 3d9f67d commit da32059
Show file tree
Hide file tree
Showing 19 changed files with 7,455 additions and 7,879 deletions.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ graphql-http
### Modules

- [audits/common](modules/audits_common.md)
- [audits/render](modules/audits_render.md)
- [audits/server](modules/audits_server.md)
- [client](modules/client.md)
- [common](modules/common.md)
Expand Down
30 changes: 30 additions & 0 deletions docs/modules/audits_render.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[graphql-http](../README.md) / audits/render

# Module: audits/render

## Table of contents

### Functions

- [renderAuditResultsToHTML](audits_render.md#renderauditresultstohtml)

## Functions

### renderAuditResultsToHTML

**renderAuditResultsToHTML**(`results`): `Promise`<`string`\>

Renders the provided audit results to well-formatted and valid HTML.

Do note that the rendered result is not an HTML document, it's rather
just a component with results.

#### Parameters

| Name | Type |
| :------ | :------ |
| `results` | [`AuditResult`](audits_common.md#auditresult)[] |

#### Returns

`Promise`<`string`\>
1,998 changes: 964 additions & 1,034 deletions implementations/apollo-server/README.md

Large diffs are not rendered by default.

0 comments on commit da32059

Please sign in to comment.