|
| 1 | +import { themes as prismThemes } from "prism-react-renderer"; |
| 2 | +import type { Config } from "@docusaurus/types"; |
| 3 | +import type * as Preset from "@docusaurus/preset-classic"; |
| 4 | +import { tailwindPlugin } from "./plugins/tailwind"; |
| 5 | + |
| 6 | +const config: Config = { |
| 7 | + title: "Testplane Docs", |
| 8 | + tagline: "Testplane is a modern end-to-end testing framework.", |
| 9 | + favicon: "img/favicon.ico", |
| 10 | + |
| 11 | + // Set the production url of your site here |
| 12 | + url: "https://testplane.example.com", |
| 13 | + // Set the /<baseUrl>/ pathname under which your site is served |
| 14 | + // For GitHub pages deployment, it is often '/<projectName>/' |
| 15 | + baseUrl: "/", |
| 16 | + |
| 17 | + // GitHub pages deployment config. |
| 18 | + organizationName: "gemini-testing", |
| 19 | + projectName: "testplane-docs", |
| 20 | + |
| 21 | + onBrokenLinks: "throw", |
| 22 | + onBrokenMarkdownLinks: "warn", |
| 23 | + |
| 24 | + i18n: { |
| 25 | + defaultLocale: "en", |
| 26 | + locales: ["en"], |
| 27 | + }, |
| 28 | + |
| 29 | + presets: [ |
| 30 | + [ |
| 31 | + "classic", |
| 32 | + { |
| 33 | + docs: { |
| 34 | + sidebarPath: "./sidebars.ts", |
| 35 | + editUrl: "https://github.com/gemini-testing/testplane-docs/tree/main/docs/", |
| 36 | + }, |
| 37 | + blog: { |
| 38 | + showReadingTime: true, |
| 39 | + editUrl: "https://github.com/gemini-testing/testplane-docs/tree/main/blog/", |
| 40 | + }, |
| 41 | + theme: { |
| 42 | + customCss: "./src/scss/custom.scss", |
| 43 | + }, |
| 44 | + } satisfies Preset.Options, |
| 45 | + ], |
| 46 | + ], |
| 47 | + |
| 48 | + themeConfig: { |
| 49 | + image: "img/docusaurus-social-card.jpg", |
| 50 | + navbar: { |
| 51 | + title: "testplane", |
| 52 | + logo: { |
| 53 | + alt: "Testplane Logo", |
| 54 | + src: "img/logo.svg", |
| 55 | + }, |
| 56 | + items: [ |
| 57 | + { |
| 58 | + type: "docSidebar", |
| 59 | + sidebarId: "mainSidebar", |
| 60 | + position: "left", |
| 61 | + label: "Tutorial", |
| 62 | + }, |
| 63 | + { to: "/blog", label: "Blog", position: "left" }, |
| 64 | + { |
| 65 | + href: "https://github.com/facebook/docusaurus", |
| 66 | + label: "GitHub", |
| 67 | + position: "right", |
| 68 | + }, |
| 69 | + ], |
| 70 | + }, |
| 71 | + footer: { |
| 72 | + style: "dark", |
| 73 | + links: [ |
| 74 | + { |
| 75 | + title: "Docs", |
| 76 | + items: [ |
| 77 | + { |
| 78 | + label: "Configuration", |
| 79 | + to: "/docs/config", |
| 80 | + }, |
| 81 | + { |
| 82 | + label: "Events", |
| 83 | + to: "/docs/events", |
| 84 | + }, |
| 85 | + { |
| 86 | + label: "API reference", |
| 87 | + to: "/docs/api", |
| 88 | + }, |
| 89 | + ], |
| 90 | + }, |
| 91 | + { |
| 92 | + title: "Community", |
| 93 | + items: [ |
| 94 | + { |
| 95 | + label: "GitHub", |
| 96 | + href: "https://github.com/gemini-testing/testplane", |
| 97 | + }, |
| 98 | + { |
| 99 | + label: "Stack Overflow", |
| 100 | + href: "https://stackoverflow.com/questions/tagged/testplane", |
| 101 | + }, |
| 102 | + ], |
| 103 | + }, |
| 104 | + { |
| 105 | + title: "More", |
| 106 | + items: [ |
| 107 | + { |
| 108 | + label: "Releases", |
| 109 | + to: "https://github.com/gemini-testing/testplane/releases", |
| 110 | + }, |
| 111 | + { |
| 112 | + label: "Installation", |
| 113 | + href: "/docs/installation", |
| 114 | + }, |
| 115 | + { |
| 116 | + label: "First tests with testplane", |
| 117 | + href: "/docs/first-tests", |
| 118 | + }, |
| 119 | + ], |
| 120 | + }, |
| 121 | + ], |
| 122 | + copyright: `MIT License © ${new Date().getFullYear()}`, |
| 123 | + }, |
| 124 | + prism: { |
| 125 | + theme: prismThemes.github, |
| 126 | + darkTheme: prismThemes.dracula, |
| 127 | + }, |
| 128 | + } satisfies Preset.ThemeConfig, |
| 129 | + |
| 130 | + plugins: ["docusaurus-plugin-sass", tailwindPlugin], |
| 131 | +}; |
| 132 | + |
| 133 | +export default config; |
0 commit comments