Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Add template for plugin READMEs #4284

Closed
6 tasks
jlengstorf opened this issue Feb 28, 2018 · 5 comments
Closed
6 tasks

[docs] Add template for plugin READMEs #4284

jlengstorf opened this issue Feb 28, 2018 · 5 comments
Assignees
Labels
type: documentation An issue or pull request for improving or updating Gatsby's documentation

Comments

@jlengstorf
Copy link
Contributor

It would be helpful to have a standard format for plugin READMEs that covers standard information:

  • How to install
  • Available options (if any)
  • Example(s) of usage (or before-and-after examples of data when the plugin is enabled)
  • How to run tests
  • How to develop locally
  • How to contribute

If a CLI add-on for generating plugins comes to be, this template could easily be generated with the plugin's actual information, but that's down the road a bit.

Other things that still need to be figured out:

  • Where do we keep this template? (e.g. its own repo, in the docs somewhere)
  • Should we/how do we update existing plugins to use the updated format?
  • Does this template change significantly depending on whether the repo is a source, transformer, or general plugin?
@jlengstorf jlengstorf added the type: documentation An issue or pull request for improving or updating Gatsby's documentation label Feb 28, 2018
@KyleAMathews
Copy link
Contributor

This looks great!

Perhaps we could also add "When do I use this" with very approachable user stories.

@kentcdodds has a README template https://github.com/kentcdodds/generator-kcd-oss/blob/master/generators/app/templates/README.md

On where to store this — we have a poorly documented setup for generating new packages for this repo https://github.com/gatsbyjs/gatsby/blob/master/plop-templates/package/README.md.hbs

We should move that into the gatsby-cli and make it super awesome.

@shannonbux shannonbux mentioned this issue Mar 6, 2018
16 tasks
@calcsam
Copy link
Contributor

calcsam commented Jul 6, 2018

cc @ajayns

@ajayns
Copy link
Contributor

ajayns commented Jul 7, 2018

If a CLI add-on for generating plugins comes to be, this template could easily be generated with the plugin's actual information

This sounds very interesting, could save a lot of time on getting started and will also improve consistency in plugins

@shannonbux
Copy link
Contributor

@jlengstorf I just referenced this issue in a PR where I've included a plugin READme template. Open to ideas of a better place to put the template!

@shannonbux
Copy link
Contributor

closed by #6489

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation An issue or pull request for improving or updating Gatsby's documentation
Projects
None yet
Development

No branches or pull requests

5 participants