What are reference guide articles?

Reference guide articles cover discrete topics as documentation with links to other resources. A reference guide explains a Gatsby concept or technique without the step-by-step context provided by a tutorial or recipe.

Reference guide sections provide canonical information on how and why to build things with Gatsby for a variety of scenarios. Reference material should list text headings for each section of a guide, rather than “steps 1-5” like a tutorial.

What are reference guide overview pages?

Reference guide overview pages act as parent pages for groups of reference guide articles, offering an original summary of what can be found in the section. They almost always include a <Guidelist /> component to automatically list the subpage links in that section of the sidebar. See the Docs and Blog Components page to learn more about the Guidelist component.

Other types of guide articles

The Gatsby docs include multiple types of guides. They mostly follow the same format, but some docs will have a slightly different purpose and/or audience.

  • Reference Guides: explanations of Gatsby site development techniques and common workflows. These should be written for all skill-levels.
  • API Reference: technical docs on API methods and options, common files, and links to additional resources and explanations.
  • Releases & Migration: release notes and guides on how to upgrade Gatsby and third-party packages.
  • Conceptual Guides: high-level docs to explain important Gatsby concepts and philosophies.
    • As an example, “Plugins, Themes, and Starters” would be an overarching concept article, with individual reference guide sections for Plugin, Theme, and Starter docs.
  • Gatsby Internals: previously titled Behind the Scenes, these docs go in depth into how Gatsby works under the hood.
  • Using Gatsby Professionally: articles on winning over stakeholders, working in larger organizations, and building a career as a Gatsby developer.

What should a reference guide be about?

We need guide articles to describe every concept and task you can accomplish with Gatsby.

Each guide article should explain exactly one concept and that concept should be apparent from the article’s title. Overview guides can list child pages to present multiple ways of getting a job done while limiting the scope of each individual article (e.g. Styling Your Site, Using Layout Components, Standard Global CSS Files, etc.)

Near-perfect example of a reference guide

Linking Between Pages

What if I want to include multiple tasks and concepts in a reference guide?

If you find yourself wanting to include multiple related topics in one article, consider splitting each into its own individual guide and referencing the other topics under sections called “Prerequisites” and/or “Other Resources” sections in the related guide articles.

It’s more ideal to have many articles that cover a broad range of technical topics rather than smashing too many topics into one article.

If you find yourself wanting to teach the reader how to accomplish a series of related tasks, you might want to write a tutorial. For short and super common how-to instructions for a single task, a recipe may work best.

When to write a reference guide vs. a tutorial, vs. a recipe?

Reference guide articles cover discrete topics as documentation while linking to other resources and guides. A reference guide explains a task or concept without the step-by-step context provided by a tutorial or recipe.

Tutorials guide users through a series of related tasks they can string together successfully. Listing prerequisites up front and limiting distractions or links away from the instructions can make a focused tutorial.

Recipes are a happy medium between step-by-step tutorials and crawling the full reference guides, by providing step-by-step guidance for short, common Gatsby tasks. They live in the Recipes section of the docs.

How to choose a reference guide topic?

Guide topics should be chosen based on these priorities:

  1. Stub articles (docs that already exist on the site but don’t have content in them yet)
  2. Articles with the help wanted and type:documentation labels on GitHub
  3. Articles related to improving key learning workflows
  4. Articles that you or other community members would like to see

Length of a reference guide

Ideally, a guide’s table of contents would fit above the fold on a desktop computer screen. This means the outline is easily consumable, so the person can quickly determine if that section of the docs contains the information they need to complete a task.

The content of a reference guide should provide just enough information to be actionable. Linking out to other materials and guides outside of Gatsby’s core concepts is recommended to limit the scope to critical and unique parts of Gatsby development.

Reference guide template

You can copy and paste the markdown text below and fill it in with your own information. See the docs contributions guide for information about structuring accessible headings.

Reference guide overview

Near-perfect example of a guide overview

Deploying and Hosting

What should a reference guide overview be about?

Each overview should give a short introduction of its section of the guides and list the relevant subtopics.

Length of a reference guide overview

Ideally, a guide overview fits above the fold on a desktop computer screen. This means the outline is easily consumable, so the person can quickly determine if that section of the docs contains the information they need to complete a task.

When should I create a new reference guide overview?

Guide overview articles are essentially new parent categories that help organize all the reference guides. Here’s how to decide if you should create a new reference guide overview:

  1. Stub articles (docs that already exist on the site but don’t have content in them yet)
  2. Article sections with the help wanted and type:documentation labels on GitHub
  3. Article sections related to improving key learning workflows, like “e-commerce”
  4. Article sections that you or other community members would like to see

Reference guide overview template

You can copy and paste the markdown text below and fill it in with your own information