Skip to content

Commit

Permalink
Document target property for nav links and apply to some links in m…
Browse files Browse the repository at this point in the history
…anifest (#1012)
  • Loading branch information
bradlc authored May 9, 2024
1 parent bd29461 commit 7a5f377
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ type LinkItem = {
* @default true
*/
wrap?: boolean
/**
* Set to "_blank" to open link in a new tab
*/
target?: '_blank'
}
type SubNavItem = {
/**
Expand Down
8 changes: 4 additions & 4 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -999,8 +999,8 @@
"title": "Create a minimal reproduction",
"href": "/docs/troubleshooting/create-a-minimal-reproduction"
},
{ "title": "Community Discord", "href": "/discord" },
{ "title": "Contact Support", "href": "/support" }
{ "title": "Community Discord", "href": "/discord", "target": "_blank" },
{ "title": "Contact Support", "href": "/support", "target": "_blank" }
]
]
}
Expand Down Expand Up @@ -2188,8 +2188,8 @@
"title": "API References",
"items": [
[
{ "title": "Backend API", "href": "/docs/reference/backend-api" },
{ "title": "Frontend API", "href": "/docs/reference/frontend-api" }
{ "title": "Backend API", "href": "/docs/reference/backend-api", "target": "_blank" },
{ "title": "Frontend API", "href": "/docs/reference/frontend-api", "target": "_blank" }
]
]
}
Expand Down
4 changes: 4 additions & 0 deletions docs/manifest.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
},
"icon": {
"$ref": "#/$defs/icon"
},
"target": {
"type": "string",
"enum": ["_blank"]
}
}
},
Expand Down

0 comments on commit 7a5f377

Please sign in to comment.