• /
  • Log in
  • Free account

Embed images

A well-chosen screenshot or image can greatly improve the readability and clarity of a doc. Too many images or an image that's tough to parse can really slow things down.

  • If you're not part of the docs team and you want to add an image to the docs site, create a GitHub issue.
  • If you're a New Relic employee, contact the @hero in the documentation Slack channel.

Add an image

We want to ensure that sensitive data does not appear in UI screenshots. That's why we recommend that you provide a permalink to a test account. Do not take a screenshot from your New Relic account.

Here are some things to keep in mind when you're creating an image:

  • Make sure your image provides useful information at a glance.
  • Include a caption with helpful context for the image.
  • For screenshot captions, include the path in bold.
  • For video captions, include the approximate running time.

Our doc site images are stored in individual images directories at the root level of each taxonomy category. These images directories contain all the images used in the docs for that category. Do not link to an external file, all images used in docs must be stored in our GitHub repo.

To add an image from scratch:

  1. Find the images folder for your doc. For example, if your doc lives in the docs/style-guide/processes-procedures directory, use the docs/style-guide/processes-procedures/images folder.
  2. If the images directory does not exist in the directory where your doc lives, use VScode or Finder to create a folder in that directory named images (must be lower case and plural).
  3. Place your image in the images directory. Give the image a descriptive file name; for example, fso-ui-overview.png is much better than 123-go-dawgs.png.
  4. Continue with the following procedure to embed the image in a doc.

Embed an image

Use markdown to embed an image in a doc. The basic structure:

![alt text](PATH_TO_IMAGE "Image title text")

Here's a filled in example:

![An image showing an overview of the synthetic monitoring UI](./images/synthetics-ui-overview.png "Synthetics UI overview")

Update an image

To update an image:

  1. Delete the original image file in the corresponding images directory.
  2. Place the new image file in the same images directory.
  3. Ensure the image file has the same name as the original file.

Write image captions

Descriptive captions help the reader know why the image matters. If it's a screenshot, it's helpful to include the path in bold in addition to a description. For example:

![Dashboards in New Relic One](./images/NR1-dashboards-image.png "Dashboards in New Relic One")
<figcaption>
**[one.newrelic.com](https://one.newrelic.com) > Dashboards**: Quickly create information-dense custom views into the data that matters most to you with dashboards in New Relic One.
</figcaption>

For more help with captions and other supporting text around images, see Guidelines for explaining images.

Add an inline image

To use an inline image, add something like this:

The UI includes a multiple app names indicator. ![Multiple app names indicator in New Relic One](./images/new-relic-distributed-tracing-multiapp-icon.png "Multiple apps name indicator in New Relic One")

If the inline image is being used as an icon, always describe it first. When you embed the icon image, follow the image with the word icon in the text. For example:

Select your app's settings ![settings icon](./images/icon-settings.png "settings icon") icon.

Add a fixed width, block level image

Fixed width, block level images are similar in format to full column width images, except the original image width is smaller than the column width (800px) of a page. It's important that you edit the HTML like you would an inline image. This way the image will be rendered at 100% of the column width and also be responsive to smaller screen sizes.

Use these images when a screenshot is a small part of the page with a width of less than 800px, but when it still needs a caption like a full width image.

Here's an example of the HTML for a fixed width, block level image:

<div style="width: 100%; max-width: Npx;">
<img alt="ALT TEXT" height="X" src="IMG_URL" title="FILENAME" width="N">
</div>
<div class="dnd-legend-wrapper" style="width: 100%; max-width: Npx;">
<div class="meta"><p>CAPTION TEXT</p></div>
</div>

Icons

You can choose from a variety of icons to include in your docs:

  • Feather icons (prefixed with 'fe-), which replace our previous Font Awesome icons
  • New Relic icons (prefixed with nr-)
  • Logos for third-party products (prefixed with logo-)

To see if we already have an icon you need, go to:

You can use any icons you need in the Gatsby theme or Feather. Currently these locations have separate, non-overlapping buckets of icons.

Insert icons as tag attributes

If your icon appears as an attribute inside another tag, prefix it with icon as in this example:

<LandingPageTileGrid>
<LandingPageTile
title="AWS Lambda"
href="/docs/serverless-function-monitoring/aws-lambda-monitoring/get-started/monitoring-aws-lambda-serverless-monitoring"
icon="logo-aws"
>
</LandingPageTile>

Insert inline icons

If your icon appears inside running text, use the <Icon> component. Here are some examples:

  • Feather: <Icon name="fe-database" />
  • New Relic: <Icon name="nr-tdp" />
  • Logos: <Icon name="logo-apple" />

Install new Feather icons

If you don't see the icon you want in either the Gatsby theme for docs-website in GitHub or in the Feather.js for docs-website in GitHub, you can add a new icon to the Gatsby theme. You can also ask developers to add the icon you want.

Here's an example of adding a database icon:

  1. Go to feathericons.com.
  2. Download the database feather icon by clicking on the icon itself.
  3. Once downloaded, open the SVG file in your text editor.
  4. Copy the "guts" of the SVG, which is everything in between the <svg> tags. For example, if the SVG is <svg><path m="1"></path></svg>, then copy only the <path m="1"></path> portion.
  5. Open the list of feather icons at src/@newrelic/gatsby-theme-newrelic/icons/feather.js.
  6. Add an entry for database, and assign the code from the previous step to it.
  7. If the icon has multiple paths, include the <> wrapper around it like you see with other icons.
  8. Save the feather.js file.

The fe- prefix gets added automatically. Once that icon is added, you can use it with the icon component; for example, <Icon name="fe-database" />.

Create issueEdit page
Copyright © 2022 New Relic Inc.