Skip to content

Commit

Permalink
Docs plugin readme (#20048)
Browse files Browse the repository at this point in the history
* Update plugin README template to account for themes and be more explicit about package managers

* Update plugin template to account for themes and more specific installation instruction guidelines

* Update docs/contributing/docs-templates.md

Co-Authored-By: Aisha Blake <aisha.g.blake@gmail.com>

* Update docs/contributing/docs-templates.md

Co-Authored-By: Aisha Blake <aisha.g.blake@gmail.com>
  • Loading branch information
2 people authored and Aisha Blake committed Dec 12, 2019
1 parent e89d3f3 commit 7413814
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/contributing/docs-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ them at the bottom in an "Other Resources" section. You can also mention here an

Include a summary of what this plugin accomplishes. Is there a demo site that shows how this plugin operates? If so, include a link to the deployed demo site and/or its source code here.

Themes are considered plugins in the Gatsby ecosystem and should follow this README as well. Note that themes include multiple READMEs. One inside the theme directory with configuration instructions, one inside the example project directory, and one in the root of the repository which will follow this guide.

### Dependencies (optional)

Are there any plugins that must be installed in order to make this plugin work? If so, please include a list of those plugins and links to their pages here.
Expand All @@ -411,6 +413,10 @@ If there are other tutorials, docs, and learning resources that are necessary or

Please include installation instructions here.

Gatsby documentation uses `npm` for installation. This is the recommended approach for plugins as well.

If the plugin is a theme that needs to use `yarn`, please point to [the documentation for switching package managers](/docs/gatsby-cli/#how-to-change-your-default-package-manager-for-your-next-project) in addition to the `yarn`-based instructions.

## Available options (if any)

## When do I use this plugin?
Expand All @@ -431,6 +437,8 @@ This section could also include before-and-after examples of data when the plugi

If this is a source plugin README, source plugins ought to allow people to query for data within their Gatsby site. Please include code examples to show how to query for data using your source plugin.

If this is a theme that requires data in a specific format in order to match an existing query, include those examples here.

## How to run tests

## How to develop locally
Expand Down

0 comments on commit 7413814

Please sign in to comment.