Skip to content

Commit

Permalink
Merge pull request #2024 from Agenta-AI/doc/add-posthog-tracker
Browse files Browse the repository at this point in the history
Doc: added posthog for tracking
  • Loading branch information
mmabrouk committed Aug 26, 2024
2 parents 9d778f0 + 7168913 commit 9ac33ea
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 30 deletions.
36 changes: 11 additions & 25 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import type * as Preset from "@docusaurus/preset-classic";
import type { Config } from "@docusaurus/types";
import type * as Plugin from "@docusaurus/types/src/plugin";
import type * as OpenApiPlugin from "docusaurus-plugin-openapi-docs";
import "dotenv/config";

const config: Config = {
title: "Agenta Documentation",
tagline: "Agenta: The LLMOps platform.",
favicon: "images/favicon.ico",
// Set the production url of your site here
url: "https://your-docusaurus-site.example.com",
url: "https://docs.agenta.ai",
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/",
Expand Down Expand Up @@ -107,30 +108,6 @@ const config: Config = {
type: "search",
position: "right",
},
// {
// href: "https://github.com/Agenta-AI/agenta",
// label: "GitHub",
// position: "right",
// class: "nav_social_links",
// },
// {
// href: "https://agenta-hq.slack.com/join/shared_invite/zt-1zsafop5i-Y7~ZySbhRZvKVPV5DO_7IA",
// label: "Slack",
// position: "right",
// class: "nav_social_links",
// },
// {
// href: "https://cal.com/mahmoud-mabrouk-ogzgey/demo",
// label: "Book A Demo",
// position: "right",
// class: "nav_social_links",
// },
// {
// href: "https://cloud.agenta.ai/apps",
// label: "Start for Free",
// position: "right",
// class: "nav_social_links",
// },
{
href: "https://cal.com/mahmoud-mabrouk-ogzgey/demo",
position: "right",
Expand Down Expand Up @@ -263,6 +240,15 @@ const config: Config = {
} satisfies Plugin.PluginOptions,
},
],
[
"posthog-docusaurus",
{
apiKey: process.env.POSTHOG_API_KEY,
appUrl: "https://docs.agenta.ai",
enableInDevelopment: false, // optional
},
],

"docusaurus-plugin-image-zoom",
],

Expand Down
29 changes: 25 additions & 4 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"docusaurus-plugin-image-zoom": "^2.0.0",
"docusaurus-plugin-openapi-docs": "3.0.1",
"docusaurus-theme-openapi-docs": "3.0.1",
"dotenv": "^16.4.5",
"posthog-docusaurus": "^2.0.1",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
Expand Down
9 changes: 8 additions & 1 deletion website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,14 @@ article a:hover {
}

/** Navbar **/
@media (min-width: 1350px) {
@media (min-width: 1851px) {
.main-wrapper,
.navbar__inner {
width: 1550px;
margin: auto;
}
}
@media (min-width: 1350px) and (max-width: 1850px) {
.main-wrapper,
.navbar__inner {
width: 85%;
Expand Down

0 comments on commit 9ac33ea

Please sign in to comment.