-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a6322c
commit 08f0894
Showing
9 changed files
with
104 additions
and
1 deletion.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
__tests__/build-docs/build-docs-with-config-option/index.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf8" /> | ||
<title>{{title}}</title> | ||
<!-- needed for adaptive design --> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<style> | ||
body { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
</style> | ||
{{{redocHead}}} | ||
{{#unless disableGoogleFont}}<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">{{/unless}} | ||
</head> | ||
|
||
<body> | ||
{{{redocHTML}}} | ||
</body> | ||
|
||
</html> |
4 changes: 4 additions & 0 deletions
4
__tests__/build-docs/build-docs-with-config-option/nested/message-schema.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
type: object | ||
properties: | ||
message: | ||
type: string |
19 changes: 19 additions & 0 deletions
19
__tests__/build-docs/build-docs-with-config-option/nested/openapi.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
openapi: 3.1.0 | ||
servers: | ||
- url: http://localhost | ||
info: | ||
title: Sample API | ||
version: 1.0.0 | ||
paths: | ||
/hello: | ||
get: | ||
operationId: getMessage | ||
security: [] | ||
summary: Get a greeting message | ||
responses: | ||
200: | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ./message-schema.yaml |
5 changes: 5 additions & 0 deletions
5
__tests__/build-docs/build-docs-with-config-option/nested/redocly.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
extends: | ||
- minimal | ||
theme: | ||
openapi: | ||
htmlTemplate: ../index.hbs |
10 changes: 10 additions & 0 deletions
10
__tests__/build-docs/build-docs-with-config-option/snapshot.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`E2E build-docs build docs with config option 1`] = ` | ||
🎉 bundled successfully in: nested/redoc-static.html (38 KiB) [⏱ <test>ms]. | ||
Found nested/redocly.yaml and using theme.openapi options | ||
Prerendering docs | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../resources/pets.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`E2E build-docs simple build-docs 1`] = ` | ||
🎉 bundled successfully in: redoc-static.html (318 KiB) [⏱ <test>ms]. | ||
Found undefined and using theme.openapi options | ||
Prerendering docs | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters