From 0988334ed22aa2f3008d3290995a9cab2f64f94f Mon Sep 17 00:00:00 2001 From: Thomas Lebeau Date: Mon, 13 Oct 2025 16:51:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20Datadog=20RUM=20integratio?= =?UTF-8?q?n=20to=20the=20API=20documentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typedoc.js | 31 +++++++++++++++++++++++++++++++ typedoc.json | 3 ++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 typedoc.js diff --git a/typedoc.js b/typedoc.js new file mode 100644 index 0000000000..fdbe56a2b7 --- /dev/null +++ b/typedoc.js @@ -0,0 +1,31 @@ +/* eslint-disable no-undef */ +;(function (h, o, u, n, d) { + h = h[d] = h[d] || { + q: [], + onReady(c) { + h.q.push(c) + }, + } + d = o.createElement(u) + d.async = 1 + d.src = n + n = o.getElementsByTagName(u)[0] + n.parentNode.insertBefore(d, n) +})(window, document, 'script', 'https://www.datadoghq-browser-agent.com/us1/v6/datadog-rum.js', 'DD_RUM') +window.DD_RUM.onReady(function () { + window.DD_RUM.init({ + clientToken: 'pubfdd257fb4cbeb6508cc003dc43311ab8', + applicationId: 'cc47640f-067a-457a-8940-d742a13a9eb7', + // `site` refers to the Datadog site parameter of your organization + // see https://docs.datadoghq.com/getting_started/site/ + site: 'datadoghq.com', + service: 'browser-sdk-api-documentation', + env: location.origin.includes('datadoghq.dev') ? 'prod' : 'dev', + // Specify a version number to identify the deployed version of your application in Datadog + // version: '1.0.0', + sessionSampleRate: 100, + sessionReplaySampleRate: 20, + trackBfcacheViews: true, + defaultPrivacyLevel: 'mask-user-input', + }) +}) diff --git a/typedoc.json b/typedoc.json index 0e3b114020..c4fd47d0a5 100644 --- a/typedoc.json +++ b/typedoc.json @@ -47,5 +47,6 @@ }, "externalSymbolLinkMappings": { "@types/react": { "*": "#" } - } + }, + "customJs": "./typedoc.js" }