PostHog.com - Website, docs, blog, and handbook
Support - Roadmap - Open an issue - Style guide
This is the repository for the PostHog website. It contains:
- All of our written content and visuals including product features, manuals, docs, blogs, case studies, tutorials, and the handbook
- Features like questions and answers (using Squeak!), job listings (using Ashby), pricing calculator, roadmap, API docs, and more
- All the components, templates, logic, and styling to make this work, look pretty, and spark joy
Table of contents
Quick start
-
Pre-installation
npm install --global yarn
-
Start developing
Clone the repo then navigate into your new siteโs directory, install the site dependencies, and start it up.
cd posthog.com/ yarn yarn start
Tip: Seeing a discrepancy between local development and staging/production? Preview the production build locally by running
gatsby build && gatsby serve
-
Open the source code and start editing!
Your site is now running at
http://localhost:8001
!Note: You'll also see a second link:
http://localhost:8001/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.
See full instructions on developing PostHog.com locally in our manual.
Advanced setup
Docker
It is also possible to use Docker to run posthog.com locally with this command:
docker run -it --rm \
-w /app -v "$PWD":/app \
-p 8000-8001:8000-8001 \
-e INTERNAL_STATUS_PORT=8001 \
node:14-slim \
sh -c 'yarn && yarn start'
Debugging errors on start
- Pull the latest changes from
master
- Run
gatsby clean && yarn start
or deletenode_modules
and.cache
- Check builds are passing in deployment to Vercel
/docs/api
?
Working on - Create a personal API key in PostHog
export POSTHOG_APP_API_KEY=key
yarn start
Want Ashby job listings or GitHub contributors to load?
Youโll need to set environment variables for these. See (private) instructions for this.
Contributing
We <3 contributions big and small. In priority order (although everything is appreciated) with the most helpful first:
- Join ourย Slack community
- Submit bug reports and give us feedback in the app!
- Vote on features or get early access to beta functionality in ourย roadmap
- Open a PR
- Read our instructions above onย developing PostHog.com locally
- Read more detailed instructions in our manual
- For basic edits, go to the file in GitHub and click the edit button (pencil icon)
- Open an issue or content idea