Skip to content

Conversation

joethreepwood
Copy link
Contributor

Changes

Who else hates it that all of our plugins have very variable documentation, often failing to describe core features (SalesForce), configuration options (First Time Event Tracker) or their requirements and how to set them up correctly (basically all of them)?

I know I do, especially after writing 70+ pages for the upcoming Plugins > Apps shift, where I needed to describe what all the plugins do, requirements, etc.

So, I've written some documentation guidelines and added them to the Build Your Own section of the plugins docs. I've also moved some other bits around in the plugins docs, such as moving the information about plugin chains and integrations with external systems from the Build Your Own section to the Plugin Overview. The Build Your Own section now only contains information about how to build your own plugin.

Separately, I've added some of these guidelines and info to the plugin starter kit readme.

What are the guidelines I'm proposing? Well, I don't want this to be too process-driven and make plugins harder work for anyone. So, we're requiring that plugins which users want to submit to our official library must have a README.md which answers the following questions...

  • What does your plugin do?
  • What steps must users take to enable your plugin correctly?
  • What configuration options exist within your plugin?
  • What requirements does your plugin have?
  • Does your plugin need a specific version of PostHog?

This will result in a 1000% improvement in the usefulness of future plugin documentation. It's quantifiable!

Checklist

@joethreepwood joethreepwood added docs Improvements or additions to product documentation, "Docs" marketing labels Apr 28, 2022
@joethreepwood joethreepwood self-assigned this Apr 28, 2022

To ensure that plugins are useful to others, we require that plugins submitted to [our integration library](/integrations) follow some guidelines. This helps us ensure we describe plugins correctly and give other users the information they need to use a plugin correctly.

We encourage you to add more info, screenshots, etc., if you feel it is useful, but as a minimum we require that plugins submitted to [hey@posthog.com](mailto:hey@posthog.com?subject=Submit%20Plugin%20to%20Repository&body=Plugin%20GitHub%20link%3A) answer the follow questions.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does someone submit this info...just as text in the email?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad. Intended to be added as a README.MD. My fault for editing things out of order.


We encourage you to add more info, screenshots, etc., if you feel it is useful, but as a minimum we require that plugins submitted to [hey@posthog.com](mailto:hey@posthog.com?subject=Submit%20Plugin%20to%20Repository&body=Plugin%20GitHub%20link%3A) answer the follow questions.

- What does your plugin do?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These look pretty good, another suggestion (for you to consider - I appreciate keeping short list is pretty important).

  • Who is this plugin designed for?


## Adding your plugin to PostHog

Once you've built your own plugin, you can submit it our [integration library](/integrations). This means everyone else can use your plugin too, including users on PostHog Cloud. Here's how:
Copy link
Contributor

@marcushyett-ph marcushyett-ph Apr 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not actually the case. We also have to enable the plugin for everyone on cloud.

There is another step - but I'm not sure we need to tell users that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this comment to the end and softened the language, so it's clearer this is a choice that we will make during review.

Copy link
Contributor

@marcushyett-ph marcushyett-ph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@joethreepwood joethreepwood enabled auto-merge (squash) April 28, 2022 16:42
@joethreepwood joethreepwood merged commit d9bb554 into master Apr 28, 2022
@joethreepwood joethreepwood deleted the plugin-documentation-guide branch April 28, 2022 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to product documentation, "Docs" marketing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants