mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-09 20:57:44 +00:00
fix: do not add a config folder to api path (#1187)
This commit is contained in:
23
__tests__/build-docs/build-docs-with-config-option/index.hbs
Normal file
23
__tests__/build-docs/build-docs-with-config-option/index.hbs
Normal file
@@ -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>
|
||||
@@ -0,0 +1,4 @@
|
||||
type: object
|
||||
properties:
|
||||
message:
|
||||
type: string
|
||||
@@ -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
|
||||
@@ -0,0 +1,5 @@
|
||||
extends:
|
||||
- minimal
|
||||
theme:
|
||||
openapi:
|
||||
htmlTemplate: ../index.hbs
|
||||
@@ -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
|
||||
|
||||
`;
|
||||
Reference in New Issue
Block a user