Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
INDEXSUPPLY_API_KEY=
SLACK_FEEDBACK_WEBHOOK= # e.g. https://hooks.slack.com/services/...
VITE_BASE_URL= # e.g. https://docs.tempo.xyz
VITE_GA_MEASUREMENT_ID=
VITE_POSTHOG_HOST=
VITE_POSTHOG_KEY=
VITE_TEMPO_ENV= # testnet|devnet|localnet
10 changes: 10 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@
]
},
"overrides": [
{
"includes": ["vocs.config.tsx"],
"linter": {
"rules": {
"security": {
"noDangerouslySetInnerHtml": "off"
}
}
}
},
{
"includes": ["env.d.ts"],
"linter": {
Expand Down
15 changes: 15 additions & 0 deletions vocs.config.ts → vocs.config.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Changelog, defineConfig, McpSource } from 'vocs/config'
import { createFeedbackAdapter } from './src/lib/feedback-adapter'

const gaMeasurementId = process.env.VITE_GA_MEASUREMENT_ID

const baseUrl = (() => {
if (URL.canParse(process.env.VITE_BASE_URL)) return process.env.VITE_BASE_URL
// VERCEL_BRANCH_URL is the stable URL for the branch (e.g., next.docs.tempo.xyz)
Expand All @@ -13,6 +15,19 @@ const baseUrl = (() => {
})()

export default defineConfig({
head: gaMeasurementId ? (
<>
<script
async
src={`https://www.googletagmanager.com/gtag/js?id=${gaMeasurementId}`}
/>
<script
dangerouslySetInnerHTML={{
__html: `window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','${gaMeasurementId}');`,
}}
/>
</>
) : undefined,
changelog: Changelog.github({ prereleases: true, repo: 'tempoxyz/tempo' }),
// TODO: Set back to true once tempoxyz/tempo#tip-1011 dead link is fixed
checkDeadlinks: 'warn',
Expand Down
Loading