LinkORB Engineering
LinkORB has the following requirements for using images, custom visuals, and UI elements in technical documents:
Prefer natural color images that evoke LinkORB’s human, modest, but technically-inspired vibes when using third party images.
Do not use copyrighted images from sites like https://images.google.com or Shutterstock. Instead, use photos, illustrations, and icons from third-party sources that offer royalty-free licences such as the following:
Please see Free Open Source Icon Libraries or Free Open-Source Icons for a list of open-source resources that offer free icons and illustrations.
Wrap the image’s URL and the photographer’s/illustrator’s name in <p>
tags directly below the image and set img-attribution
as the p
tag’s class as shown below.
<p class="img-attribution">
Source: <a href="https://img.example.com">Photographer's or Illustrator's name</a>
</p>
Add the imgAttributionName
and imgAttributionUrl
to a Markdown document’s frontmatter as shown below.
imgAttributionName: Photographer's or Illustrator's name
imgAttributionUrl: https://link.to.image/source
While a picture can be worth a thousand words, a custom visual can be worth ten thousand. When helpful, writers should include diagrams, flowcharts, work breakdown structures, other custom imagery that support the reader’s understanding of a topic.
As part of LinkORB’s “documentation is code”, custom visuals should leverage one of the below Markdown solutions.
Read more at Use Mermaid.js and PlantUML to build custom visuals.
While use of colors in custom visuals can enhance their effectiveness and promote information hierarchy, colors should also be used judiciously as to not overwhelm the reader. Please see Brand and styling consistency for specific color guidance.
Embedded images (.svg, .jpeg, .png, .webp) should be stored in the same repository as the document it supports.
Additionally, image optimization and responsive testing is the image commiter’s responsibility.
Images referenced in the body content of .md, .mdx, and .astro files should be stored in the src/images directory and/or its subdirectories and referenced as shown below.
.astro and .mdx files
---
import { Image } from 'astro:assets';
---
<Image src="$images/landscape.webp" alt="A landscape image" />
.md and .mdx files
![required alt text]($images/path/to/image.png)
$images
is an alias of the absolute path to src/images. However, it doesn’t work with image directives.
Jumbotron or banner images should be approximately 1200 x 600 pixels.
Save images specific to a repository’s documentation in the repository’s docs/img folder. Repository-specific images include all images used in a repository’s README.md file and documentation saved in the repository’s docs folder.
While screenshots can provide additional context, they also introduce issues relating to page rendering, information layout, and are more difficult to modify than text. Avoid using screenshots of commercial applications. Only use a screenshot if it adds distinct, material value to a document.
Limit the use of screenshots when documenting:
When documentation is targeted at a technical audience, screenshots are less necessary. Instead:
As discussed in Standards for written content, use an open-source approach. Screenshots should not include specific internal projects, team member names, or LinkORB-only concepts.
#technical-documentation
)