Skip to content

Commit 94220ba

Browse files
felicitymayemilyistoofunky
andauthoredAug 3, 2021
Propose updates to templates to support landing/guide pages and updated navigation (github#20273)
* Propose updates to templates * Replace link to docs-internal Co-authored-by: Emily Gould <[email protected]>
1 parent f25f8ad commit 94220ba

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed
 

‎content/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ See [`contributing/redirects`](contributing/redirects.md) for more info.
108108

109109
### `shortTitle`
110110

111-
- Purpose: An abbreviated variant of the page title for use in breadcrumbs.
111+
- Purpose: An abbreviated variant of the page title for use in breadcrumbs and navigation elements.
112112
- Type: `String`
113113
- Optional. If omitted, `title` will be used.
114114

‎contributing/content-model.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Categories are usually organized around a feature or a discrete set of tasks wit
3636
- Task-based (begins with a gerund)
3737
- Describes the big-picture purpose or goal of using the feature or product
3838
- General or high-level enough to scale with future product enhancements
39-
- Category titles must be 67 characters or shorter
39+
- Category titles must be 67 characters or shorter and have a [`shortTitle`](https://github.com/github/docs/tree/main/content#shorttitle) less than 27 characters
4040
- Examples
4141
- [Setting up and managing your GitHub user account](https://docs.github.com/en/github/setting-up-and-managing-your-github-user-account)
4242
- [Installing GitHub Enterprise](https://docs.github.com/en/enterprise-server@3.0/admin/installation)
@@ -54,7 +54,7 @@ Map topics contain at least three articles. When map topics have more than eight
5454
- Task-based (begins with a gerund)
5555
- Describes a more specific task within the larger workflow of the category it’s in
5656
- General or high-level enough to scale with future additions to the product
57-
- Map topic titles must be 63 characters or shorter
57+
- Map topic titles must be 63 characters or shorter and have a [`shortTitle`](https://github.com/github/docs/tree/main/content#shorttitle) less than 30 characters
5858
- Examples
5959
- [Securing your account with two-factor authentication](https://docs.github.com/en/github/authenticating-to-github/securing-your-account-with-two-factor-authentication-2fa)
6060
- [Setting policies for organizations in your enterprise account](https://docs.github.com/en/github/setting-up-and-managing-your-enterprise/setting-policies-for-organizations-in-your-enterprise-account)
@@ -103,9 +103,9 @@ Titles are challenging! Use these general guidelines to help create clear, helpf
103103
- What specific words do we need to include in the title or intro so that folks don’t mistake it for content about a different product?
104104
- Think about how the title will look in production
105105
- Titles have hard limits for length to keep them easy to understand (and easier to render on the site):
106-
- Category titles: 67 characters
107-
- Map topic titles: 63 characters
108-
- Article titles: 80 characters, 60 if possible
106+
- Category titles: 67 characters and [`shortTitle`](https://github.com/github/docs/tree/main/content#shorttitle) < 27 characters
107+
- Map topic titles: 63 characters and [`shortTitle`](https://github.com/github/docs/tree/main/content#shorttitle) < 30 characters
108+
- Article titles: 80 characters, 60 if possible, and [`shortTitle`](https://github.com/github/docs/tree/main/content#shorttitle) < 31 characters, ideally 20-25 characters
109109

110110
### Reusing content
111111

‎contributing/content-templates.md

+24
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ Use the [content model](/contributing/content-model.md#conceptual) for full inst
1616
```
1717
---
1818
title: About [subject]
19+
shortTitle: [subject] # Max 31 characters
1920
intro: 'Article intro. See tips for a great intro below.'
2021
product: '{{ optional product callout }}'
22+
type: overview
23+
topics: # One or more from list of allowed topics: https://github.com/github/docs/blob/main/data/allowed-topics.js
24+
- [topic]
2125
versions:
2226
---
2327
@@ -51,8 +55,12 @@ Use the [content model](https://github.com/github/docs/blob/main/contributing/co
5155
```
5256
---
5357
title: Nouns describing your subject
58+
shortTitle: [subject] # Max 31 characters
5459
intro: 'Article intro. See tips for a great intro below.'
5560
product: '{{ optional product callout }}'
61+
type: reference
62+
topics: # One or more from list of allowed topics: https://github.com/github/docs/blob/main/data/allowed-topics.js
63+
- [topic]
5664
versions:
5765
---
5866
@@ -86,8 +94,12 @@ Use the [content model](https://github.com/github/docs/blob/main/contributing/co
8694
```
8795
---
8896
title: Start with a gerund
97+
shortTitle: [subject] # Max 31 characters
8998
intro: 'Article intro. See tips for a great intro below.'
9099
product: '{{ optional product callout }}'
100+
type: how_to
101+
topics: # One or more from list of allowed topics: https://github.com/github/docs/blob/main/data/allowed-topics.js
102+
- [topic]
91103
versions:
92104
---
93105
@@ -121,7 +133,11 @@ Use the [content model](https://github.com/github/docs/blob/main/contributing/co
121133
```
122134
---
123135
title: Quickstart title
136+
shortTitle: [subject] # Max 31 characters
124137
intro: 'Article intro. Highlight that the guide is quick and to the point.'
138+
type: quick_start
139+
topics: # One or more from list of allowed topics: https://github.com/github/docs/blob/main/data/allowed-topics.js
140+
- [topic]
125141
versions:
126142
---
127143
@@ -170,8 +186,12 @@ Use the [content model](https://github.com/github/docs/blob/main/contributing/co
170186
```
171187
---
172188
title: Tutorial title
189+
shortTitle: [subject] # Max 31 characters
173190
intro: 'Article intro. See tips for a great intro below'
174191
product: '{{ optional product callout }}'
192+
type: tutorial
193+
topics: # One or more from list of allowed topics: https://github.com/github/docs/blob/main/data/allowed-topics.js
194+
- [topic]
175195
versions:
176196
---
177197
@@ -233,8 +253,12 @@ Use the [tutorial content model](hhttps://github.com/github/docs/blob/main/contr
233253
```
234254
---
235255
title: Guide title
256+
shortTitle: [subject] # Max 31 characters
236257
intro: 'Article intro. See tips for a great intro below'
237258
product: '{{ site.data.reusables.gated-features.actions }}'
259+
type: tutorial
260+
topics: # One or more from list of allowed topics: https://github.com/github/docs/blob/main/data/allowed-topics.js
261+
- [topic]
238262
versions:
239263
---
240264

0 commit comments

Comments
 (0)