Skip to content

Commit 3a2e45a

Browse files
docs: add overlay testing documentation section (#25)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c59e509 commit 3a2e45a

21 files changed

+4439
-2
lines changed

docs/.vitepress/config.ts

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export default defineConfig({
3131
{ text: "API Reference", link: "/api/" },
3232
{ text: "Tutorials", link: "/tutorials/" },
3333
{ text: "Examples", link: "/examples/" },
34+
{ text: "Overlay Testing", link: "/overlay/" },
3435
{
3536
text: "v1.1.6",
3637
items: [{ text: "Changelog", link: "/changelog" }],
@@ -308,6 +309,91 @@ export default defineConfig({
308309
],
309310
},
310311
],
312+
313+
"/overlay/": [
314+
{
315+
text: "Overlay Testing",
316+
items: [
317+
{ text: "Overview", link: "/overlay/" },
318+
{ text: "Getting Started", link: "/overlay/getting-started" },
319+
{
320+
text: "Repository Structure",
321+
link: "/overlay/repository-structure",
322+
},
323+
],
324+
},
325+
{
326+
text: "Test Structure",
327+
collapsed: false,
328+
items: [
329+
{
330+
text: "Directory Layout",
331+
link: "/overlay/test-structure/directory-layout",
332+
},
333+
{
334+
text: "Configuration Files",
335+
link: "/overlay/test-structure/configuration-files",
336+
},
337+
{ text: "Spec Files", link: "/overlay/test-structure/spec-files" },
338+
],
339+
},
340+
{
341+
text: "Tutorials",
342+
collapsed: false,
343+
items: [
344+
{
345+
text: "Adding Tests to New Workspace",
346+
link: "/overlay/tutorials/new-workspace",
347+
},
348+
{
349+
text: "Plugin Configuration",
350+
link: "/overlay/tutorials/plugin-config",
351+
},
352+
{
353+
text: "Pre-requisite Services",
354+
link: "/overlay/tutorials/custom-deployment",
355+
},
356+
{
357+
text: "Running Tests Locally",
358+
link: "/overlay/tutorials/running-locally",
359+
},
360+
{ text: "CI/CD Pipeline", link: "/overlay/tutorials/ci-pipeline" },
361+
],
362+
},
363+
{
364+
text: "Examples",
365+
collapsed: false,
366+
items: [
367+
{
368+
text: "Tech Radar Plugin",
369+
link: "/overlay/examples/tech-radar",
370+
},
371+
{
372+
text: "Basic Plugin Test",
373+
link: "/overlay/examples/basic-plugin",
374+
},
375+
],
376+
},
377+
{
378+
text: "Reference",
379+
collapsed: true,
380+
items: [
381+
{
382+
text: "Environment Variables",
383+
link: "/overlay/reference/environment-variables",
384+
},
385+
{
386+
text: "Package.json Scripts",
387+
link: "/overlay/reference/scripts",
388+
},
389+
{ text: "Common Patterns", link: "/overlay/reference/patterns" },
390+
{
391+
text: "Troubleshooting",
392+
link: "/overlay/reference/troubleshooting",
393+
},
394+
],
395+
},
396+
],
311397
},
312398

313399
socialLinks: [

docs/guide/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,7 @@ The package simplifies end-to-end testing for RHDH plugins by providing:
7272
2. [Quick Start](/guide/quick-start) - Create your first E2E test
7373
3. [Requirements](/guide/requirements) - System and cluster requirements
7474
4. [Core Concepts](/guide/core-concepts/) - Understand the key concepts
75+
76+
::: tip For Overlay Repository Contributors
77+
If you're writing tests in the **rhdh-plugin-export-overlays** repository, see the [Overlay Testing](/overlay/) documentation for repository-specific guidance including CI/CD integration, Vault secrets, and workspace structure.
78+
:::

docs/guide/utilities/plugin-metadata.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,7 @@ See [Environment Variables](/guide/configuration/environment-variables#plugin-me
178178
## API Reference
179179

180180
For complete API documentation, see [Plugin Metadata API](/api/utils/plugin-metadata).
181+
182+
::: tip For Overlay Repository
183+
If you're writing tests in the **rhdh-plugin-export-overlays** repository, see [Overlay Configuration Files](/overlay/test-structure/configuration-files) for how plugin metadata and OCI URL generation work in that context.
184+
:::

docs/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ hero:
1313
text: API Reference
1414
link: /api/
1515
- theme: alt
16-
text: View on GitHub
17-
link: https://github.com/redhat-developer/rhdh-e2e-test-utils
16+
text: Overlay Testing
17+
link: /overlay/
1818

1919
features:
2020
- icon: 🚀
@@ -35,6 +35,9 @@ features:
3535
- icon: ⚙️
3636
title: Configuration Tools
3737
details: ESLint configuration factory with Playwright best practices and TypeScript base configuration.
38+
- icon: 🔧
39+
title: Overlay Repository Support
40+
details: Dedicated documentation for writing E2E tests in the rhdh-plugin-export-overlays repository.
3841
---
3942

4043
## Quick Example
@@ -82,3 +85,4 @@ test("verify catalog", async ({ uiHelper }) => {
8285
- [Installation](/guide/installation) - Install the package
8386
- [Quick Start](/guide/quick-start) - Create your first test
8487
- [API Reference](/api/) - Explore the full API
88+
- [Overlay Testing](/overlay/) - For tests in rhdh-plugin-export-overlays

0 commit comments

Comments
 (0)