* move slug field creation to onCreateNode * update docs overview pages to support new URL structure * update redirects to support new URL structure * Update netlify.toml (#1629) * WIP Intro Post: Phil Leggetter (#1602) * Create intro-phil-leggetter.md * fixed a couple of typos and added more links * Update intro-phil-leggetter.md * Added Phil's location + link * Added gaming reference * Added Charles' changes * Uploaded feature image for Phil's intro * Add safe redirects * Added feature image Co-authored-by: James Hawkins <47497682+jamesefhawkins@users.noreply.github.com> Co-authored-by: PostHog <hey@posthog.com> * Add safe redirects * Remove conflict in blog post * handle default directory index files redirects in safe_rename * Replace /path/index with /path in safe redirects Co-authored-by: Eli Kinsey <ekinseydev@gmail.com> Co-authored-by: Mohammed Shehu <40317687+shehuphd@users.noreply.github.com> Co-authored-by: James Hawkins <47497682+jamesefhawkins@users.noreply.github.com> Co-authored-by: PostHog <hey@posthog.com>
PostHog.com - Docs, Website, and Handbook
This is the repository for the PostHog website, which includes our Docs and Handbook.
Please feel free to suggest any changes. See our contributing guide for more information.
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 startTip: 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:8000!Note: You'll also see a second link:
http://localhost:8000/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.
If you are using Apple M1 (read this for more):
rm -rf ./node_modules
brew install vips
yarn install
It is also possible to use docker:
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'