Skip to content

Commit

Permalink
feat: use config.Info.Title as the page title in the API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nstapelbroek committed Mar 31, 2024
1 parent 10e15d1 commit 2b1e0b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ func NewAPI(config Config, a Adapter) API {
<meta charset="utf-8" />
<meta name="referrer" content="same-origin" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>Elements in HTML</title>
<title>` + config.Info.Title + ` reference</title>
<!-- Embed elements Elements via Web Component -->
<link href="https://unpkg.com/@stoplight/[email protected]/styles.min.css" rel="stylesheet" />
<script src="https://unpkg.com/@stoplight/[email protected]/web-components.min.js"
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/features/api-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ router.Get("/docs", func(w http.ResponseWriter, r *http.Request) {
<meta charset="utf-8" />
<meta name="referrer" content="same-origin" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>Elements in HTML</title>
<title>Docs Example reference</title>
<!-- Embed elements Elements via Web Component -->
<link href="https://unpkg.com/@stoplight/[email protected]/styles.min.css" rel="stylesheet" />
<script src="https://unpkg.com/@stoplight/[email protected]/web-components.min.js"
Expand Down

0 comments on commit 2b1e0b4

Please sign in to comment.