|
| 1 | +import { defineConfig } from 'astro/config'; |
| 2 | +import starlight from '@astrojs/starlight'; |
| 3 | +import starlightSidebarTopics from 'starlight-sidebar-topics'; |
| 4 | +import starlightImageZoom from 'starlight-image-zoom'; |
| 5 | + |
| 6 | +export default defineConfig({ |
| 7 | + integrations: [ |
| 8 | + starlight({ |
| 9 | + title: 'CodeceptJS', |
| 10 | + social: { |
| 11 | + github: 'https://github.com/codeceptjs/CodeceptJS', |
| 12 | + }, |
| 13 | + components: { |
| 14 | + Head: "./src/components/Head.astro", |
| 15 | + }, |
| 16 | + plugins: [ |
| 17 | + starlightSidebarTopics([ |
| 18 | + { |
| 19 | + label: 'Documentation', |
| 20 | + link: 'quickstart', |
| 21 | + items: [ |
| 22 | + { |
| 23 | + label: 'Web Testing', |
| 24 | + items: [ |
| 25 | + { label: 'Getting Started', link: 'basics' }, |
| 26 | + { label: 'CodeceptUI', link: 'ui' }, |
| 27 | + { label: 'Testing with Playwright', link: 'playwright' }, |
| 28 | + { label: 'Testing with WebDriver', link: 'webdriver' }, |
| 29 | + { label: 'Testing with Puppeteer', link: 'puppeteer' }, |
| 30 | + { label: 'API Testing', link: 'api' }, |
| 31 | + { label: 'Testing with TestCafe', link: 'testcafe' }, |
| 32 | + ], |
| 33 | + }, |
| 34 | + { |
| 35 | + label: 'Mobile Testing', |
| 36 | + items: [ |
| 37 | + { label: 'Mobile Testing with Appium', link: 'mobile' }, |
| 38 | + { label: 'Testing React Native with Detox', link: 'detox' }, |
| 39 | + ], |
| 40 | + }, |
| 41 | + { |
| 42 | + label: 'Organizing Tests', |
| 43 | + items: [ |
| 44 | + { label: 'Page Objects', link: 'pageobjects' }, |
| 45 | + { label: 'TypeScript', link: 'typescript' }, |
| 46 | + { label: 'Data Management', link: 'data' }, |
| 47 | + { label: 'Behavior Driven Development', link: 'bdd' }, |
| 48 | + { label: 'Locators', link: 'locators' }, |
| 49 | + { label: 'Translation', link: 'translation' }, |
| 50 | + { label: 'Custom Helpers', link: 'custom-helpers' }, |
| 51 | + { label: 'Best Practices', link: 'best' }, |
| 52 | + ], |
| 53 | + }, |
| 54 | + { |
| 55 | + label: 'Advanced Usage', |
| 56 | + items: [ |
| 57 | + { label: 'Advanced Usage', link: 'advanced' }, |
| 58 | + { label: 'Bootstrap', link: 'bootstrap' }, |
| 59 | + { label: 'Reporters', link: 'reports' }, |
| 60 | + { label: 'Continuous Integration', link: 'continuous-integration' }, |
| 61 | + { label: 'Parallel Execution', link: 'parallel' }, |
| 62 | + { label: 'Visual Testing', link: 'visual' }, |
| 63 | + { label: 'Email Testing', link: 'email' }, |
| 64 | + { label: 'Secrets', link: 'secrets' }, |
| 65 | + { label: 'Extending', link: 'hooks' }, |
| 66 | + { label: 'Concepts', link: 'internal-api' }, |
| 67 | + { label: 'Testing React Applications', link: 'react' }, |
| 68 | + { label: 'Testing with AI', link: 'ai' }, |
| 69 | + { label: 'Self-Healing Tests', link: 'heal' }, |
| 70 | + ], |
| 71 | + }, |
| 72 | + ], |
| 73 | + }, |
| 74 | + |
| 75 | + { |
| 76 | + label: 'Helpers', |
| 77 | + link: '/helpers/playwright/', |
| 78 | + items: [ |
| 79 | + { |
| 80 | + label: 'Web Testing', |
| 81 | + items: [ |
| 82 | + { label: 'WebDriver', link: 'helpers/web-driver' }, |
| 83 | + { label: 'Puppeteer', link: 'helpers/puppeteer' }, |
| 84 | + { label: 'TestCafe', link: 'helpers/test-cafe' }, |
| 85 | + ], |
| 86 | + }, |
| 87 | + { |
| 88 | + label: 'Mobile Testing', |
| 89 | + items: [ |
| 90 | + { label: 'Appium', link: 'helpers/appium' }, |
| 91 | + { label: 'Detox', link: 'helpers/detox' }, |
| 92 | + ], |
| 93 | + }, |
| 94 | + { |
| 95 | + label: 'API Helpers', |
| 96 | + items: [ |
| 97 | + { label: 'REST', link: 'helpers/rest' }, |
| 98 | + { label: 'ApiDataFactory', link: 'helpers/api-data-factory' }, |
| 99 | + { label: 'GraphQL', link: 'helpers/graph-ql' }, |
| 100 | + { label: 'GraphQLDataFactory', link: 'helpers/graph-ql-data-factory' }, |
| 101 | + { label: 'JSONResponse', link: 'helpers/json-response' }, |
| 102 | + { label: 'MockRequest', link: 'helpers/mock-request' }, |
| 103 | + ], |
| 104 | + }, |
| 105 | + { |
| 106 | + label: 'Other Helpers', |
| 107 | + items: [ |
| 108 | + { label: 'OpenAI', link: 'helpers/open-ai' }, |
| 109 | + { label: 'FileSystem', link: 'helpers/file-system' }, |
| 110 | + { label: 'Expect', link: 'helpers/expect' }, |
| 111 | + { label: 'SoftExpectHelper', link: 'helpers/soft-expect-helper' }, |
| 112 | + { label: 'MockServer', link: 'helpers/mock-server' }, |
| 113 | + { label: 'Community Helpers', link: 'community-helpers' }, |
| 114 | + ], |
| 115 | + }, |
| 116 | + ] |
| 117 | + }, |
| 118 | + { |
| 119 | + label: 'Wiki', |
| 120 | + link: '/wiki/home/', |
| 121 | + items: [ |
| 122 | + { label: 'Wiki', autogenerate: { directory: 'wiki/' } }, |
| 123 | + ], |
| 124 | + }, |
| 125 | + ]), |
| 126 | + starlightImageZoom(), |
| 127 | + ], |
| 128 | + }), |
| 129 | + ], |
| 130 | +}); |
0 commit comments