Skip to content

Commit f1e595b

Browse files
committed
Merge branch 'optimize-sitetree' of github.com:github/docs-internal into do-not-mutate-page-in-sitetree
2 parents ab7cbda + cac0ccf commit f1e595b

5 files changed

Lines changed: 29 additions & 5 deletions

File tree

data/graphql/schema.docs.graphql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13418,6 +13418,11 @@ type MarketplaceListing implements Node {
1341813418
"""
1341913419
hasTermsOfService: Boolean!
1342013420

13421+
"""
13422+
Whether the creator of the app is a verified org
13423+
"""
13424+
hasVerifiedOwner: Boolean!
13425+
1342113426
"""
1342213427
A technical description of how this app works with GitHub.
1342313428
"""

lib/graphql/static/changelog.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
[
2+
{
3+
"schemaChanges": [
4+
{
5+
"title": "The GraphQL schema includes these changes:",
6+
"changes": [
7+
"Field `hasVerifiedOwner` was added to object type `MarketplaceListing`"
8+
]
9+
}
10+
],
11+
"previewChanges": [],
12+
"upcomingChanges": [],
13+
"date": "2020-12-09"
14+
},
215
{
316
"date": "2020-11-13",
417
"schemaChanges": [

lib/graphql/static/prerendered-objects.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/graphql/static/schema-dotcom.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21683,6 +21683,14 @@
2168321683
"kind": "scalars",
2168421684
"href": "/graphql/reference/scalars#boolean"
2168521685
},
21686+
{
21687+
"name": "hasVerifiedOwner",
21688+
"description": "<p>Whether the creator of the app is a verified org.</p>",
21689+
"type": "Boolean!",
21690+
"id": "boolean",
21691+
"kind": "scalars",
21692+
"href": "/graphql/reference/scalars#boolean"
21693+
},
2168621694
{
2168721695
"name": "howItWorks",
2168821696
"description": "<p>A technical description of how this app works with GitHub.</p>",

middleware/breadcrumbs.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = async (req, res, next) => {
4949
// e.g., /github/getting-started-with-github/learning-about-github
5050
let maptopic
5151
if (req.context.page.mapTopic) {
52-
const maptopicPath = path.posix.join(categoryPath, pathParts[2])
52+
const maptopicPath = req.path
5353

5454
maptopic = category.maptopics[maptopicPath]
5555

@@ -60,9 +60,7 @@ module.exports = async (req, res, next) => {
6060
title: maptopic.shortTitle || maptopic.title
6161
}
6262
} else {
63-
// get article path
64-
// e.g., /github/getting-started-with-github/githubs-products
65-
const articlePath = path.posix.join(categoryPath, pathParts[2])
63+
const articlePath = req.path
6664

6765
// find parent maptopic if one exists
6866
// some categories don't have maptopics, e.g. site-policy

0 commit comments

Comments
 (0)