Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repo sync #4487

Merged
merged 35 commits into from
Mar 12, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
c17b586
add reusable file and reusable to articles
mchammer01 Feb 9, 2021
395dd6a
complete work
mchammer01 Mar 9, 2021
44d34f5
Add support for new contributor frontmatter object
swinton Mar 10, 2021
953b967
Replace partner-callout with contributor-callout
Mar 11, 2021
2ea9b2d
Add contributor_callout
swinton Mar 11, 2021
221d6a8
Reference ui.contributor_callout data attribute
Mar 11, 2021
16b2b27
Apply margin style to .contributor-callout p element
swinton Mar 11, 2021
dfae341
Fine-tune contributor_callout
Mar 11, 2021
81f9cde
Add info octicon next to contributor callout
swinton Mar 11, 2021
cd87b0e
Document new contributor YAML frontmatter
swinton Mar 11, 2021
5ca3c87
Remove 'rel="nofollow"' from contributor links
swinton Mar 11, 2021
90ced5f
Merge branch 'main' into feat/add-contributor-frontmatter
sarahs Mar 12, 2021
afe0b18
finish addressing comments
mchammer01 Mar 12, 2021
4df2325
Merge branch 'main' into 2764-dependabot-improvements
mchammer01 Mar 12, 2021
118a654
update screenshot
mchammer01 Mar 12, 2021
71eaf3f
update screenshot
mchammer01 Mar 12, 2021
513453e
Update webhook examples
shati-patel Mar 12, 2021
7e459b2
repo sync
Octomerger Mar 12, 2021
9eb195d
Apply suggestions from code review
mchammer01 Mar 12, 2021
e0b29c3
address latest comments
mchammer01 Mar 12, 2021
ad592ce
move full stop
mchammer01 Mar 12, 2021
3ee7d92
Merge branch 'main' into 2764-dependabot-improvements
mchammer01 Mar 12, 2021
a863bc4
Merge pull request #18184 from github/2764-dependabot-improvements
mchammer01 Mar 12, 2021
b8b6314
update another screenshot
mchammer01 Mar 12, 2021
a101b11
Merge branch '3814-master-main' of github.com:github/docs-internal in…
mchammer01 Mar 12, 2021
677fd3f
Merge branch 'main' into 3814-master-main
mchammer01 Mar 12, 2021
54b7f16
Merge pull request #18241 from github/3814-master-main
mchammer01 Mar 12, 2021
2235827
Merge branch 'main' into feat/add-contributor-frontmatter
sarahs Mar 12, 2021
6fa29ab
Merge pull request #18214 from github/feat/add-contributor-frontmatter
sarahs Mar 12, 2021
834163a
add topic frontmatter (#18238)
rachmari Mar 12, 2021
d24671e
remove spreadsheet (#18244)
rachmari Mar 12, 2021
d18ed5f
Update vendor docs for gomod (#18210)
asciimike Mar 12, 2021
9c0c592
Add SendGrid API keys as a detected secret type (#18234)
Mar 12, 2021
be6f869
Fix two broken links (#18247)
mattpollard Mar 12, 2021
7c642a4
Add issue template to guide partner documentation contributions (#17998)
Mar 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add support for new contributor frontmatter object
  • Loading branch information
swinton committed Mar 10, 2021
commit 44d34f5c52358cedfe5267dc779f66c55bb54601
6 changes: 6 additions & 0 deletions includes/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ <h1 class="border-bottom-0">{{ page.title }}</h1>
</div>
</div>

{% if page.contributor %}
<div class="partner-callout border rounded-1 mb-4 p-3 border-blue bg-blue-light f5">
<p>This page is kindly contributed and maintained by <a href="{{ page.contributor.URL }}" rel="nofollow">{{ page.contributor.name }}</a>.</p>
</div>
{% endif %}

{% if page.intro %}
<div class="lead-mktg">{{ page.intro }}</div>
{% endif %}
Expand Down
8 changes: 8 additions & 0 deletions lib/frontmatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ const schema = {
defaultPlatform: {
type: 'string',
enum: ['mac', 'windows', 'linux']
},
// Documentation contributed by a third party, such as a GitHub Partner
contributor: {
type: 'object',
properties: {
name: { type: 'string' },
URL: { type: 'string' }
}
}
}
}
Expand Down