File tree Expand file tree Collapse file tree 5 files changed +29
-1
lines changed Expand file tree Collapse file tree 5 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ See the [contributing docs](/CONTRIBUTING.md) for general information about work
25
25
- [ ` includeGuides ` ] ( #includeGuides )
26
26
- [ ` type ` ] ( #type )
27
27
- [ ` topics ` ] ( #topics )
28
+ - [ ` contributor ` ] ( #contributor )
28
29
- [ Escaping single quotes] ( #escaping-single-quotes )
29
30
- [ Autogenerated mini TOCs] ( #autogenerated-mini-tocs )
30
31
- [ Versioning] ( #versioning )
@@ -231,6 +232,18 @@ includeGuides:
231
232
- Type : ` String`
232
233
- Optional.
233
234
235
+ # ## `contributor`
236
+ - Purpose : Indicate an article is contributed and maintained by a third-party organization, typically a GitHub Technology Partner.
237
+ - Type : ` Object` . Properties are `name` and `URL`.
238
+ - Optional.
239
+
240
+ Example :
241
+
242
+ ` ` ` yml
243
+ contributor:
244
+ name: ACME, inc.
245
+ URL: https://acme.example.com/
246
+ ` ` `
234
247
235
248
# ## Escaping single quotes
236
249
Original file line number Diff line number Diff line change @@ -158,3 +158,4 @@ product_sublanding:
158
158
learning_track_nav :
159
159
prevGuide : Previous guide
160
160
nextGuide : Next guide
161
+ contributor_callout : This article is contributed and maintained by
Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ <h1 class="border-bottom-0">{{ page.title }}</h1>
20
20
</ div >
21
21
</ div >
22
22
23
+ {% if page.contributor %}
24
+ < div class ="contributor-callout border rounded-1 mb-4 p-3 border-blue bg-blue-light f5 ">
25
+ < p > < span class ="mr-2 "> {% octicon "info" %}</ span > {% data ui.contributor_callout %} < a href ="{{ page.contributor.URL }} "> {{ page.contributor.name }}</ a > .</ p >
26
+ </ div >
27
+ {% endif %}
28
+
23
29
{% if page.intro %}
24
30
< div class ="lead-mktg "> {{ page.intro }}</ div >
25
31
{% endif %}
Original file line number Diff line number Diff line change @@ -119,6 +119,14 @@ const schema = {
119
119
defaultPlatform : {
120
120
type : 'string' ,
121
121
enum : [ 'mac' , 'windows' , 'linux' ]
122
+ } ,
123
+ // Documentation contributed by a third party, such as a GitHub Partner
124
+ contributor : {
125
+ type : 'object' ,
126
+ properties : {
127
+ name : { type : 'string' } ,
128
+ URL : { type : 'string' }
129
+ }
122
130
}
123
131
}
124
132
}
Original file line number Diff line number Diff line change 65
65
color : $text-gray-dark ;
66
66
}
67
67
68
- .product-callout p {
68
+ .product-callout p , .contributor-callout p {
69
69
margin : 0 ;
70
70
}
71
71
You can’t perform that action at this time.
0 commit comments