mirror of
https://github.com/Fishwaldo/huma.git
synced 2025-03-15 19:31:27 +00:00
docs: updated logo/branding
This commit is contained in:
parent
c068b25a1b
commit
a83f570f74
2 changed files with 5 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||

|
||||

|
||||
|
||||
[](https://github.com/danielgtaylor/huma/actions?query=workflow%3ACI+branch%3Amaster++) [](https://codecov.io/gh/danielgtaylor/huma) [](https://pkg.go.dev/github.com/danielgtaylor/huma?tab=doc) [](https://goreportcard.com/report/github.com/danielgtaylor/huma)
|
||||
|
||||
|
@ -225,7 +225,7 @@ Date: Sat, 07 Mar 2020 22:22:06 GMT
|
|||
|
||||
The server works and responds as expected. There are also some neat extras built-in. If you go to http://localhost:8888/docs in a browser, you will see auto-generated interactive documentation:
|
||||
|
||||
<img width="986" alt="Screen Shot 2020-03-28 at 11 25 53 PM" src="https://user-images.githubusercontent.com/106826/77842804-8d941700-714b-11ea-8bf6-8e6a63af4a2c.png">
|
||||
<img width="878" alt="Screen Shot 2020-03-31 at 11 22 55 PM" src="https://user-images.githubusercontent.com/106826/78105715-a9dfc000-73a6-11ea-8002-371024253daf.png">
|
||||
|
||||
The documentation is generated from the OpenAPI 3 spec file that is available at http://localhost:8888/openapi.json. You can also access this spec without running the server:
|
||||
|
||||
|
|
4
docs.go
4
docs.go
|
@ -19,7 +19,9 @@ func RapiDocHandler(c *gin.Context, api *OpenAPI) {
|
|||
<rapi-doc
|
||||
spec-url="/openapi.json"
|
||||
render-style="read"
|
||||
show-header="false"
|
||||
show-header="false"
|
||||
primary-color="#f74799"
|
||||
nav-accent-color="#47afe8"
|
||||
> </rapi-doc>
|
||||
</body>
|
||||
</html>`, api.Title)))
|
||||
|
|
Loading…
Add table
Reference in a new issue