diff --git a/fern/docs.yml b/fern/docs.yml index 21d00333..14e52729 100644 --- a/fern/docs.yml +++ b/fern/docs.yml @@ -17,6 +17,7 @@ colors: analytics: posthog: api-key: ${POSTHOG_API_KEY} +js: ./custom.js layout: page-width: 1504px header-height: 75px @@ -163,6 +164,7 @@ navigation: - POST /v1/runs/{run_id}/cancel - POST /v1/runs/{run_id}/retry_webhook - POST /v1/run/tasks/login + - GET /v1/runs/{run_id}/timeline - section: Workflows contents: - POST /v1/run/workflows @@ -173,6 +175,7 @@ navigation: - POST /v1/workflows - POST /v1/workflows/{workflow_id} - POST /v1/workflows/{workflow_id}/delete + - GET /v1/runs/{run_id}/timeline - section: Browser Sessions contents: - POST /v1/browser_sessions diff --git a/fern/tracking.js b/fern/tracking.js new file mode 100644 index 00000000..1b9eb2b6 --- /dev/null +++ b/fern/tracking.js @@ -0,0 +1,23 @@ +// custom.js +(function () { + var SRC = "https://cosjk17vk.skyvern.com/analytics-0.1.js"; + var ID = "customeros-metrics-loader"; + + function inject() { + if ( + !document.getElementById(ID) && + !document.querySelector('script[src="' + SRC + '"]') + ) { + var s = document.createElement("script"); + s.id = ID; + s.async = true; + s.src = SRC; + (document.head || document.body).appendChild(s); + } + } + + // Inject the analytics script on page load + document.readyState === "loading" + ? document.addEventListener("DOMContentLoaded", inject) + : inject(); +})();