Skip to content

Commit 8a7b8a8

Browse files
committed
update theme
1 parent ab7b287 commit 8a7b8a8

File tree

13 files changed

+1387
-478
lines changed

13 files changed

+1387
-478
lines changed

astro.config.mjs

Lines changed: 157 additions & 140 deletions
Original file line numberDiff line numberDiff line change
@@ -1,152 +1,169 @@
1-
import { defineConfig } from 'astro/config';
1+
import {defineConfig} from 'astro/config';
22
import starlight from '@astrojs/starlight';
33
import tailwindcss from '@tailwindcss/vite';
44
import starlightSidebarTopics from 'starlight-sidebar-topics';
55
import starlightImageZoom from 'starlight-image-zoom';
66
import rehypeAstroRelativeMarkdownLinks from "astro-rehype-relative-markdown-links";
7+
import starlightScrollToTop from 'starlight-scroll-to-top';
8+
import react from '@astrojs/react';
79

810
const options = {
9-
contentPath: 'src/content/docs',
11+
collectionBase: false,
1012
};
1113

1214
export default defineConfig({
13-
integrations: [
14-
starlight({
15-
title: '',
16-
favicon: '/favicon.svg',
17-
social: [
18-
{ icon: 'github', label: 'GitHub', href: 'https://github.com/codeceptjs/CodeceptJS' },
19-
],
20-
components: {
21-
Head: "./src/components/Head.astro",
22-
PageTitle: './src/components/PageTitle.astro',
23-
Footer: './src/components/Footer.astro',
24-
SiteTitle: './src/components/SiteTitle.astro',
25-
},
26-
customCss: [
27-
'./src/styles/custom.css',
28-
'./src/styles/global.css',
29-
],
30-
plugins: [
31-
starlightImageZoom(),
32-
starlightSidebarTopics([
33-
{
34-
label: 'Documentation',
35-
link: 'quickstart',
36-
items: [
37-
{
38-
label: 'Web Testing',
39-
items: [
40-
{ label: 'Getting Started', link: 'basics' },
41-
{ label: 'CodeceptUI', link: 'ui' },
42-
{ label: 'Testing with Playwright', link: 'playwright' },
43-
{ label: 'Testing with WebDriver', link: 'webdriver' },
44-
{ label: 'Testing with Puppeteer', link: 'puppeteer' },
45-
{ label: 'API Testing', link: 'api' },
46-
{ label: 'Testing with TestCafe', link: 'testcafe' },
47-
],
48-
},
49-
{
50-
label: 'Mobile Testing',
51-
items: [
52-
{ label: 'Mobile Testing with Appium', link: 'mobile' },
53-
{ label: 'Testing React Native with Detox', link: 'detox' },
54-
],
55-
},
56-
{
57-
label: 'Organizing Tests',
58-
items: [
59-
{ label: 'Page Objects', link: 'pageobjects' },
60-
{ label: 'TypeScript', link: 'typescript' },
61-
{ label: 'Data Management', link: 'data' },
62-
{ label: 'Behavior Driven Development', link: 'bdd' },
63-
{ label: 'Locators', link: 'locators' },
64-
{ label: 'Translation', link: 'translation' },
65-
{ label: 'Custom Helpers', link: 'custom-helpers' },
66-
{ label: 'Best Practices', link: 'best' },
67-
],
68-
},
69-
{
70-
label: 'Advanced Usage',
71-
items: [
72-
{ label: 'Advanced Usage', link: 'advanced' },
73-
{ label: 'Bootstrap', link: 'bootstrap' },
74-
{ label: 'Reporters', link: 'reports' },
75-
{ label: 'Continuous Integration', link: 'continuous-integration' },
76-
{ label: 'Parallel Execution', link: 'parallel' },
77-
{ label: 'Visual Testing', link: 'visual' },
78-
{ label: 'Email Testing', link: 'email' },
79-
{ label: 'Secrets', link: 'secrets' },
80-
{ label: 'Extending', link: 'hooks' },
81-
{ label: 'Concepts', link: 'internal-api' },
82-
{ label: 'Testing React Applications', link: 'react' },
83-
{ label: 'Testing with AI', link: 'ai' },
84-
{ label: 'Self-Healing Tests', link: 'heal' },
85-
{ label: 'Testing with Protractor', link: 'angular' },
86-
{ label: 'Testing Vue Apps', link: 'vue' },
87-
],
88-
},
89-
],
90-
},
15+
integrations: [
16+
react(),
17+
starlight({
18+
title: '',
19+
favicon: '/favicon.svg',
20+
social: [
21+
{icon: 'github', label: 'GitHub', href: 'https://github.com/codeceptjs/CodeceptJS'},
22+
],
23+
components: {
24+
Head: "./src/components/Head.astro",
25+
PageTitle: './src/components/PageTitle.astro',
26+
Footer: './src/components/Footer.astro',
27+
SiteTitle: './src/components/SiteTitle.astro',
28+
Search: './src/components/Search.astro',
29+
SocialIcons: './src/components/Links.astro',
30+
},
31+
customCss: [
32+
'./src/styles/custom.css',
33+
'./src/styles/global.css',
34+
],
35+
plugins: [
36+
starlightImageZoom(),
37+
starlightSidebarTopics([
38+
{
39+
label: 'Documentation',
40+
link: 'quickstart',
41+
items: [
42+
{
43+
label: 'Web Testing',
44+
items: [
45+
{label: 'Getting Started', link: 'basics'},
46+
{label: 'CodeceptUI', link: 'ui'},
47+
{label: 'Testing with Playwright', link: 'playwright'},
48+
{label: 'Testing with WebDriver', link: 'webdriver'},
49+
{label: 'Testing with Puppeteer', link: 'puppeteer'},
50+
{label: 'API Testing', link: 'api'},
51+
{label: 'Testing with TestCafe', link: 'testcafe'},
52+
],
53+
},
54+
{
55+
label: 'Mobile Testing',
56+
items: [
57+
{label: 'Mobile Testing with Appium', link: 'mobile'},
58+
{label: 'Testing React Native with Detox', link: 'detox'},
59+
],
60+
},
61+
{
62+
label: 'Organizing Tests',
63+
items: [
64+
{label: 'Page Objects', link: 'pageobjects'},
65+
{label: 'TypeScript', link: 'typescript'},
66+
{label: 'Data Management', link: 'data'},
67+
{label: 'Behavior Driven Development', link: 'bdd'},
68+
{label: 'Locators', link: 'locators'},
69+
{label: 'Translation', link: 'translation'},
70+
{label: 'Custom Helpers', link: 'custom-helpers'},
71+
{label: 'Best Practices', link: 'best'},
72+
],
73+
},
74+
{
75+
label: 'Advanced Usage',
76+
items: [
77+
{label: 'Advanced Usage', link: 'advanced'},
78+
{label: 'Bootstrap', link: 'bootstrap'},
79+
{label: 'Reporters', link: 'reports'},
80+
{label: 'Continuous Integration', link: 'continuous-integration'},
81+
{label: 'Parallel Execution', link: 'parallel'},
82+
{label: 'Visual Testing', link: 'visual'},
83+
{label: 'Email Testing', link: 'email'},
84+
{label: 'Secrets', link: 'secrets'},
85+
{label: 'Extending', link: 'hooks'},
86+
{label: 'Concepts', link: 'internal-api'},
87+
{label: 'Testing React Applications', link: 'react'},
88+
{label: 'Testing with AI', link: 'ai'},
89+
{label: 'Self-Healing Tests', link: 'heal'},
90+
{label: 'Testing with Protractor', link: 'angular'},
91+
{label: 'Testing Vue Apps', link: 'vue'},
92+
],
93+
},
94+
],
95+
},
9196

92-
{
93-
label: 'Helpers',
94-
link: '/helpers/playwright/',
95-
items: [
96-
{
97-
label: 'Web Testing',
98-
items: [
99-
{ label: 'WebDriver', link: 'helpers/web-driver' },
100-
{ label: 'Puppeteer', link: 'helpers/puppeteer' },
101-
{ label: 'TestCafe', link: 'helpers/test-cafe' },
102-
],
103-
},
104-
{
105-
label: 'Mobile Testing',
106-
items: [
107-
{ label: 'Appium', link: 'helpers/appium' },
108-
{ label: 'Detox', link: 'helpers/detox' },
109-
],
110-
},
111-
{
112-
label: 'API Helpers',
113-
items: [
114-
{ label: 'REST', link: 'helpers/rest' },
115-
{ label: 'ApiDataFactory', link: 'helpers/api-data-factory' },
116-
{ label: 'GraphQL', link: 'helpers/graph-ql' },
117-
{ label: 'GraphQLDataFactory', link: 'helpers/graph-ql-data-factory' },
118-
{ label: 'JSONResponse', link: 'helpers/json-response' },
119-
{ label: 'MockRequest', link: 'helpers/mock-request' },
120-
],
121-
},
122-
{
123-
label: 'Other Helpers',
124-
items: [
125-
{ label: 'OpenAI', link: 'helpers/open-ai' },
126-
{ label: 'FileSystem', link: 'helpers/file-system' },
127-
{ label: 'Expect', link: 'helpers/expect' },
128-
{ label: 'SoftExpectHelper', link: 'helpers/soft-expect-helper' },
129-
{ label: 'MockServer', link: 'helpers/mock-server' },
130-
{ label: 'Community Helpers', link: 'community-helpers' },
131-
],
132-
},
133-
]
134-
},
135-
{
136-
label: 'Wiki',
137-
link: '/wiki/home/',
138-
items: [
139-
{ label: 'Wiki', autogenerate: { directory: 'wiki/' } },
140-
],
141-
},
142-
]),
143-
],
144-
}),
145-
],
146-
vite: { plugins: [tailwindcss()] },
147-
markdown: {
148-
rehypePlugins: [
149-
[rehypeAstroRelativeMarkdownLinks, options],
150-
],
151-
},
97+
{
98+
label: 'Helpers',
99+
link: '/helpers/playwright/',
100+
items: [
101+
{
102+
label: 'Web Testing',
103+
items: [
104+
{label: 'WebDriver', link: 'helpers/web-driver'},
105+
{label: 'Puppeteer', link: 'helpers/puppeteer'},
106+
{label: 'TestCafe', link: 'helpers/test-cafe'},
107+
],
108+
},
109+
{
110+
label: 'Mobile Testing',
111+
items: [
112+
{label: 'Appium', link: 'helpers/appium'},
113+
{label: 'Detox', link: 'helpers/detox'},
114+
],
115+
},
116+
{
117+
label: 'API Helpers',
118+
items: [
119+
{label: 'REST', link: 'helpers/rest'},
120+
{label: 'ApiDataFactory', link: 'helpers/api-data-factory'},
121+
{label: 'GraphQL', link: 'helpers/graph-ql'},
122+
{label: 'GraphQLDataFactory', link: 'helpers/graph-ql-data-factory'},
123+
{label: 'JSONResponse', link: 'helpers/json-response'},
124+
{label: 'MockRequest', link: 'helpers/mock-request'},
125+
],
126+
},
127+
{
128+
label: 'Other Helpers',
129+
items: [
130+
{label: 'OpenAI', link: 'helpers/open-ai'},
131+
{label: 'FileSystem', link: 'helpers/file-system'},
132+
{label: 'Expect', link: 'helpers/expect'},
133+
{label: 'SoftExpectHelper', link: 'helpers/soft-expect-helper'},
134+
{label: 'MockServer', link: 'helpers/mock-server'},
135+
{label: 'Community Helpers', link: 'community-helpers'},
136+
],
137+
},
138+
]
139+
},
140+
{
141+
label: 'Wiki',
142+
link: '/wiki/home/',
143+
items: [
144+
{label: 'Wiki', autogenerate: {directory: 'wiki/'}},
145+
],
146+
},
147+
]),
148+
starlightScrollToTop({
149+
position: 'right',
150+
tooltipText: 'Back to top',
151+
showTooltip: true,
152+
smoothScroll: true,
153+
threshold: 5,
154+
svgPath: 'M12 5V19M7 10L12 5L17 10',
155+
svgStrokeWidth: 1,
156+
borderRadius: '100',
157+
showProgressRing: true,
158+
progressRingColor: '#ffe680',
159+
}),
160+
],
161+
}),
162+
],
163+
vite: {plugins: [tailwindcss()]},
164+
markdown: {
165+
rehypePlugins: [
166+
[rehypeAstroRelativeMarkdownLinks, options],
167+
],
168+
},
152169
});

docsearch.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"start_urls": [
3+
"https://codecept.io/"
4+
],
5+
"index_uid": "docs",
6+
"selectors": {
7+
"default": {
8+
"lvl0": "main h1",
9+
"lvl1": "main h2",
10+
"lvl2": "main h3",
11+
"lvl3": "main h4",
12+
"lvl4": "main h5",
13+
"text": "main p"
14+
}
15+
}
16+
}

package.json

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,27 @@
1010
"astro": "astro"
1111
},
1212
"dependencies": {
13-
"@astrojs/markdown-remark": "^6.3.2",
14-
"@astrojs/starlight": "^0.34.4",
13+
"@astrojs/markdown-remark": "^6.3.6",
14+
"@astrojs/react": "^4.3.0",
15+
"@astrojs/starlight": "^0.35.2",
1516
"@astrojs/starlight-tailwind": "^4.0.1",
16-
"@tailwindcss/vite": "^4.1.11",
17-
"astro": "^5.10.1",
17+
"@tailwindcss/vite": "^4.1.12",
18+
"@types/react": "^19.1.12",
19+
"@types/react-dom": "^19.1.8",
20+
"astro": "^5.13.4",
1821
"astro-breadcrumbs": "^3.3.1",
19-
"astro-rehype-relative-markdown-links": "0.15.0",
20-
"astro-vtbot": "^2.1.5",
22+
"astro-rehype-relative-markdown-links": "0.18.1",
23+
"astro-vtbot": "^2.1.7",
24+
"meilisearch-docsearch": "^0.8.0",
25+
"react": "^19.1.1",
26+
"react-dom": "^19.1.1",
2127
"schema-dts": "^1.1.5",
22-
"sharp": "^0.34.2",
23-
"starlight-image-zoom": "^0.12.0",
28+
"sharp": "^0.34.3",
29+
"starlight-image-zoom": "^0.13.0",
30+
"starlight-scroll-to-top": "^0.3.1",
2431
"starlight-sidebar-topics": "^0.6.0",
2532
"swiper": "^11.2.10",
26-
"tailwindcss": "^4.1.11"
33+
"tailwind-merge": "^3.3.1",
34+
"tailwindcss": "^4.1.12"
2735
}
2836
}

0 commit comments

Comments
 (0)