Skip to content

Commit 8012d7d

Browse files
committed
rename basics to example-apps
1 parent b3642e6 commit 8012d7d

773 files changed

Lines changed: 157 additions & 157 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/e2e.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Discover examples with Playwright configs
2828
id: set-examples
2929
run: |
30-
examples=$(find basics -maxdepth 2 -name "playwright.config.ts" -exec dirname {} \; | sed 's|^basics/||' | jq -R -s -c 'split("\n")[:-1]')
30+
examples=$(find example-apps -maxdepth 2 -name "playwright.config.ts" -exec dirname {} \; | sed 's|^example-apps/||' | jq -R -s -c 'split("\n")[:-1]')
3131
echo "examples=$examples" >> $GITHUB_OUTPUT
3232
echo "Found examples: $examples"
3333
@@ -53,17 +53,17 @@ jobs:
5353

5454
- name: Install dependencies
5555
run: |
56-
cd basics/${{ matrix.example }}
56+
cd example-apps/${{ matrix.example }}
5757
pnpm install
5858
5959
- name: Install Playwright Browsers
6060
run: |
61-
cd basics/${{ matrix.example }}
61+
cd example-apps/${{ matrix.example }}
6262
pnpm exec playwright install chromium --with-deps
6363
6464
- name: Run E2E Playwright tests
6565
run: |
66-
cd basics/${{ matrix.example }}
66+
cd example-apps/${{ matrix.example }}
6767
pnpm run test:e2e
6868
env:
6969
NEXT_PUBLIC_POSTHOG_KEY: ${{ vars.NEXT_PUBLIC_POSTHOG_KEY }}
@@ -105,6 +105,6 @@ jobs:
105105
if: always()
106106
with:
107107
name: playwright-report-${{ matrix.example }}
108-
path: basics/${{ matrix.example }}/playwright-report/
108+
path: example-apps/${{ matrix.example }}/playwright-report/
109109
retention-days: 30
110110

.github/workflows/integration.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Discover examples with Playwright configs
3232
id: set-examples
3333
run: |
34-
examples=$(find basics -maxdepth 2 -name "playwright.config.ts" -exec dirname {} \; | sed 's|^basics/||' | jq -R -s -c 'split("\n")[:-1]')
34+
examples=$(find example-apps -maxdepth 2 -name "playwright.config.ts" -exec dirname {} \; | sed 's|^example-apps/||' | jq -R -s -c 'split("\n")[:-1]')
3535
echo "examples=$examples" >> $GITHUB_OUTPUT
3636
echo "Found examples: $examples"
3737
@@ -57,17 +57,17 @@ jobs:
5757

5858
- name: Install dependencies
5959
run: |
60-
cd basics/${{ matrix.example }}
60+
cd example-apps/${{ matrix.example }}
6161
pnpm install
6262
6363
- name: Install Playwright Browsers
6464
run: |
65-
cd basics/${{ matrix.example }}
65+
cd example-apps/${{ matrix.example }}
6666
pnpm exec playwright install chromium --with-deps
6767
6868
- name: Run Integration Playwright tests
6969
run: |
70-
cd basics/${{ matrix.example }}
70+
cd example-apps/${{ matrix.example }}
7171
pnpm run test:integration
7272
env:
7373
NEXT_PUBLIC_POSTHOG_KEY: ${{ vars.NEXT_PUBLIC_POSTHOG_KEY }}
@@ -107,5 +107,5 @@ jobs:
107107
if: always()
108108
with:
109109
name: playwright-report-${{ matrix.example }}
110-
path: basics/${{ matrix.example }}/playwright-report/
110+
path: example-apps/${{ matrix.example }}/playwright-report/
111111
retention-days: 30

.semgrepignore

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010

1111
# Android launcher activity exported=true is required for MAIN/LAUNCHER intent filter
1212
# This is standard React Native / Android boilerplate, not a security issue
13-
basics/react-native/android/app/src/main/AndroidManifest.xml
14-
basics/expo/android/app/src/main/AndroidManifest.xml
15-
basics/android/app/src/main/AndroidManifest.xml
13+
example-apps/react-native/android/app/src/main/AndroidManifest.xml
14+
example-apps/expo/android/app/src/main/AndroidManifest.xml
15+
example-apps/android/app/src/main/AndroidManifest.xml
1616

1717
# Markdown audit reference contains HogQL examples with PostHog $host event property.
1818
# Semgrep's nginx host-header rule misidentifies this docs-only SQL as nginx config.
19-
transformation-config/skills/audit-events/references/3-events-optimize.md
20-
transformation-config/skills/web-analytics/references/checks.md
21-
transformation-config/skills/web-analytics/references/remediation.md
19+
context/skills/audit-events/references/3-events-optimize.md
20+
context/skills/web-analytics/references/checks.md
21+
context/skills/web-analytics/references/remediation.md

context/skills/integration/config.yaml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,158 +6,158 @@ shared_docs:
66
- https://posthog.com/docs/getting-started/identify-users.md
77
variants:
88
- id: nextjs-app-router
9-
example_paths: basics/next-app-router
9+
example_paths: example-apps/next-app-router
1010
display_name: Next.js App Router
1111
tags: [nextjs, react, ssr, app-router, javascript]
1212
docs_urls:
1313
- https://posthog.com/docs/libraries/next-js.md
1414

1515
- id: nextjs-pages-router
16-
example_paths: basics/next-pages-router
16+
example_paths: example-apps/next-pages-router
1717
display_name: Next.js Pages Router
1818
tags: [nextjs, react, ssr, pages-router, javascript]
1919
docs_urls:
2020
- https://posthog.com/docs/libraries/next-js.md
2121

2222
- id: react-react-router-6
23-
example_paths: basics/react-react-router-6
23+
example_paths: example-apps/react-react-router-6
2424
display_name: React Router v6
2525
tags: [react, react-router, v6, spa, javascript]
2626
docs_urls:
2727
- https://posthog.com/docs/libraries/react-router/react-router-v6.md
2828

2929
- id: react-react-router-7-framework
30-
example_paths: basics/react-react-router-7-framework
30+
example_paths: example-apps/react-react-router-7-framework
3131
display_name: React Router v7 - Framework mode
3232
tags: [react, react-router, v7, framework, ssr, javascript]
3333
docs_urls:
3434
- https://posthog.com/docs/libraries/react-router/react-router-v7-framework-mode.md
3535

3636
- id: react-react-router-7-data
37-
example_paths: basics/react-react-router-7-data
37+
example_paths: example-apps/react-react-router-7-data
3838
display_name: React Router v7 - Data mode
3939
tags: [react, react-router, v7, data, spa, javascript]
4040
docs_urls:
4141
- https://posthog.com/docs/libraries/react-router/react-router-v7-data-mode.md
4242

4343
- id: react-react-router-7-declarative
44-
example_paths: basics/react-react-router-7-declarative
44+
example_paths: example-apps/react-react-router-7-declarative
4545
display_name: React Router v7 - Declarative mode
4646
tags: [react, react-router, v7, declarative, spa, javascript]
4747
docs_urls:
4848
- https://posthog.com/docs/libraries/react-router/react-router-v7-declarative-mode.md
4949

5050
- id: react-vite
51-
example_path: basics/react-vite
51+
example_path: example-apps/react-vite
5252
display_name: React (Vite)
5353
description: PostHog integration for React applications built with Vite (no router)
5454
tags: [react, vite, spa, javascript]
5555
docs_urls:
5656
- https://posthog.com/docs/libraries/react.md
5757

5858
- id: nuxt-3-6
59-
example_paths: basics/nuxt-3-6
59+
example_paths: example-apps/nuxt-3-6
6060
display_name: Nuxt 3.6
6161
description: PostHog integration for Nuxt versions 3.0 to 3.6
6262
tags: [nuxt, javascript]
6363
docs_urls:
6464
- https://posthog.com/docs/libraries/nuxt-js-3-6.md
6565

6666
- id: nuxt-4
67-
example_paths: basics/nuxt-4
67+
example_paths: example-apps/nuxt-4
6868
display_name: Nuxt 4
6969
description: PostHog integration for Nuxt 4 applications
7070
tags: [nuxt, vue, ssr, javascript, typescript]
7171
docs_urls:
7272
- https://posthog.com/docs/libraries/nuxt-js.md
7373

7474
- id: vue-3
75-
example_paths: basics/vue-3
75+
example_paths: example-apps/vue-3
7676
display_name: Vue 3
7777
description: PostHog integration for Vue 3 applications
7878
tags: [vue, javascript, typescript]
7979
docs_urls:
8080
- https://posthog.com/docs/libraries/vue-js.md
8181

8282
- id: django
83-
example_paths: basics/django
83+
example_paths: example-apps/django
8484
display_name: Django
8585
tags: [django, python]
8686
docs_urls:
8787
- https://posthog.com/docs/libraries/django.md
8888

8989
- id: flask
90-
example_paths: basics/flask
90+
example_paths: example-apps/flask
9191
display_name: Flask
9292
tags: [flask, python]
9393
docs_urls:
9494
- https://posthog.com/docs/libraries/flask.md
9595

9696
- id: fastapi
97-
example_paths: basics/fastapi
97+
example_paths: example-apps/fastapi
9898
display_name: FastAPI
9999
description: PostHog integration for FastAPI applications
100100
tags: [fastapi, python]
101101
docs_urls:
102102
- https://posthog.com/docs/libraries/python.md
103103

104104
- id: react-tanstack-router-file-based
105-
example_paths: basics/react-tanstack-router-file-based
105+
example_paths: example-apps/react-tanstack-router-file-based
106106
display_name: React with TanStack Router (file-based)
107107
description: PostHog integration for React applications using TanStack Router with file-based routing
108108
tags: [react, tanstack-router, spa, javascript]
109109
docs_urls:
110110
- https://posthog.com/docs/libraries/tanstack-start.md
111111

112112
- id: react-tanstack-router-code-based
113-
example_paths: basics/react-tanstack-router-code-based
113+
example_paths: example-apps/react-tanstack-router-code-based
114114
display_name: React with TanStack Router (code-based)
115115
description: PostHog integration for React applications using TanStack Router with code-based routing
116116
tags: [react, tanstack-router, spa, javascript]
117117
docs_urls:
118118
- https://posthog.com/docs/libraries/tanstack-start.md
119119

120120
- id: tanstack-start
121-
example_paths: basics/tanstack-start
121+
example_paths: example-apps/tanstack-start
122122
display_name: TanStack Start
123123
description: PostHog integration for TanStack Start full-stack applications
124124
tags: [react, tanstack-start, tanstack-router, javascript]
125125
docs_urls:
126126
- https://posthog.com/docs/libraries/tanstack-start.md
127127

128128
- id: laravel
129-
example_paths: basics/laravel
129+
example_paths: example-apps/laravel
130130
display_name: Laravel
131131
tags: [laravel, php]
132132
docs_urls:
133133
- https://posthog.com/docs/libraries/laravel.md
134134

135135
- id: php
136-
example_paths: basics/php
136+
example_paths: example-apps/php
137137
display_name: PHP
138138
description: PostHog integration for any PHP application using the PHP SDK
139139
tags: [php]
140140
docs_urls:
141141
- https://posthog.com/docs/libraries/php.md
142142

143143
- id: ruby-on-rails
144-
example_paths: basics/ruby-on-rails
144+
example_paths: example-apps/ruby-on-rails
145145
display_name: Ruby on Rails
146146
tags: [ruby-on-rails, ruby]
147147
docs_urls:
148148
- https://posthog.com/docs/libraries/ruby-on-rails.md
149149
- https://posthog.com/docs/libraries/ruby.md
150150

151151
- id: android
152-
example_paths: basics/android
152+
example_paths: example-apps/android
153153
display_name: Android
154154
description: PostHog integration for Android applications
155155
tags: [android, java, kotlin]
156156
docs_urls:
157157
- https://posthog.com/docs/libraries/android.md
158158

159159
- id: sveltekit
160-
example_paths: basics/sveltekit
160+
example_paths: example-apps/sveltekit
161161
display_name: SvelteKit
162162
description: PostHog integration for SvelteKit applications
163163
tags: [sveltekit, svelte, javascript]
@@ -166,7 +166,7 @@ variants:
166166

167167
# Language fallback skills, used when no specific framework is detected
168168
- id: python
169-
example_paths: basics/python
169+
example_paths: example-apps/python
170170
display_name: Python
171171
description: PostHog integration for any Python application using the Python SDK
172172
tags: [python]
@@ -175,7 +175,7 @@ variants:
175175
- https://posthog.com/docs/references/posthog-python.md
176176

177177
- id: javascript_node
178-
example_path: basics/javascript-node
178+
example_path: example-apps/javascript-node
179179
display_name: JavaScript Node
180180
description: PostHog integration for server-side Node.js applications using posthog-node
181181
tags: [javascript_node]
@@ -184,7 +184,7 @@ variants:
184184
- https://posthog.com/docs/references/posthog-node.md
185185

186186
- id: javascript_web
187-
example_path: basics/javascript-web
187+
example_path: example-apps/javascript-web
188188
display_name: JavaScript Web
189189
description: PostHog integration for client-side web JavaScript applications using posthog-js
190190
tags: [javascript_web]
@@ -193,7 +193,7 @@ variants:
193193
- https://posthog.com/docs/references/posthog-js.md
194194

195195
- id: ruby
196-
example_paths: basics/ruby
196+
example_paths: example-apps/ruby
197197
display_name: Ruby
198198
description: PostHog integration for any Ruby application using the Ruby SDK
199199
tags: [ruby]
@@ -217,7 +217,7 @@ variants:
217217
- https://posthog.com/docs/libraries/go.md
218218

219219
- id: swift
220-
example_paths: basics/swift
220+
example_paths: example-apps/swift
221221
display_name: Swift (iOS/macOS)
222222
description: PostHog integration for Swift iOS and macOS applications
223223
tags: [swift, ios, macos, swiftui]
@@ -235,55 +235,55 @@ variants:
235235
- https://posthog.com/docs/libraries/flutter.md
236236

237237
- id: react-native
238-
example_paths: basics/react-native
238+
example_paths: example-apps/react-native
239239
display_name: React Native
240240
description: PostHog integration for React Native applications
241241
tags: [react-native, javascript, typescript]
242242
docs_urls:
243243
- https://posthog.com/docs/libraries/react-native.md
244244

245245
- id: expo
246-
example_paths: basics/expo
246+
example_paths: example-apps/expo
247247
display_name: Expo
248248
description: PostHog integration for Expo applications
249249
tags: [expo, react-native, javascript, typescript]
250250
docs_urls:
251251
- https://posthog.com/docs/libraries/react-native.md
252252

253253
- id: astro-static
254-
example_paths: basics/astro-static
254+
example_paths: example-apps/astro-static
255255
display_name: Astro (Static)
256256
description: PostHog integration for static Astro sites using SSG
257257
tags: [astro, javascript, typescript]
258258
docs_urls:
259259
- https://posthog.com/docs/libraries/astro.md
260260

261261
- id: astro-view-transitions
262-
example_paths: basics/astro-view-transitions
262+
example_paths: example-apps/astro-view-transitions
263263
display_name: Astro (View Transitions)
264264
description: PostHog integration for Astro with ClientRouter view transitions
265265
tags: [astro, astro-view-transitions, javascript, typescript]
266266
docs_urls:
267267
- https://posthog.com/docs/libraries/astro.md
268268

269269
- id: astro-ssr
270-
example_paths: basics/astro-ssr
270+
example_paths: example-apps/astro-ssr
271271
display_name: Astro (SSR)
272272
description: PostHog integration for server-rendered Astro applications with API routes
273273
tags: [astro, astro-ssr, javascript, typescript]
274274
docs_urls:
275275
- https://posthog.com/docs/libraries/astro.md
276276

277277
- id: astro-hybrid
278-
example_paths: basics/astro-hybrid
278+
example_paths: example-apps/astro-hybrid
279279
display_name: Astro (Hybrid)
280280
description: PostHog integration for Astro hybrid rendering with both static and server-rendered pages
281281
tags: [astro, astro-hybrid, javascript, typescript]
282282
docs_urls:
283283
- https://posthog.com/docs/libraries/astro.md
284284

285285
- id: angular
286-
example_paths: basics/angular
286+
example_paths: example-apps/angular
287287
display_name: Angular
288288
description: PostHog integration for Angular applications
289289
tags: [angular, javascript, typescript]

0 commit comments

Comments
 (0)