Skip to content

Commit 75065a2

Browse files
author
redocly-bot
committed
sync: Synced local 'docs/' with remote 'docs/redoc/'
1 parent ff492b5 commit 75065a2

File tree

7 files changed

+28
-26
lines changed

7 files changed

+28
-26
lines changed

docs/deployment/cli.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
title: Use the Redoc CLI
3-
redirectFrom:
4-
- /docs/redoc/quickstart/cli/
3+
redirects:
4+
'/docs/redoc/quickstart/cli/':
5+
to: '/docs/redoc/deployment/cli/'
56
---
67

78
# How to use the Redocly CLI

docs/deployment/docker.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
title: Use the Redoc Docker image
3-
redirectFrom:
4-
- /docs/redoc/quickstart/docker/
3+
redirects:
4+
'/docs/redoc/quickstart/docker/':
5+
to: '/docs/redoc/deployment/docker/'
56
---
67

78
# How to use the Redoc Docker image

docs/deployment/html.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
2-
title: Use Redoc in HTML
3-
redirectFrom:
4-
- /docs/redoc/quickstart/html/
5-
- /docs/redoc/quickstart/
2+
title: Use the Redoc HTML element
3+
redirects:
4+
'/docs/redoc/quickstart/html/':
5+
to: '/docs/redoc/deployment/html/'
6+
'/docs/redoc/quickstart/':
7+
to: '/docs/redoc/deployment/html/'
68
---
79

810
# Use Redoc in HTML
@@ -38,11 +40,9 @@ description.
3840
</html>
3941
```
4042

41-
:::success URL or local file
42-
43+
{ % admonition type="success" name="URL or local file" % }
4344
Set `spec-url` to a relative path if the file is local, e.g. `spec-url=my-api.yaml`. Use a full URL like the example above if it's hosted elsewhere.
44-
45-
:::
45+
{ % /admonition % }
4646

4747
Open the HTML file in your browser to see the HTML documentation rendering. You may want to read the next section and add some configuration to make your documentation your own.
4848

docs/deployment/intro.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
title: Redoc deployment guide
3-
redirectFrom:
4-
- /docs/redoc/quickstart/intro/
3+
redirects:
4+
'/docs/redoc/quickstart/intro/':
5+
to: '/docs/redoc/deployment/intro/'
56
---
67

78
# Redoc deployment guide
@@ -37,10 +38,10 @@ You need an OpenAPI definition. For testing purposes, you can use one of the fol
3738
- [Thingful OpenAPI Definition](https://raw.githubusercontent.com/thingful/openapi-spec/master/spec/swagger.yaml)
3839
- [Fitbit Plus OpenAPI Definition](https://raw.githubusercontent.com/TwineHealth/TwineDeveloperDocs/master/spec/swagger.yaml)
3940

40-
:::info OpenAPI specification
41+
{% admonition type="info" name="OpenAPI specification" %}
4142
For more information on the OpenAPI specification, refer to the [Learning OpenAPI 3](https://redocly.com/docs/resources/learning-openapi/)
4243
section in the documentation.
43-
:::
44+
{% /admonition %}
4445

4546
### How to run Redoc locally
4647

@@ -105,7 +106,7 @@ npm install -g http-server
105106
Then, `cd` into your project directory and run the following command:
106107

107108
```node
108-
http-server
109+
http - server;
109110
```
110111

111112
The output after entering the command provides the local URL where the preview can be accessed.

docs/deployment/react.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
title: Use the Redoc React component
3-
redirectFrom:
4-
- /docs/redoc/quickstart/react/
3+
redirects:
4+
'/docs/redoc/quickstart/react/':
5+
to: '/docs/redoc/deployment/react/'
56
---
67

78
# How to use the Redoc React component
@@ -71,7 +72,7 @@ is fully rendered or when an error occurs (with an error as the first argument).
7172
```js
7273
<RedocStandalone
7374
specUrl="http://petstore.swagger.io/v2/swagger.json"
74-
onLoaded={error => {
75+
onLoaded={(error) => {
7576
if (!error) {
7677
console.log('Yay!');
7778
}

docs/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Redoc is provided as a CLI tool (also distributed as a Docker image), HTML tag,
2828
If you have Node installed, quickly generate documentation using `npx`:
2929

3030
```
31-
npx @redocly/cli build-docs openapi.yaml
31+
npx @redocly/cli build-docs openapi.yaml
3232
```
3333

3434
The tool outputs by default to a file named `redoc-static.html` that you can open in your browser.
@@ -56,7 +56,7 @@ Check out the [deployment documentation](./deployment/intro.md) for more options
5656

5757
Redoc is highly configurable. Each deployment option accepts configuration in a way that's appropriate to that platform, but the options are the same for each. For example:
5858

59-
* Using [Redocly CLI](../cli/index.mdx), configuration goes in the `redocly.yaml` file, or can be supplied as command line parameters, such as `--theme.openapi.disableSearch`.
59+
* Using [Redocly CLI](../cli/index.md), configuration goes in the `redocly.yaml` file, or can be supplied as command line parameters, such as `--theme.openapi.disableSearch`.
6060
* Using HTML or React, configure by setting `option` in the tag.
6161

6262
Here's a sample `redocly.yaml` configuration file, showing a few common settings and tweaking some of the visual theme settings:

docs/quickstart.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ replace the `spec-url` attribute with the URL or local file address to your defi
4343
</html>
4444
```
4545

46-
:::attention Redoc requires an HTTP server to run locally
47-
46+
{% admonition type="attention" name="Redoc requires an HTTP server to run locally" %}
4847
Loading local OpenAPI definitions is impossible without running a web server because of issues with
4948
[same-origin policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy) and
5049
other security reasons. Refer to [Running Redoc locally](./deployment/intro.md#how-to-run-redoc-locally) for more information.
51-
52-
:::
50+
{% /admonition %}
5351

5452
For a more detailed explanation with step-by-step instructions and additional options for using Redoc, refer to the [Redoc deployment guide](./deployment/intro.md).

0 commit comments

Comments
 (0)