|
| 1 | +module.exports = { |
| 2 | + title: 'CodeceptJS', // Title for your website. |
| 3 | + description: 'SuperCharged End 2 End Testing with WebDriver & Puppeteer', |
| 4 | + head: [ |
| 5 | + ['link', { rel: 'apple-touch-icon', sizes: '180x180', href: '/favicon/apple-touch-icon.png' }], |
| 6 | + ['link', { rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon/favicon-32x32.png' }], |
| 7 | + ['link', { rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon/favicon-16x16.png' }], |
| 8 | + ['link', { rel: 'shortcut icon', type: 'image/x-icon', href: '/favicon/favicon.ico' }], |
| 9 | + ['link', { rel: 'manifest', href: '/favicon/site.webmanifest' }], |
| 10 | + ['link', { rel: 'mask-icon', href: '/favicon/safari-pinned-tab.svg', color: '#805ad5' }], |
| 11 | + ['meta', { name: 'theme-color', content: '#805ad5' }], |
| 12 | + ['meta', { name: 'msapplication-config', content: '/favicon/browserconfig.xml' }], |
| 13 | + ['script', {}, `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': |
| 14 | +new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], |
| 15 | +j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= |
| 16 | +'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); |
| 17 | +})(window,document,'script','dataLayer','GTM-P98R7LQ');`] |
| 18 | + ], |
| 19 | + |
| 20 | + themeConfig: { |
| 21 | + lastUpdated: 'Last Updated', |
| 22 | + docsRepo: 'codeceptjs/codeceptjs', |
| 23 | + // if your docs are not at the root of the repo: |
| 24 | + docsDir: 'docs', |
| 25 | + // if your docs are in a specific branch (defaults to 'master'): |
| 26 | + docsBranch: '3.x', |
| 27 | + // defaults to false, set to true to enable |
| 28 | + editLinks: true, |
| 29 | + // custom text for edit link. Defaults to "Edit this page" |
| 30 | + editLinkText: 'Help us improve this page!', |
| 31 | + logo: '/logo.svg', |
| 32 | + searchPlaceholder: 'Search...', |
| 33 | + algolia: { |
| 34 | + apiKey: '0cc13a0af567a05fc38790be681b1491', |
| 35 | + indexName: 'codecept' |
| 36 | + }, |
| 37 | + |
| 38 | + nav: [ |
| 39 | + { |
| 40 | + text: 'Quickstart', |
| 41 | + link: '/quickstart', |
| 42 | + }, |
| 43 | + |
| 44 | + { |
| 45 | + text: "Guides", |
| 46 | + items: [ |
| 47 | + { |
| 48 | + group: "Basics", |
| 49 | + items: [ |
| 50 | + { text: "Getting Started", link: '/basics' }, |
| 51 | + { text: "Tutorial", link: '/tutorial' }, |
| 52 | + ] |
| 53 | + }, |
| 54 | + { |
| 55 | + group: "Helpers", |
| 56 | + items: [ |
| 57 | + { text: "Using Playwright", link: '/playwright' }, |
| 58 | + { text: "Using WebDriver", link: '/webdriver' }, |
| 59 | + { text: "Using Puppeteer", link: '/puppeteer' }, |
| 60 | + { text: "API Testing", link: '/api' }, |
| 61 | + { text: "Using TestCafe", link: '/testcafe' }, |
| 62 | + { text: "Mobile Testing", link: '/mobile' }, |
| 63 | + ] |
| 64 | + }, |
| 65 | + { |
| 66 | + group: "Other", |
| 67 | + items: [ |
| 68 | + { text: "Locators", link: "/locators" }, |
| 69 | + { text: "Page Objects", link: "/pageobjects" }, |
| 70 | + { text: "Behavior Driven Development", link: "/bdd" }, |
| 71 | + { text: "TypeScript", link: "/typescript" }, |
| 72 | + { text: "Data Management", link: "/data" }, |
| 73 | + { text: "Parallel Execution", link: "/parallel" }, |
| 74 | + { text: "Self-Healing Tests", link: "/heal" }, |
| 75 | + { text: "AI Testing 🪄", link: '/ai' }, |
| 76 | + { text: "Reports", link: "/reports" }, |
| 77 | + ] |
| 78 | + }, |
| 79 | + { |
| 80 | + group: "Other", |
| 81 | + items: [ |
| 82 | + { text: "Organizing Tests...", link: "/pageobjects" }, |
| 83 | + { text: "Advanced Usage...", link: "/advanced" }, |
| 84 | + ] |
| 85 | + }, |
| 86 | + |
| 87 | + // { |
| 88 | + // group: "Mobile Testing", |
| 89 | + // text: 'Mobile Testing', |
| 90 | + // items: [ |
| 91 | + // "mobile", |
| 92 | + // "detox", |
| 93 | + // ], |
| 94 | + // }, |
| 95 | + // { |
| 96 | + // group: "Organizing Tests", |
| 97 | + // text: 'Organizing Tests', |
| 98 | + // items: [ |
| 99 | + // { text: "best", link: "best" }, |
| 100 | + // { text: "locators", link: "locators" }, |
| 101 | + // { text: "pageobjects", link: "pageobjects" }, |
| 102 | + // { text: "helpers", link: "helpers" }, |
| 103 | + // { text: "bdd", link: "bdd" }, |
| 104 | + // { text: "data", link: "data" }, |
| 105 | + // { text: "parallel", link: "parallel" }, |
| 106 | + // { text: "reports", link: "reports" }, |
| 107 | + // { text: "advanced", link: "advanced" }, |
| 108 | + // { text: "hooks", link: "hooks" }, |
| 109 | + // ], |
| 110 | + // } |
| 111 | + ], |
| 112 | + // "Tutorials": [ |
| 113 | + // { text: // "books, link: // "books" }, |
| 114 | + // { text: // "videos, link: // "videos" }, |
| 115 | + // "examples" |
| 116 | + // ] |
| 117 | + }, |
| 118 | + { |
| 119 | + text: "Helpers", |
| 120 | + items: [ |
| 121 | + { |
| 122 | + group: "Web Testing", |
| 123 | + text: 'Web Testing', |
| 124 | + items: [ |
| 125 | + { text: "Playwright", link: "/helpers/Playwright" }, |
| 126 | + { text: "WebDriver", link: "/helpers/WebDriver" }, |
| 127 | + { text: "Puppeteer", link: "/helpers/Puppeteer" }, |
| 128 | + { text: "TestCafe", link: "/helpers/TestCafe" }, |
| 129 | + ] |
| 130 | + }, |
| 131 | + { |
| 132 | + group: "Mobile Testing", |
| 133 | + text: 'Mobile Testing', |
| 134 | + items: [ |
| 135 | + { text: "Appium", link: "/helpers/Appium" }, |
| 136 | + { text: "Detox", link: "/helpers/Detox" }, |
| 137 | + ] |
| 138 | + }, |
| 139 | + { |
| 140 | + group: 'Data Helpers', |
| 141 | + text: 'API Helpers', |
| 142 | + items: [ |
| 143 | + { text: "REST", link: "/helpers/REST" }, |
| 144 | + { text: "ApiDataFactory", link: "/helpers/ApiDataFactory" }, |
| 145 | + { text: "GraphQL", link: "/helpers/GraphQL" }, |
| 146 | + { text: "GraphQLDataFactory", link: "/helpers/GraphQLDataFactory" }, |
| 147 | + { text: "JSONResponse", link: "/helpers/JSONResponse" }, |
| 148 | + { text: "MockRequest", link: "/helpers/MockRequest" }, |
| 149 | + ] |
| 150 | + }, |
| 151 | + { |
| 152 | + group: 'other', |
| 153 | + text: 'Other Helpers', |
| 154 | + items: [ |
| 155 | + { text: "OpenAI", link: "/helpers/OpenAI" }, |
| 156 | + { text: "FileSystem", link: "/helpers/FileSystem" }, |
| 157 | + { text: "Expect", link: "/helpers/Expect" }, |
| 158 | + { text: "MockServer", link: "/helpers/MockServer" }, |
| 159 | + { text: "Community Helpers", link: "/community-helpers" }, |
| 160 | + ] |
| 161 | + }, |
| 162 | + ] |
| 163 | + }, |
| 164 | + { |
| 165 | + text: 'Plugins', |
| 166 | + link: '/plugins', |
| 167 | + }, |
| 168 | + { |
| 169 | + text: "API", |
| 170 | + items: [ |
| 171 | + { text: "Installation", link: "/installation" }, |
| 172 | + { text: "Commands", link: "/commands" }, |
| 173 | + { text: "Configuration", link: "/configuration" }, |
| 174 | + { text: "Docker", link: "/docker" }, |
| 175 | + ], |
| 176 | + }, |
| 177 | + { |
| 178 | + text: 'Releases', |
| 179 | + link: '/changelog', |
| 180 | + }, |
| 181 | + { |
| 182 | + text: "Community", |
| 183 | + items: [ |
| 184 | + { |
| 185 | + group: 'links', |
| 186 | + items: [ |
| 187 | + { text: "GitHub", link: "https://github.com/codeceptjs/CodeceptJS" }, |
| 188 | + { text: "Discussions", link: "https://github.com/codeceptjs/CodeceptJS/discussions" }, |
| 189 | + { text: "Slack Chat", link: "https://bit.ly/codeceptjs-slack" }, |
| 190 | + { text: "Forum", link: "https://codecept.discourse.group/" }, |
| 191 | + { text: "Twitter", link: "https://twitter.com/codeceptjs" }, |
| 192 | + { text: "Stack Overflow", link: "https://stackoverflow.com/questions/tagged/codeceptjs" }, |
| 193 | + ], |
| 194 | + }, |
| 195 | + { |
| 196 | + group: 'wiki', |
| 197 | + items: [ |
| 198 | + { text: "Plugins & Helpers", link: "https://github.com/codeceptjs/CodeceptJS/wiki/Community-Helpers-&-Plugins" }, |
| 199 | + { text: "Examples", link: "https://github.com/codeceptjs/CodeceptJS/wiki/Examples" }, |
| 200 | + { text: "Videos", link: "https://github.com/codeceptjs/CodeceptJS/wiki/Videos" }, |
| 201 | + { text: "Posts", link: "https://github.com/Codeception/CodeceptJS/wiki/Books-&-Posts" }, |
| 202 | + ], |
| 203 | + }, |
| 204 | + { |
| 205 | + group: 'commerce', |
| 206 | + items: [ |
| 207 | + { text: "Commercial Support", link: "https://sdclabs.com/" }, |
| 208 | + { text: "Trainings", link: "https://sdclabs.com/trainings/web-automation-codeceptjs?utm_source=codecept.io&utm_medium=top_menu&utm_term=link&utm_campaign=reference" }, |
| 209 | + ] |
| 210 | + }, |
| 211 | + { |
| 212 | + group: 'support', |
| 213 | + items: [ |
| 214 | + { text: "Support us via OpenCollective!", link: "https://opencollective.com/codeceptjs" }, |
| 215 | + ] |
| 216 | + } |
| 217 | + ], |
| 218 | + }, |
| 219 | + |
| 220 | + ], |
| 221 | + |
| 222 | + sidebar: { |
| 223 | + '/helpers/': [], |
| 224 | + '/': [ |
| 225 | + { |
| 226 | + title: 'Web Testing', // required |
| 227 | + sidebarDepth: 2, // optional, defaults to 1 |
| 228 | + collapsable: true, |
| 229 | + children: [ |
| 230 | + "basics", |
| 231 | + 'ui', |
| 232 | + 'playwright', |
| 233 | + 'webdriver', |
| 234 | + 'puppeteer', |
| 235 | + 'api', |
| 236 | + 'testcafe', |
| 237 | + ] |
| 238 | + }, |
| 239 | + { |
| 240 | + title: 'Mobile Testing', |
| 241 | + children: [ |
| 242 | + "mobile", |
| 243 | + "detox", |
| 244 | + ] |
| 245 | + }, |
| 246 | + { |
| 247 | + title: 'Organizing Tests', |
| 248 | + children: [ |
| 249 | + "pageobjects", |
| 250 | + "typescript", |
| 251 | + "data", |
| 252 | + "bdd", |
| 253 | + "locators", |
| 254 | + "translation", |
| 255 | + "custom-helpers", |
| 256 | + "best", |
| 257 | + ] |
| 258 | + }, |
| 259 | + { |
| 260 | + title: 'Advanced Usage', |
| 261 | + children: [ |
| 262 | + "advanced", |
| 263 | + "bootstrap", |
| 264 | + "reports", |
| 265 | + "continuous-integration", |
| 266 | + "parallel", |
| 267 | + 'visual', |
| 268 | + 'email', |
| 269 | + 'secrets', |
| 270 | + 'hooks', |
| 271 | + 'internal-api', |
| 272 | + 'react', |
| 273 | + "ai", |
| 274 | + "heal", |
| 275 | + ] |
| 276 | + }, |
| 277 | + ] |
| 278 | + } |
| 279 | + }, |
| 280 | + |
| 281 | + |
| 282 | + postcss: { |
| 283 | + |
| 284 | + plugins: [ |
| 285 | + require("tailwindcss")("./tailwind.config.js"), |
| 286 | + ] |
| 287 | + }, |
| 288 | + |
| 289 | + plugins: { |
| 290 | + 'sitemap': { |
| 291 | + hostname: 'https://codecept.io' |
| 292 | + } |
| 293 | + } |
| 294 | +} |
0 commit comments