-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Frontmatter style guide fixes (#17394)
* chore(style guide): Rename frontmatter doc * feat(style guide): Doc undocced frontmatter fields * feat(style guide): Define all "content types" * feat(style guide): Explain translate field * chore(style guide): Fix wrong `translate` info * chore(style guide): Remove deprecated contentType * chore(style guide): Remove topics, templates from frontmatter * mayhaps some fixes? * fix(style guide): Fixed a typo --------- Co-authored-by: alexa <akristensen@newrelic.com> Co-authored-by: nbaenam <nbaena@newrelic.com>
- Loading branch information
1 parent
3a5029c
commit 7c556b0
Showing
35 changed files
with
184 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/content/docs/style-guide/word-choice/nerdgraph-doc-guidelines.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/content/docs/style-guide/word-choice/pricing-language-guidelines.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/content/docs/style-guide/word-choice/user-related-language-guidelines.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...e-guide/writing-docs/article-templates/apistyleguidelines-example-agent-api.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
...content/docs/style-guide/writing-docs/article-templates/prometheus-template.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
...docs/style-guide/writing-docs/article-templates/whats-new-tech-writer-tasks.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
src/content/docs/style-guide/writing-docs/article-templates/whats-new-template.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
.../docs/style-guide/writing-docs/processes-procedures/create-preview-document.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
...ent/docs/style-guide/writing-docs/processes-procedures/create-release-notes.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
179 changes: 179 additions & 0 deletions
179
...cs/style-guide/writing-docs/processes-procedures/frontmatter-page-templates.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
--- | ||
title: Frontmatter and page templates | ||
tags: | ||
- Tech writer style guide | ||
- Processes and procedures | ||
redirects: | ||
- /docs/new-relic-only/style-guide/processes-and-procedures/using-content-editors | ||
- /docs/new-relic-only/style-guide/processes-procedures/using-content-editors | ||
- /docs/new-relic-only/advanced-style-guide/processes-procedures/using-content-editors | ||
- /docs/new-relic-only/tech-writer-style-guide/processes-procedures/using-content-editors | ||
- /docs/style-guide/processes-procedures/use-content-types-text-formats | ||
- /docs/style-guide/writing-docs/processes-procedures/use-content-types-text-formats | ||
--- | ||
|
||
This style guide page describes the standard frontmatter for docs, and also outlines the various types of content we maintain on the site. | ||
|
||
## Docs frontmatter and metadata [#meta-fields] | ||
|
||
The top of every doc begins with a set of metadata. Read on for more about this metadata content: | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<th width={150}> | ||
**Meta content field** | ||
</th> | ||
|
||
<th> | ||
**Description** | ||
</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
<tr> | ||
<td> | ||
`title` | ||
</td> | ||
|
||
<td> | ||
The primay title of the doc, which will show up at the top of the doc as an `<h1>` HTML header, in the browser page title, and in search engine meta fields. | ||
|
||
Whenever possible, provide an action-oriented or task-oriented title; for example, "AJAX page: Identify time-consuming calls." In general, use sentence case. Capitalize only the first word. Do not capitalize any other word in the title unless it's a proper noun, such as a specific product name, or it follows a colon `:`. | ||
|
||
If you're looking for ideas on how to choose a title, browse the titles of similar docs. | ||
|
||
The title used in the sidebar (left navigation pane) is set in [the nav file](/docs/style-guide/processes-procedures/update-left-navigation-pane). | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td> | ||
`tags` | ||
</td> | ||
|
||
<td> | ||
Deprecated. Historically, tags were used to help search engines and AI find the right content. Modern engines are sophisticated enough to infer that context without tags, so this tag is no longer needed. | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td> | ||
`translate` | ||
</td> | ||
|
||
<td> | ||
Indicates which languages this page is human-translated into. This field doesn't govern machine translation; generally speaking, all "standard" docs on the site are machine-translated into all languages. For more, see [Docs translation](/docs/style-guide/writing-docs/docs-translation/). | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td> | ||
`metaDescription` | ||
</td> | ||
|
||
<td> | ||
A short description of the doc. Search engines rely on this field to understand what a doc is about, and they'll often show the meta description right in the search results. Should be under 160 characters. For more on why meta descriptions matter to search, see [Control your snippets in search results](https://developers.google.com/search/docs/appearance/snippet) in Google's documentation. | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td> | ||
`redirects` | ||
</td> | ||
|
||
<td> | ||
Redirects **to** this doc from old URLs. One redirect per line. Use a relative path and don't include a trailing slash `/`. | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td> | ||
`freshnessValidatedDate` | ||
</td> | ||
|
||
<td> | ||
The last time a writer made significant updates to this doc and verified its accuracy. | ||
|
||
The default is `never`. When you make a significant update to a doc, add today's date in this format: `YYYY-MM-DD`. | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
## Page templates | ||
|
||
The docs site doesn't have strict page templates—since we have a "docs as code" approach, writers can use a variety of components to structure docs however they think best. However, we do have several unique types of content that behave differently than our standard `.mdx` docs. | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<th width={150}> | ||
**Content type** | ||
</th> | ||
|
||
<th> | ||
**Description** | ||
</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
<tr> | ||
<td> | ||
"Standard" docs | ||
</td> | ||
|
||
<td> | ||
A standard `.mdx` file, living in the `/src/content/docs/` subdirectory. This content type is used for the majority of content on the site. | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td> | ||
Attribute definition | ||
</td> | ||
|
||
<td> | ||
This format is for defining attributes and event types. These definitions live in their own GitHub Enterprise repo, then they're published to the docs site and NerdGraph via the data dictionary service. For more, see [Work with attribute definition content type](/docs/style-guide/article-templates/attribute-definition-template). | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td> | ||
Branching install docs | ||
</td> | ||
|
||
<td> | ||
This format is for interactive installation docs. Branching install docs consist of multiple components in individual `.mdx` files that live together in a subdirectory, with the logic that defines which pieces to show when defined in a separate `.yaml` file. Branching install content lives in the `/src/install/` subdirectory. | ||
|
||
For more, see [Get started with the branched install component](/docs/style-guide/writing-docs/article-templates/intro-branch-install-doc/). | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td> | ||
Release notes | ||
</td> | ||
|
||
<td> | ||
This format includes unique frontmatter fields. Release notes live in `/src/content/docs/release-notes/`, and they are generally authored by product teams rather than writers. | ||
|
||
Users rely on release notes to keep up with smaller changes in the product, particularly for downloadable software like the agents. For more, see [Create release notes](/docs/style-guide/article-templates/create-release-notes/). | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td> | ||
What's New posts | ||
</td> | ||
|
||
<td> | ||
This format includes unique frontmatter fields. What's New posts are created by PMM for larger announcements. Unlike most content, they live in `/src/content/whats-new/` rather than in the `/docs/` subdirectory. | ||
|
||
They're available in the docs site, but they're also visible in the New Relic UI. For more, see [What's New style guidelines](/docs/style-guide/article-templates/whats-new-style-guidelines/). | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> |
Oops, something went wrong.