DeepTeam is a framework to red team LLMs and AI agents.
convert docusaurus config from js to ts
A-Vamshif01f96ed4079
diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.jsdeleted file mode 100644index deeb7af3..00000000--- a/docs/docusaurus.config.js+++ /dev/null@@ -1,251 +0,0 @@-// const remarkMathModule = require('remark-math');-// const rehypeKatexModule = require('rehype-katex');-import remarkMath from 'remark-math';-import rehypeKatex from 'rehype-katex';-// const remarkMathModule = import("remark-math");-// const rehypeKatexModule = import("rehype-katex");-/** @type {import('@docusaurus/types').Config} */--module.exports = {- plugins: [- "docusaurus-plugin-sass",- [- "@docusaurus/plugin-content-docs",- {- id: "guides",- path: "guides",- routeBasePath: "guides",- sidebarPath: require.resolve("./sidebarGuides.js"),- editUrl: "https://github.com/confident-ai/deepteam/edit/main/docs/",- showLastUpdateAuthor: true,- showLastUpdateTime: true,- },- ],- [- "@docusaurus/plugin-content-blog",- {- id: "blogs",- path: "blog",- routeBasePath: "blog",- blogSidebarCount: 0- },- ],- ],-- title: "DeepTeam by Confident AI - The LLM Red Teaming Framework",- tagline: "Red Teaming Framework for LLMs",- favicon: "img/fav.ico",-- // Set the production url of your site here- url: "https://trydeepteam.com",- // Set the /<baseUrl>/ pathname under which your site is served- // For GitHub pages deployment, it is often '/<projectName>/'- baseUrl: "/",-- onBrokenLinks: "warn",- headTags: [- {- tagName: 'meta',- attributes: {- name: 'algolia-site-verification',- content: '0BD7859165065E7F',- },- },- ],-- // Even if you don't use internalization, you can use this field to set useful- // metadata like html lang. For example, if your site is Chinese, you may want- // to replace "en" with "zh-Hans".- i18n: {- defaultLocale: "en",- locales: ["en"],- },-- presets: [- [- "@docusaurus/preset-classic",- {- blog: false,- docs: {- path: "docs",- editUrl:- "https://github.com/confident-ai/deepteam/edit/main/docs/",- showLastUpdateAuthor: true,- showLastUpdateTime: true,- sidebarPath: require.resolve("./sidebars.js"),- remarkPlugins: [remarkMath],- rehypePlugins: [rehypeKatex],- },- theme: {- customCss: require.resolve("./src/css/custom.scss"),- },- gtag: {- trackingID: "G-N2EGDDYG9M",- anonymizeIP: false,- },- },- ],- ],- themes: ['@docusaurus/theme-mermaid'],- markdown: {- mermaid: true,- hooks: {- onBrokenMarkdownLinks: "warn",- }- },- scripts: [- {- src: "https://plausible.io/js/script.tagged-events.js",- defer: true,- "data-domain": "trydeepteam.com",- },- {- src: "https://unpkg.com/lucide@latest",- async: true,- },- ],- stylesheets: [- {- href: "https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css",- type: "text/css",- integrity:- "sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM",- crossorigin: "anonymous",- },- {- href: "https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@500&display=swap",- type: "text/css",- },- ],- themeConfig:- /** @type {import('@docusaurus/preset-classic').ThemeConfig} */- ({- image: "img/social_card.png",- navbar: {- logo: {- alt: "DeepTeam Logo",- src: "icons/DeepTeam.svg",- },- items: [- {- to: "docs/getting-started",- position: "left",- label: "Docs",- activeBasePath: 'docs',- },- {- to: "guides/guide-custom-vulnerability",- position: "left",- label: "Guides",- activeBasePath: "guides",- },- {to: 'blog', label: 'Blog', position: 'left'},- // {- // href: "https://confident-ai.com/book-a-demo",- // className: "header-confident-link",- // position: "right",- // label: 'Try DeepTeam Cloud',- // },- {- href: "https://discord.gg/3SEyvpgu2f",- className: "header-discord-link",- position: "right",- },- {- href: "https://github.com/confident-ai/deepteam",- position: "right",- className: "header-github-link",- },- ],- },- algolia: {- appId: "5CUTDUUUNG",- apiKey: "94dc139a8be236f7f48eb9013014e517",- indexName: "Deepteam",- contextualSearch: true,- },- colorMode: {- defaultMode: "light",- disableSwitch: false,- respectPrefersColorScheme: false,- },- announcementBar: {- id: "announcementBar-1",- content:- '⭐️ If you like DeepTeam, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/confident-ai/deepteam">GitHub</a>! ⭐️',- backgroundColor: "#ff006b",- textColor: "#000",- },- footer: {- style: "dark",- links: [- {- title: "Documentation",- items: [- {- label: "Introduction",- to: "/docs/getting-started",- },- {- label: "Guides",- to: "/guides/guide-custom-vulnerability",- },- ],- },- {- title: "Articles You Must Read",- items: [- {- label: "How to jailbreak LLMs",- to: "https://www.confident-ai.com/blog/how-to-jailbreak-llms-one-step-at-a-time",- },- {label: "OWASP Top 10 for LLMs", to: "https://www.confident-ai.com/blog/owasp-top-10-2025-for-llm-applications-risks-and-mitigation-techniques"},- {label: "The comprehensive LLM safety guide", to: "https://www.confident-ai.com/blog/the-comprehensive-llm-safety-guide-navigate-ai-regulations-and-best-practices-for-llm-safety"},- {label: "LLM evaluation metrics", to: "https://www.confident-ai.com/blog/llm-evaluation-metrics-everything-you-need-for-llm-evaluation"},- ],- },- {- title: "Red Teaming Community",- items: [- {- label: "GitHub",- to: "https://github.com/confident-ai/deepteam",- },- {- label: "Discord",- to: "https://discord.gg/a3K9c8GRGt",- },- {- label: "Newsletter",- to: "https://confident-ai.com/blog",- },- ],- },- ],- copyright: `Copyright © ${new Date().getFullYear()} Confident AI Inc. Built with ❤️ and confidence.`,- },- prism: {- theme: require("prism-react-renderer/themes/nightOwl"),- additionalLanguages: ["python"],- magicComments: [- {- className: "theme-code-block-highlighted-line",- line: "highlight-next-line",- block: { start: "highlight-start", end: "highlight-end" },- },- {- className: "code-block-error-message",- line: "highlight-next-line-error-message",- },- {- className: "code-block-info-line",- line: "highlight-next-line-info",- block: {- start: "highlight-info-start",- end: "highlight-info-end",- },- },- ],- },- }),-};diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.tsnew file mode 100644index 00000000..52814c34--- /dev/null+++ b/docs/docusaurus.config.ts@@ -0,0 +1,264 @@+import type { Config } from '@docusaurus/types';+import type * as Preset from '@docusaurus/preset-classic';+import remarkMath from 'remark-math';+import rehypeKatex from 'rehype-katex';++const config: Config = {+ plugins: [+ "docusaurus-plugin-sass",+ [+ "@docusaurus/plugin-content-docs",+ {+ id: "guides",+ path: "guides",+ routeBasePath: "guides",+ sidebarPath: require.resolve("./sidebarGuides.js"),+ editUrl: "https://github.com/confident-ai/deepteam/edit/main/docs/",+ showLastUpdateAuthor: true,+ showLastUpdateTime: true,+ },+ ],+ [+ "@docusaurus/plugin-content-blog",+ {+ id: "blogs",+ path: "blog",+ routeBasePath: "blog",+ blogSidebarCount: 0+ },+ ],+ ],++ title: "DeepTeam by Confident AI - The LLM Red Teaming Framework",+ tagline: "Red Teaming Framework for LLMs",+ favicon: "img/fav.ico",++ url: "https://trydeepteam.com",+ baseUrl: "/",++ onBrokenLinks: "warn",++ headTags: [+ {+ tagName: 'meta',+ attributes: {+ name: 'algolia-site-verification',+ content: '0BD7859165065E7F',+ },+ },+ // GEO / SEO Organization Schema injected here+ {+ tagName: 'script',+ attributes: {+ type: 'application/ld+json',+ },+ innerHTML: JSON.stringify({+ "@context": "https://schema.org",+ "@type": "Organization",+ "name": "Confident AI Inc.",+ "alternateName": "DeepTeam",+ "url": "https://trydeepteam.com",+ "logo": "https://trydeepteam.com/icons/DeepTeam.svg",+ "sameAs": [+ "https://github.com/confident-ai/deepteam",+ "https://discord.gg/3SEyvpgu2f"+ ]+ }),+ },+ ],++ i18n: {+ defaultLocale: "en",+ locales: ["en"],+ },++ presets: [+ [+ "@docusaurus/preset-classic",+ {+ blog: false,+ docs: {+ path: "docs",+ editUrl: "https://github.com/confident-ai/deepteam/edit/main/docs/",+ showLastUpdateAuthor: true,+ showLastUpdateTime: true,+ sidebarPath: require.resolve("./sidebars.js"),+ remarkPlugins: [remarkMath],+ rehypePlugins: [rehypeKatex],+ },+ theme: {+ customCss: require.resolve("./src/css/custom.scss"),+ },+ gtag: {+ trackingID: "G-N2EGDDYG9M",+ anonymizeIP: false,+ },+ } satisfies Preset.Options,+ ],+ ],+ themes: ['@docusaurus/theme-mermaid'],+ markdown: {+ mermaid: true,+ hooks: {+ onBrokenMarkdownLinks: "warn",+ }+ },+ scripts: [+ {+ src: "https://plausible.io/js/script.tagged-events.js",+ defer: true,+ "data-domain": "trydeepteam.com",+ },+ {+ src: "https://unpkg.com/lucide@latest",+ async: true,+ },+ ],+ stylesheets: [+ {+ href: "https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css",+ type: "text/css",+ integrity:+ "sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM",+ crossorigin: "anonymous",+ },+ {+ href: "https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@500&display=swap",+ type: "text/css",+ },+ ],+ themeConfig: {+ image: "img/social_card.png",+ navbar: {+ logo: {+ alt: "DeepTeam Logo",+ src: "icons/DeepTeam.svg",+ },+ items: [+ {+ to: "docs/getting-started",+ position: "left",+ label: "Docs",+ activeBasePath: 'docs',+ },+ {+ to: "guides/guide-custom-vulnerability",+ position: "left",+ label: "Guides",+ activeBasePath: "guides",+ },+ { to: 'blog', label: 'Blog', position: 'left' },+ {+ href: "https://discord.gg/3SEyvpgu2f",+ className: "header-discord-link",+ position: "right",+ },+ {+ href: "https://github.com/confident-ai/deepteam",+ position: "right",+ className: "header-github-link",+ },+ ],+ },+ algolia: {+ appId: "5CUTDUUUNG",+ apiKey: "94dc139a8be236f7f48eb9013014e517",+ indexName: "Deepteam",+ contextualSearch: true,+ },+ colorMode: {+ defaultMode: "light",+ disableSwitch: false,+ respectPrefersColorScheme: false,+ },+ announcementBar: {+ id: "announcementBar-1",+ content:+ '⭐️ If you like DeepTeam, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/confident-ai/deepteam">GitHub</a>! ⭐️',+ backgroundColor: "#ff006b",+ textColor: "#000",+ },+ footer: {+ style: "dark",+ links: [+ {+ title: "Documentation",+ items: [+ {+ label: "Introduction",+ to: "/docs/getting-started",+ },+ {+ label: "Guides",+ to: "/guides/guide-custom-vulnerability",+ },+ ],+ },+ {+ title: "Articles You Must Read",+ items: [+ {+ label: "How to jailbreak LLMs",+ to: "https://www.confident-ai.com/blog/how-to-jailbreak-llms-one-step-at-a-time",+ },+ {+ label: "OWASP Top 10 for LLMs",+ to: "https://www.confident-ai.com/blog/owasp-top-10-2025-for-llm-applications-risks-and-mitigation-techniques"+ },+ {+ label: "The comprehensive LLM safety guide",+ to: "https://www.confident-ai.com/blog/the-comprehensive-llm-safety-guide-navigate-ai-regulations-and-best-practices-for-llm-safety"+ },+ {+ label: "LLM evaluation metrics",+ to: "https://www.confident-ai.com/blog/llm-evaluation-metrics-everything-you-need-for-llm-evaluation"+ },+ ],+ },+ {+ title: "Red Teaming Community",+ items: [+ {+ label: "GitHub",+ to: "https://github.com/confident-ai/deepteam",+ },+ {+ label: "Discord",+ to: "https://discord.gg/a3K9c8GRGt",+ },+ {+ label: "Newsletter",+ to: "https://confident-ai.com/blog",+ },+ ],+ },+ ],+ copyright: `Copyright © ${new Date().getFullYear()} Confident AI Inc. Built with ❤️ and confidence.`,+ },+ prism: {+ theme: require("prism-react-renderer/themes/nightOwl"),+ additionalLanguages: ["python"],+ magicComments: [+ {+ className: "theme-code-block-highlighted-line",+ line: "highlight-next-line",+ block: { start: "highlight-start", end: "highlight-end" },+ },+ {+ className: "code-block-error-message",+ line: "highlight-next-line-error-message",+ },+ {+ className: "code-block-info-line",+ line: "highlight-next-line-info",+ block: {+ start: "highlight-info-start",+ end: "highlight-info-end",+ },+ },+ ],+ },+ } satisfies Preset.ThemeConfig,+};++export default config;