mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-10-31 07:47:29 +03:00 
			
		
		
		
	Merge pull request #1748 from HCloward/docs/more-readme-updates
[GSoD]Updates readme with about section and organizes features list
This commit is contained in:
		
						commit
						0f53f4b208
					
				
							
								
								
									
										146
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										146
									
								
								README.md
									
									
									
									
									
								
							|  | @ -1,7 +1,7 @@ | |||
| <div align="center"> | ||||
|   <img alt="ReDoc logo" src="https://raw.githubusercontent.com/Redocly/redoc/master/docs/images/redoc-logo.png" width="400px" /> | ||||
|   <img alt="Redoc logo" src="https://raw.githubusercontent.com/Redocly/redoc/master//docs/images/redoc.png" width="400px" /> | ||||
| 
 | ||||
|   **OpenAPI/Swagger-generated API Reference Documentation** | ||||
|   # Generate interactive API documentation from OpenAPI definitions | ||||
| 
 | ||||
|   [](https://travis-ci.com/Redocly/redoc) [](https://coveralls.io/github/Redocly/redoc?branch=master) [](https://david-dm.org/Redocly/redoc) [](https://david-dm.org/Redocly/redoc#info=devDependencies) [](https://www.npmjs.com/package/redoc) [](https://github.com/Redocly/redoc/blob/master/LICENSE) | ||||
| 
 | ||||
|  | @ -11,30 +11,93 @@ | |||
| **This is the README for the `2.x` version of Redoc (React-based).**  | ||||
| **The README for the `1.x` version is on the [v1.x](https://github.com/Redocly/redoc/tree/v1.x) branch** | ||||
| 
 | ||||
|  | ||||
| ## About Redoc | ||||
| 
 | ||||
| ## [Live demo](http://redocly.github.io/redoc/) | ||||
| Redoc is an open-source tool for generating documentation from OpenAPI (fka Swagger) definitions.  | ||||
| 
 | ||||
| [<img alt="Deploy to Github" src="http://i.imgur.com/YZmaqk3.png" height="60px">](https://github.com/Rebilly/generator-openapi-repo#generator-openapi-repo--) [<img alt="ReDoc as a service" src="http://i.imgur.com/edqdCv6.png" height="60px">](https://redoc.ly) [<img alt="Customization services" src="http://i.imgur.com/c4sUF7M.png" height="60px">](https://redoc.ly/#services) | ||||
| By default Redoc offers a three-panel, responsive layout:  | ||||
| 
 | ||||
| - The left panel contains a search bar and navigation menu. | ||||
| - The central panel contains the documentation. | ||||
| - The right panel contains request and response examples. | ||||
| 
 | ||||
|  | ||||
| 
 | ||||
| ## Live demo | ||||
| 
 | ||||
| If you want to see how Redoc will render your OpenAPI definition, | ||||
| you can try it out online at https://redocly.github.io/redoc/. | ||||
| 
 | ||||
| A version of the Swagger Petstore API is displayed by default. | ||||
| To test it with your own OpenAPI definition, | ||||
| enter the URL for your definition and select **TRY IT**. | ||||
| 
 | ||||
| ## Redoc vs. Reference vs. Portals | ||||
| 
 | ||||
| Redoc is Redocly's community-edition product. Looking for something more? | ||||
| Checkout the following feature comparison of Redocly's premium products versus Redoc: | ||||
| 
 | ||||
| | Features                     | Redoc     | Reference | Portals     | | ||||
| |------------------------------|:---------:|:---------:|:-----------:| | ||||
| | **Specs**                    |           |           |             | | ||||
| | Swagger 2.0                  | √         | √         | √           | | ||||
| | OpenAPI 3.0                  | √         | √         | √           | | ||||
| | OpenAPI 3.1                  | √ (basic) | √         | √           | | ||||
| |                              |           |           |             | | ||||
| | **Theming**                  |           |           |             | | ||||
| | Fonts/colors                 | √         | √         | √           | | ||||
| | Extra theme options          |           | √         | √           | | ||||
| |                              |           |           |             | | ||||
| | **Performance**              |           |           |             | | ||||
| | Pagination                   |           | √         | √           | | ||||
| | Search (enhanced)            |           | √         | √           | | ||||
| | Search (server-side)         |           |           | √           | | ||||
| |                              |           |           |             | | ||||
| | **Multiple APIs**            |           |           |             | | ||||
| | Multiple versions            |           | √         | √           | | ||||
| | Multiple APIs                |           |           | √           | | ||||
| | API catalog                  |           |           | √           | | ||||
| |                              |           |           |             | | ||||
| | **Additional features**      |           |           |             | | ||||
| | Try-it console               |           | √         | √           | | ||||
| | Automated code samples       |           | √         | √           | | ||||
| | Deep links                   |           | √         | √           | | ||||
| | More SEO control             |           |           | √           | | ||||
| | Contextual docs              |           |           | √           | | ||||
| | Landing pages                |           |           | √           | | ||||
| | React hooks for more control |           |           | √           | | ||||
| | Personalization              |           |           | √           | | ||||
| | Analytics integrations       |           |           | √           | | ||||
| | Feedback                     |           |           | Coming Soon | | ||||
| 
 | ||||
| Refer to the Redocly's documentation for more information on these products: | ||||
| 
 | ||||
| - [Portals](https://redoc.ly/docs/developer-portal/introduction/) | ||||
| - [Reference](https://redoc.ly/docs/api-reference-docs/getting-started/) | ||||
| - [Redoc](https://redoc.ly/docs/redoc/quickstart/intro/) | ||||
| 
 | ||||
| ## Features | ||||
| - Responsive three-panel design with menu/scrolling synchronization | ||||
| - [Multiple deployment options](https://redoc.ly/docs/redoc/quickstart/intro/) | ||||
| - [Server-side rendering (SSR) ready](https://redoc.ly/docs/redoc/quickstart/cli/#redoc-cli-commands) | ||||
| - [Simple integration with `create-react-app`](https://redoc.ly/docs/redoc/quickstart/react/) | ||||
|    | ||||
|   [See an example](https://github.com/APIs-guru/create-react-app-redoc) | ||||
| - [Command-line interface to bundle your docs into a **zero-dependency** HTML file](https://redoc.ly/docs/redoc/quickstart/cli/) | ||||
| - Responsive three-panel design with menu/scrolling synchronization | ||||
| - Deep linking support | ||||
| - Ability to integrate your API introduction into the side menu | ||||
| - High-level grouping in side-menu with [`x-tagGroups`](https://redoc.ly/docs/api-reference-docs/specification-extensions/x-tag-groups/) specification extension | ||||
| - [Simple integration with `create-react-app`](https://redoc.ly/docs/redoc/quickstart/react/) | ||||
| 
 | ||||
|   [Example repo](https://github.com/APIs-guru/create-react-app-redoc) | ||||
| - [Command-line interface to bundle your docs into a **zero-dependency** HTML file](https://redoc.ly/docs/redoc/quickstart/cli/) | ||||
| - Neat **interactive** documentation for nested objects <br> | ||||
|    | ||||
| 
 | ||||
| ## Customization options | ||||
| [<img alt="Customization services" src="http://i.imgur.com/c4sUF7M.png" height="60px">](https://redoc.ly/#services) | ||||
| - High-level grouping in side-menu with the [`x-tagGroups`](https://redoc.ly/docs/api-reference-docs/specification-extensions/x-tag-groups/) specification extension | ||||
| - Branding/customizations using the [`theme` option](https://redoc.ly/docs/api-reference-docs/configuration/theming/) | ||||
| 
 | ||||
| ## Support | ||||
| - OpenAPI v3.0 support | ||||
| - Basic OpenAPI v3.1 support | ||||
| - Broad OpenAPI v2.0 feature support (yes, it supports even `discriminator`) <br> | ||||
|    | ||||
| - Neat **interactive** documentation for nested objects <br> | ||||
|    | ||||
| - Code samples support (via vendor extension) <br> | ||||
|    | ||||
| 
 | ||||
|  | @ -44,12 +107,12 @@ | |||
| - `next` release: https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js | ||||
| 
 | ||||
| Additionally, all the 1.x releases are hosted on our GitHub Pages-based CDN **(deprecated)**: | ||||
| - particular release, e.g. `v1.2.0`: https://rebilly.github.io/ReDoc/releases/v1.2.0/redoc.min.js | ||||
| - particular release, for example `v1.2.0`: https://rebilly.github.io/ReDoc/releases/v1.2.0/redoc.min.js | ||||
| - `v1.x.x` release: https://rebilly.github.io/ReDoc/releases/v1.x.x/redoc.min.js | ||||
| - `latest` release: https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js - it will point to latest 1.x.x release since 2.x releases are not hosted on this CDN but on unpkg. | ||||
| 
 | ||||
| ## Version Guidance | ||||
| | ReDoc Release | OpenAPI Specification | | ||||
| | Redoc Release | OpenAPI Specification | | ||||
| |:--------------|:----------------------| | ||||
| | 2.0.0-alpha.54| 3.1, 3.0.x, 2.0       | | ||||
| | 2.0.0-alpha.x | 3.0, 2.0              | | ||||
|  | @ -66,16 +129,59 @@ Additionally, all the 1.x releases are hosted on our GitHub Pages-based CDN **(d | |||
| - [APIs.guru](https://apis.guru/api-doc/) | ||||
| - [BoxKnight](https://www.docs.boxknight.com/) | ||||
| 
 | ||||
| ## Lint OpenAPI definitions | ||||
| 
 | ||||
| Redocly's OpenAPI CLI is an open source command-line tool that you can use to lint | ||||
| your OpenAPI definition. Linting helps you to catch errors and inconsistencies in your | ||||
| OpenAPI definition before publishing.  | ||||
| 
 | ||||
| Refer to [Lint configuration](https://redoc.ly/docs/cli/guides/lint/) in the OpenAPI documentation for more information. | ||||
| 
 | ||||
| ## Deployment | ||||
| 
 | ||||
| ### TL;DR final code example | ||||
| 
 | ||||
| To render your OpenAPI definition using Redoc, use the following HTML code sample and | ||||
| replace the `spec-url` attribute with the url or local file address to your definition. | ||||
| 
 | ||||
| ```html | ||||
| <!DOCTYPE html> | ||||
| <html> | ||||
|   <head> | ||||
|     <title>Redoc</title> | ||||
|     <!-- needed for adaptive design --> | ||||
|     <meta charset="utf-8"/> | ||||
|     <meta name="viewport" content="width=device-width, initial-scale=1"> | ||||
|     <link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet"> | ||||
| 
 | ||||
|     <!-- | ||||
|     Redoc doesn't change outer page styles | ||||
|     --> | ||||
|     <style> | ||||
|       body { | ||||
|         margin: 0; | ||||
|         padding: 0; | ||||
|       } | ||||
|     </style> | ||||
|   </head> | ||||
|   <body> | ||||
|     <redoc spec-url='http://petstore.swagger.io/v2/swagger.json'></redoc> | ||||
|     <script src="https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js"> </script> | ||||
|   </body> | ||||
| </html> | ||||
| 
 | ||||
| ``` | ||||
| 
 | ||||
| For step-by-step instructions for how to get started using Redoc | ||||
| to render your OpenAPI definition, refer to the  | ||||
| [Redoc quickstart guide](https://redoc.ly/docs/redoc/quickstart/intro/). | ||||
| [**Redoc quickstart guide**](https://redoc.ly/docs/redoc/quickstart/intro/). | ||||
| 
 | ||||
| [**IE11 Support Notes**](docs/usage-with-ie11.md) | ||||
| See [**IE11 Support Notes**](docs/usage-with-ie11.md) for information on  | ||||
| IE support for Redoc. | ||||
| 
 | ||||
| ## ReDoc CLI | ||||
| ## Redoc CLI | ||||
| For more information on Redoc's commmand-line interface, refer to | ||||
| [Using the Redoc CLI](https://redoc.ly/docs/redoc/quickstart/cli/). | ||||
| [**Using the Redoc CLI**](https://redoc.ly/docs/redoc/quickstart/cli/). | ||||
| 
 | ||||
| ## Configuration | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										
											BIN
										
									
								
								docs/images/redoc.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								docs/images/redoc.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 7.9 KiB | 
		Loading…
	
		Reference in New Issue
	
	Block a user