Skip to content

Commit 5812d05

Browse files
authored
Merge pull request #580 from newrelic/jerel/nr-only-edits
Move NR-only edits to manual-edits folder
2 parents 5eb1a57 + 0314147 commit 5812d05

File tree

86 files changed

+651
-6585
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+651
-6585
lines changed

scripts/utils/migrate/copy-manual-edits.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
const fs = require('fs');
22
const vfileGlob = require('vfile-glob');
33
const { write } = require('to-vfile');
4+
const rimraf = require('rimraf');
5+
6+
const deletedFiles = [
7+
'src/content/docs/new-relic-only/tech-writer-style-guide/processes-procedures/clear-cache.mdx',
8+
'src/content/docs/new-relic-only/basic-style-guide/style-guide-quick-reference/html-cheat-sheet.mdx',
9+
'src/content/docs/new-relic-only/tech-writer-style-guide/processes-procedures/checklist-public-beta-or-ga.mdx',
10+
'src/content/docs/new-relic-only/tech-writer-style-guide/processes-procedures/hide-or-restrict-content.mdx',
11+
'src/content/docs/new-relic-only/tech-writer-style-guide/processes-procedures/translation-process.mdx',
12+
];
413

514
const copyManualEdits = () => {
615
return new Promise((resolve) => {
@@ -15,6 +24,7 @@ const copyManualEdits = () => {
1524
await write(file, 'utf-8');
1625
},
1726
complete: () => {
27+
deletedFiles.forEach((file) => rimraf.sync(file));
1828
resolve();
1929
},
2030
});

src/content/docs/new-relic-only/basic-style-guide/style-guide-quick-reference/bold-or-code-not-italics.mdx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@ topics:
77
- Basic style guide
88
- Style guide quick reference
99
redirects:
10-
- >-
11-
/docs/new-relic-only/basic-style-guide/writing-guidelines/bold-or-code-not-italics
10+
- /docs/new-relic-only/basic-style-guide/writing-guidelines/bold-or-code-not-italics
1211
watermark: NR ONLY
1312
---
1413

15-
Do not format your text with italics. Instead, format your text using **bold** or `code` when necessary. For example:
14+
If you'd like to emphasize text in our docs, please follow these simple guidelines:
1615

17-
* Use `code` for things the user is likely to copy and paste.
18-
* Use **bold** for anything else you need to emphasize.
16+
* Use `code` for things the user is likely to copy and paste, like a file path or a command line example.
17+
* Use **bold** for anything else you need to emphasize, like a UI name or to highlight an important word.
1918

20-
The Tech Docs team follows these rules:
19+
We don't format text in our docs with **italics**.
20+
21+
Here are more specific guidelines our team uses.
2122

2223
<Table>
2324
<thead>
@@ -180,7 +181,7 @@ The Tech Docs team follows these rules:
180181
<td/>
181182

182183
<td>
183-
Go to **[rpm.newrelic.com/apm](https://rpm.newrelic.com/apm) > (select an app) > Overview > Web transactions**. For more information, see [UI paths](/docs/new-relic-only/basic-style-guide/writing-guidelines/usage-dictionary#ui-path).
184+
Go to **[one.newrelic.com](https://one.newrelic.com) > APM > (select an app) > Transactions**. For more information, see [UI paths](/docs/new-relic-only/basic-style-guide/writing-guidelines/usage-dictionary#ui-path).
184185

185186
<Callout variant="tip">
186187
If you have a UI object (page, tab, etc.) that also has link formatting, then you don't need to add the bold formatting.

src/content/docs/new-relic-only/basic-style-guide/style-guide-quick-reference/callouts.mdx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,23 @@ redirects:
1111
watermark: NR ONLY
1212
---
1313

14-
Callouts direct your attention to information of special importance or to information that doesn't fit smoothly into the main text. However, if there are too many callouts in your doc, it makes it confusing what exactly matters the most.
14+
Callouts direct your attention to information of special importance or to information that doesn't fit smoothly into the main text. Consider your reader. If your doc has too many callouts, it might confuse your reader about what matters the most and distract them from what does.
1515

16-
Avoid littering your doc with an excessive number of callouts, because they can quickly distract readers. Instead, use them judiciously. **Recommendation:** Skim the complete doc. If there are too many callouts, decide which ones can be removed.
16+
Use your callouts judiciously. **Recommendation:** Skim the complete doc. If there are too many callouts, decide which ones can be removed.
1717

1818
## Types of callouts [#classes]
1919

20-
Here is an example of the `callout` format:
20+
Here's an example of the `callout` format:
2121

2222
```
23-
<div class="callout-tip">
24-
<p>Enclose your callouts in division tags.</p>
25-
</div>
23+
<Callout variant="tip">
24+
Your tip text goes here.
25+
26+
It can have multiple paragraphs.
27+
</Callout>
2628
```
2729

28-
The Docs site uses these callout classes:
30+
On our Docs site, we use these callout classes:
2931

3032
<CollapserGroup>
3133
<Collapser
@@ -54,7 +56,7 @@ The Docs site uses these callout classes:
5456
id="tr-tip"
5557
title={<>Tip (<InlineCode>callout-tip</InlineCode>)</>}
5658
>
57-
**Tips** whisper to you that this is nice to know, like a shortcut, best practice, or reminder, but it is unnecessary to complete the task at hand. Tips use the `callout-tip` class. At a traffic light, a **Tip** would be a green light.
59+
**Tips** whisper to you that this is nice to know, like a shortcut, best practice, or reminder, but is unnecessary to complete the task at hand. Tips use the `callout-tip` class. At a traffic light, a **Tip** would be a green light.
5860

5961
<Callout variant="tip">
6062
If you have integrated your New Relic account with a [ticketing system](/docs/site/ticketing-integrations) such as Lighthouse, Pivotal Tracker, or Atlassian JIRA, you can use the note to file a ticket or story.
@@ -76,6 +78,8 @@ The Docs site uses these callout classes:
7678

7779
Typically, pricing callouts appear in the intro of a doc. See the example below for standard verbiage in the callout.
7880

81+
With the new pricing model, these are rarely used.
82+
7983
<Callout variant="tip">
8084
Access to this feature depends on your [subscription level](http://newrelic.com/application-monitoring/pricing).
8185
</Callout>

src/content/docs/new-relic-only/basic-style-guide/style-guide-quick-reference/capitalization.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ redirects:
1111
watermark: NR ONLY
1212
---
1313

14-
This explains how to decide what to capitalize in a document's title, headings, products, features, and other elements of the page.
14+
In general, we only capitalize things when we need to. Read on for some guidelines on how to decide what to capitalize in a document's title, headings, products, features, and other elements of the page.
1515

1616
## Use sentence case in headings [#heading_caps]
1717

18-
Use sentence case for headings, including category headings and document titles. With sentence case, capitalize only the first letter of:
18+
Use sentence case for headings. This includes category headings and document titles. With sentence case, capitalize only the first letter of:
1919

2020
* The first word
2121
* Proper nouns
2222
* Acronyms and abbreviations
2323

24-
**Exceptions:**
24+
**We have some exceptions:**
2525

26-
* If the heading is a code term, such as a variable or function, then capitalize it exactly as it is used in the code; for example: [`noticeError`](/docs/browser/new-relic-browser/browser-agent-spa-api/notice-error).
26+
* If the heading is a code term, such as a variable or function, then capitalize it exactly as it's used in the code; for example: [`noticeError`](/docs/browser/new-relic-browser/browser-agent-spa-api/notice-error).
2727
* If the heading includes a colon, follow the [Microsoft Style Guide](https://docs.microsoft.com/en-us/style-guide/punctuation/colons#in-titles-and-headings) for titles and headings, and capitalize the first word that appears after the colon; for example: [APM Error profiles: Troubleshoot trends](/docs/apm/applications-menu/error-analytics/apm-error-profiles-troubleshoot-trends).
2828

2929
## Products and features [#features]
@@ -44,7 +44,7 @@ Use sentence case for headings, including category headings and document titles.
4444
<tbody>
4545
<tr>
4646
<td>
47-
Use title case for products.
47+
We use title case for products.
4848
</td>
4949

5050
<td>
@@ -54,7 +54,7 @@ Use sentence case for headings, including category headings and document titles.
5454

5555
<tr>
5656
<td>
57-
Do not capitalize features.
57+
We don't capitalize features.
5858
</td>
5959

6060
<td>
@@ -82,7 +82,7 @@ Use sentence case for headings, including category headings and document titles.
8282
<tbody>
8383
<tr>
8484
<td>
85-
Use sentence case and bold for UI elements, even if the UI element is in a different case in the UI.
85+
We use sentence case and bold for UI elements, even if the UI element is in a different case in the UI.
8686
</td>
8787

8888
<td>
@@ -92,11 +92,11 @@ Use sentence case for headings, including category headings and document titles.
9292

9393
<tr>
9494
<td>
95-
Use sentence case and bold for each element in a path that references UI pages.
95+
We use sentence case and bold for each element in a path that references UI pages.
9696
</td>
9797

9898
<td>
99-
Go to **[rpm.newrelic.com/apm](https://rpm.newrelic.com/apm) >** **Transactions > Transaction traces > (select a trace) > Another thing**.
99+
Go to **[one.newrelic.com](https://one.newrelic.com) >** **APM > Transactions > Transaction traces > (select a trace) > Another thing**.
100100
</td>
101101
</tr>
102102
</tbody>
@@ -120,7 +120,7 @@ Use sentence case for headings, including category headings and document titles.
120120
<tbody>
121121
<tr>
122122
<td>
123-
Use all caps for BETA or NR ONLY.
123+
We use all caps for BETA or NR ONLY.
124124
</td>
125125

126126
<td>

src/content/docs/new-relic-only/basic-style-guide/style-guide-quick-reference/clamshells.mdx

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ redirects:
1111
watermark: NR ONLY
1212
---
1313

14-
Clamshells are expandable elements that hide page content until you [trigger it open](#trigger-clamshell). Use clamshells to hide content in very long documents. Here is an example clamshell:
14+
Clamshells are expandable elements that hide page content until you [trigger it open](#trigger-clamshell). We use clamshells to hide content in very long documents, out of consideration for our readers. Here's an example clamshell:
1515

1616
<CollapserGroup>
1717
<Collapser
@@ -64,7 +64,7 @@ Here are some examples of when to use clamshells in your document.
6464
</td>
6565

6666
<td>
67-
Here is an example when you have multiple options, such as a procedure with steps that vary depending on your application environment: [Collecting PMI metrics](/docs/agents/java-agent/frameworks/websphere-installation-java#collecting-pmi).
67+
Here's an example when you have multiple options, such as a procedure with steps that vary depending on your application environment: [Collecting PMI metrics](/docs/agents/java-agent/frameworks/websphere-installation-java#collecting-pmi).
6868
</td>
6969
</tr>
7070

@@ -74,7 +74,7 @@ Here are some examples of when to use clamshells in your document.
7474
</td>
7575

7676
<td>
77-
Here is an example when you have a code block that is longer than about one screen height: [Writing API tests](/docs/synthetics/new-relic-synthetics/scripting-monitors/writing-api-tests#get).
77+
Here's an example when you have a code block that is longer than about one screen height: [Writing API tests](/docs/synthetics/new-relic-synthetics/scripting-monitors/writing-api-tests#get).
7878
</td>
7979
</tr>
8080

@@ -84,24 +84,24 @@ Here are some examples of when to use clamshells in your document.
8484
</td>
8585

8686
<td>
87-
Here is an example when you want a cleaner substitute for `h3` tags when subdividing an `h2` header: [Installing the PHP agent manually](/docs/agents/php-agent/installation/php-agent-installation-non-standard-php#manual). Unlike an `h3`, clamshells allow users to see all the options within a section at a glance without having to scroll.
87+
Here's an example when you want a cleaner substitute for `h3` tags when subdividing an `h2` header: [Installing the PHP agent manually](/docs/agents/php-agent/installation/php-agent-installation-non-standard-php#manual). Unlike an `h3`, clamshells allow users to see all the options within a section at a glance without having to scroll.
8888
</td>
8989
</tr>
9090
</tbody>
9191
</Table>
9292

9393
## Create a clamshell [#create]
9494

95-
To create a clamshell, you must use the **Source** editor. To edit existing clamshells, you can use **Source** or WYSIWYG. Clamshells are identified by a **-- fold --** label in the WYSIWYG editor.
95+
To create a clamshell, you'll need to use our clamshell code.
9696

97-
Here is an example of clamshell source:
97+
Here's an example of the clamshell source:
9898

99+
```
99100
<CollapserGroup>
100101
<Collapser
101102
id="clamshell-source"
102103
title="Clamshell source"
103104
>
104-
```
105105
<dl class="clamshell-list">
106106
107107
<dt id="clamshell-1">Clamshell 1</dt>
@@ -113,16 +113,15 @@ Here is an example of clamshell source:
113113
<dd>
114114
<p>This is the second example clamshell.</p>
115115
</dd>
116-
117-
</dl>
118-
```
116+
</dl>
119117
</Collapser>
120118
</CollapserGroup>
119+
```
121120

122121
## Clamshells triggers [#trigger-clamshell]
123122

124-
Clamshells will open or close by:
123+
To open or close a clamshell:
125124

126-
* Selecting the open buttons or **Show/Hide All**.
127-
* Arriving at an individual clamshell via the URL. For example, go directly to [Clamshell 1 in the example above](/docs/new-relic-only/basic-style-guide/writing-guidelines/clamshells#clamshell-1).
128-
* Typing the shortcut keys `s` (to **s**how) and `h` (to **h**ide).
125+
* Click the open buttons or **Show/Hide All**.
126+
* Arrive at an individual clamshell via its URL. For example, go directly to [Clamshell 1 in the example above](/docs/new-relic-only/basic-style-guide/writing-guidelines/clamshells#clamshell-1).
127+
* Type the shortcut keys `s` (to **s**how) and `h` (to **h**ide).

src/content/docs/new-relic-only/basic-style-guide/style-guide-quick-reference/code-examples.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ redirects:
1111
watermark: NR ONLY
1212
---
1313

14-
Use the `<code>`, `<pre>`, and `<var>` tags to indicate "raw" technical content such as excerpts from a config file, an API method name, or a file path.
14+
We use a variety of formatting to highlight code or other technical language. You can use the `<code>`, `<pre>`, and `<var>` tags to indicate "raw" technical content such as excerpts from a config file, an API method name, or a file path.
1515

1616
<CollapserGroup>
1717
<Collapser
@@ -20,7 +20,6 @@ Use the `<code>`, `<pre>`, and `<var>` tags to indicate "raw" technical content
2020
>
2121
To surround small blocks of code or data (single words or lines), mark as code:
2222

23-
* **WYSWIYG**: Highlight the text, then select **Styles > Code** from the WYSIWYG formatting bar.
2423
* **Source**: Use `<code>` tags.
2524
* **Markdown**: Surround the text with backtick `` ` `` characters.
2625
</Collapser>
@@ -31,7 +30,6 @@ Use the `<code>`, `<pre>`, and `<var>` tags to indicate "raw" technical content
3130
>
3231
To surround longer blocks of data that run multiple lines, mark as preformatted text:
3332

34-
* **WYSIWYG**: Highlight the text, then select **Styles > Pre tag** from the WYSIWYG formatting bar.
3533
* **Source**: Use `<pre>` tags.
3634
* **Markdown**: Do not use Markdown-style indented code formatting, as this can cause unexpected formatting problems.
3735
</Collapser>

src/content/docs/new-relic-only/basic-style-guide/style-guide-quick-reference/docs-styles-quick-reference.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ redirects:
1212
watermark: NR ONLY
1313
---
1414

15-
This document lists the "house" HTML classes used on [docs.newrelic.com](https://docs.newrelic.com).
15+
This document lists the "house" Markdown used on [docs.newrelic.com](https://docs.newrelic.com).
1616

1717
* Unordered list 1
1818
* Unordered list 2
19-
2019
* sub bullets are rare
2120
* but sometimes occur
2221
* Unordered list 3

src/content/docs/new-relic-only/basic-style-guide/style-guide-quick-reference/example-box-clamshell.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ topics:
99
redirects:
1010
- /docs/new-relic-only/basic-style-guide/writing-guidelines/example-shell
1111
- /docs/new-relic-only/basic-style-guide/writing-guidelines/example-clamshell
12-
- >-
13-
/docs/new-relic-only/basic-style-guide/writing-guidelines/example-box-clamshell
12+
- /docs/new-relic-only/basic-style-guide/writing-guidelines/example-box-clamshell
1413
watermark: NR ONLY
1514
---
1615

17-
Use the `examplebox` class with &lt;div> tags to enclose short examples, or use example clamshells with the `example-box` class to enclose more extended examples or procedures. Examples are useful to indicate where the "meat" of a section ends and the illustration begins. This is particularly true when the example is so long it makes the parent section appear intimidating, but is not so important that it deserves its own section.
16+
You can use code example boxes to provide lengthy code examples in a way that's visually distinct and doesn't take up too much space. You can also include these example boxes as part of a clamshell.
1817

1918
For example, see this [Java agent API call](/docs/agents/java-agent/custom-instrumentation/java-agent-api-example-program#complete-api-example).
2019

0 commit comments

Comments
 (0)