Skip to content

Commit

Permalink
add breadcrumbs, update structure & update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Arhell committed Jan 20, 2025
1 parent 0adde1c commit 1cfd047
Show file tree
Hide file tree
Showing 69 changed files with 3,144 additions and 3,229 deletions.
105 changes: 42 additions & 63 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ export default defineConfig({
label: 'Tests',
collapsed: false,
items: [
{ label: 'Overview', link: '/project/tests' },
{ label: 'Test Design', link: '/project/tests/test-design' },
{ label: 'Test Design', link: '/project/tests' },
],
},
{
Expand All @@ -108,8 +107,7 @@ export default defineConfig({
label: 'Reporter',
// collapsed: true,
items: [
{ label: 'Overview1111', link: '/project/runs/reporter' },
{ label: 'Overview', link: '/project/runs/reporter/overview'},
{ label: 'Overview', link: '/project/runs/reporter'},
{ label: 'NodeJS Test Frameworks', link: '/project/runs/reporter/frameworks'},
{ label: 'PHP Test Frameworks', link: '/project/runs/reporter/php'},
{ label: 'Python Test Frameworks', link: '/project/runs/reporter/python'},
Expand All @@ -122,8 +120,7 @@ export default defineConfig({
label: 'Pipes',
collapsed: false,
items: [
{ label: 'Overview1111', link: '/project/runs/reporter/pipes' },
{ label: 'Overview', link: '/project/runs/reporter/pipes/overview' },
{ label: 'Overview', link: '/project/runs/reporter/pipes' },
{ label: 'Advanced Options', link: '/project/runs/reporter/pipes/testomatio' },
{ label: 'GitHub', link: '/project/runs/reporter/pipes/github' },
{ label: 'GitLab', link: '/project/runs/reporter/pipes/gitlab' },
Expand All @@ -132,7 +129,6 @@ export default defineConfig({
{ label: 'HTML', link: '/project/runs/reporter/pipes/html' },
],
},
{ label: 'Overview1111', link: '/project/runs/reporter' },
{ label: 'Workflows', link: '/project/runs/reporter/workflows'},
],
},
Expand All @@ -142,15 +138,14 @@ export default defineConfig({
label: 'Plans',
collapsed: false,
items: [
{ label: 'Overview1111', link: '/project/plans' },
{ label: 'Plans', link: '/project/plans/test-plans', },
{ label: 'Plans', link: '/project/plans', },
],
},
{
label: 'Steps',
collapsed: false,
items: [
{ label: 'Overview1111', link: '/project/steps-snippets' },
{ label: 'Overview', link: '/project/steps-snippets' },
{ label: 'Steps', link: '/project/steps-snippets/steps' },
{ label: 'Snippets', link: '/project/steps-snippets/snippets' },
],
Expand All @@ -159,15 +154,14 @@ export default defineConfig({
label: 'Pulse',
collapsed: false,
items: [
{ label: 'Overview1111', link: '/project/pulse' },
{ label: 'Overview', link: '/project/pulse/overview' },
{ label: 'Overview', link: '/project/pulse' },
],
},
{
label: 'Import & Export',
collapsed: false,
items: [
{ label: 'Overview1111', link: '/project/import-export' },
{ label: 'Overview', link: '/project/import-export' },
{ label: 'Import from Source Code', link: '/project/import-export/import-tests-from-source-code' },
{ label: 'Import from Cucumber', link: '/project/import-export/import-tests-from-cucumber' },
{ label: 'Import from CSV/XLS', link: '/project/import-export/import-tests-from-csvxls' },
Expand All @@ -181,8 +175,7 @@ export default defineConfig({
label: 'Analytics',
collapsed: false,
items: [
{ label: 'Overview1111', link: '/project/analytics' },
{ label: 'Overview', link: '/project/analytics/overview' },
{ label: 'Overview', link: '/project/analytics' },
],
},
],
Expand All @@ -195,65 +188,57 @@ export default defineConfig({
label: 'Tags, Labels & Custom fields',
collapsed: false,
items: [
{ label: 'Overview', link: '/advanced/tags-labels' },
{ label: 'Tags, Labels & Custom fields', link: '/advanced/tags-labels/labels-and-custom-fields' }
{ label: 'Tags, Labels & Custom fields', link: '/advanced/tags-labels' }
],
},
{
label: 'Bulk Edit',
collapsed: false,
items: [
{ label: 'Overview', link: '/advanced/bulk-edit-folder' },
{ label: 'Bulk Edit', link: '/advanced/bulk-edit-folder/bulk-edit' }
{ label: 'Bulk Edit', link: '/advanced/bulk-edit-folder' }
],
},
{
label: 'Branches',
collapsed: false,
items: [
{ label: 'Overview', link: '/advanced/branches-folder' },
{ label: 'Branches', link: '/advanced/branches-folder/branches' }
{ label: 'Branches', link: '/advanced/branches-folder' }
],
},
{
label: 'Artifacts',
collapsed: false,
items: [
{ label: 'Overview', link: '/advanced/artifacts' },
{ label: 'Artifacts', link: '/advanced/artifacts/test-artifacts' }
{ label: 'Artifacts', link: '/advanced/artifacts' }
],
},
{
label: 'TQL',
collapsed: false,
items: [
{ label: 'Overview', link: '/advanced/tql' },
{ label: 'TQL', link: '/advanced/tql/query-language' }
{ label: 'TQL', link: '/advanced/tql' }
],
},
{
label: 'Keyboard Shortcuts',
collapsed: false,
items: [
{ label: 'Overview', link: '/advanced/shortcuts' },
{ label: 'Keyboard Shortcuts', link: '/advanced/shortcuts/keyboard-shortcuts' }
{ label: 'Keyboard Shortcuts', link: '/advanced/shortcuts' }
],
},
{
label: 'Living Documentation',
collapsed: false,
items: [
{ label: 'Overview', link: '/advanced/living-doc' },
{ label: 'Living Documentation', link: '/advanced/living-doc/living-documentation' }
{ label: 'Living Documentation', link: '/advanced/living-doc' }
],
},

{
label: 'Jira Plugin',
collapsed: false,
items: [
{ label: 'Overview111', link: '/advanced/jira-plugin' },
{ label: 'Overview', link: '/advanced/jira-plugin/overview' },
{ label: 'Overview', link: '/advanced/jira-plugin' },
{ label: 'Tests in Jira', link: '/advanced/jira-plugin/work-in-jira' },
{ label: 'Branches in Jira', link: '/advanced/jira-plugin/branches' },
{ label: 'Creating Jira Issue', link: '/advanced/jira-plugin/jira-issue' },
Expand All @@ -269,8 +254,7 @@ export default defineConfig({
label: 'Issues Management',
collapsed: false,
items: [
{ label: 'Overview1111', link: '/integrations/issues-management' },
{ label: 'Overview', link: '/integrations/issues-management/overview' },
{ label: 'Overview', link: '/integrations/issues-management' },
{ label: 'Jira', link: '/integrations/issues-management/jira' },
{ label: 'GitHub Issues', link: '/integrations/issues-management/github' },
{ label: 'Azure DevOps', link: '/integrations/issues-management/azure' },
Expand All @@ -285,8 +269,7 @@ export default defineConfig({
label: 'Continuous Integration',
collapsed: false,
items: [
{ label: 'Overview111', link: '/integrations/continuous-integration' },
{ label: 'Overview', link: '/integrations/continuous-integration/overview' },
{ label: 'Overview', link: '/integrations/continuous-integration' },
{ label: 'Jenkins', link: '/integrations/continuous-integration/jenkins' },
{ label: 'Atlassian Bamboo', link: '/integrations/continuous-integration/bamboo' },
{ label: 'GitHub Actions', link: '/integrations/continuous-integration/github' },
Expand All @@ -313,7 +296,7 @@ export default defineConfig({
label: 'Single Sign On',
collapsed: false,
items: [
{ label: 'Overview', link: '/integrations/single-sign-on/overview' },
{ label: 'Overview', link: '/integrations/single-sign-on' },
{ label: 'Okta', link: '/integrations/single-sign-on/okta' },
{ label: 'Google Workspace', link: '/integrations/single-sign-on/google' },
{ label: 'Azure AD', link: '/integrations/single-sign-on/azure' },
Expand All @@ -330,8 +313,7 @@ export default defineConfig({
label: 'Company',
collapsed: false,
items: [
{ label: 'Overview111', link: '/management/company' },
{ label: 'Overview', link: '/management/company/overview' },
{ label: 'Overview', link: '/management/company' },
{ label: 'Administration', link: '/management/company/administration' },
{ label: 'Trials', link: '/management/company/trials' },
{ label: 'Subscriptions', link: '/management/company/subscriptions' },
Expand All @@ -356,8 +338,7 @@ export default defineConfig({
label: 'Compliance',
collapsed: false,
items: [
{ label: 'Overview', link: '/legal/compliance' },
{ label: 'Compliance Overview', link: '/legal/compliance/overview' },
{ label: 'Compliance Overview', link: '/legal/compliance' },
{ label: 'GDPR', link: '/legal/compliance/gdpr' },
{ label: 'Privacy Policy', link: '/legal/compliance/privacy' },
{ label: 'Terms of Service', link: '/legal/compliance/terms' },
Expand All @@ -367,8 +348,7 @@ export default defineConfig({
label: 'Security',
collapsed: false,
items: [
{ label: 'Overview', link: '/legal/security' },
{ label: 'Security Overview', link: '/legal/security/overview' },
{ label: 'Security Overview', link: '/legal/security' },
{ label: 'JIRA Plugin Security', link: '/legal/security/jira' },
{ label: 'Subprocessors', link: '/legal/security/subprocessors' },
]
Expand All @@ -379,8 +359,7 @@ export default defineConfig({
label: 'Support',
collapsed: false,
items: [
{ label: 'Overview', link: '/support'},
{ label: 'Contact Us', link: '/support/contact-us'},
{ label: 'Contact Us', link: '/support'},
],
},
],
Expand All @@ -390,48 +369,48 @@ export default defineConfig({
rehypePlugins: [[rehypeAstroRelativeMarkdownLinks, options]],
},
redirects: {
"/getting-started/test-plans": "/project/plans/test-plans",
"/getting-started/test-plans": "/project/plans",
"/getting-started/import-tests-from-cucumber": "/project/import-export/import-tests-from-cucumber",
"/getting-started/import-tests-from-source-code": "/project/import-export/import-tests-from-source-code",
"/getting-started/import-tests-from-csvxls": "/project/import-export/import-tests-from-csvxls",
"/getting-started/test-design": "/project/tests/test-design",
"/getting-started/test-design": "/project/tests",
"/getting-started/running-tests-manually": "/project/runs/running-tests-manually",
"/getting-started/running-automated-tests": "/project/runs/running-automated-tests",
"/getting-started/managing-runs": "/project/runs/managing-runs",
"/usage/steps-database": "/project/steps-snippets/steps",
"/usage/pulse": "/project/pulse/overview",
"/usage/analytics": "/project/analytics/overview",
"/usage/labels-and-custom-fields": "/advanced/tags-labels/labels-and-custom-fields",
"/usage/bulk-edit": "/advanced/bulk-edit-folder/bulk-edit",
"/usage/branches": "/advanced/branches-folder/branches",
"/usage/pulse": "/project/pulse",
"/usage/analytics": "/project/analytics",
"/usage/labels-and-custom-fields": "/advanced/tags-labels",
"/usage/bulk-edit": "/advanced/bulk-edit-folder",
"/usage/branches": "/advanced/branches-folder",
"/usage/test-artifacts": "/advanced/artifacts/test-artifacts",
"/usage/query-language": "/advanced/tql/query-language",
"/usage/keyboard-shortcuts": "/advanced/shortcuts/keyboard-shortcuts",
"/usage/living-documentation": "/advanced/living-doc/living-documentation",
"/usage/query-language": "/advanced/tql",
"/usage/keyboard-shortcuts": "/advanced/shortcuts",
"/usage/living-documentation": "/advanced/living-doc",
"/contact-us/contact-us": "/support/contact-us",
"/integration/issues-management-systems": "/integrations/issues-management/overview",
"/integration/issues-management-systems": "/integrations/issues-management",
"/integration/jira": "/integrations/issues-management/jira",
"/usage/continuous-integration": "/integrations/continuous-integration/overview",
"/usage/notifications": "/integrations/report-notifications/rules",
"/integration/sso": "/integrations/single-sign-on/overview",
"/integration/sso": "/integrations/single-sign-on",
"/usage/templates": "/management/project/templates",
"/usage/jira-plugin": "/advanced/jira-plugin/overview",
"/subscriptions/companies": "/management/company/overview",
"/usage/jira-plugin": "/advanced/jira-plugin",
"/subscriptions/companies": "/management/company",
"/subscriptions/subscriptions": "/management/company/subscriptions",
"/subscriptions/trials": "/management/company/trials",
"/reference/import/": "/project/import-export/import-tests-from-source-code",
"/reference/reporter/": "/project/runs/reporter/overview/",
"/reference/reporter/": "/project/runs/reporter",
"/reference/reporter/frameworks": "/project/runs/reporter/frameworks",
"/reference/reporter/configuration": "/project/runs/reporter/configuration",
"/reference/reporter/functions": "/project/runs/reporter/functions",
"/reference/reporter/logger": "/project/runs/reporter/logger",
"/reference/reporter/workflows": "/project/runs/reporter/workflows",
"/reference/reporter/pipes": "/project/runs/reporter/pipes/overview",
"/reference/reporter/pipes": "/project/runs/reporter/pipes",
"/reference/reporter/pipes/testomatio": "/project/runs/reporter/pipes/testomatio",
"/compliance/overview/": "/legal/compliance/overview/",
"/security/overview/": "/legal/security/overview/",
"/compliance/overview/": "/legal/compliance",
"/security/overview/": "/legal/security",
"/security/subprocessors": "/legal/security/subprocessors",
"/usage/continious-integration": "/integrations/continuous-integration/overview",
"/usage/continious-integration": "/integrations/continuous-integration",
// "/usage/bdd-syntax": "", bdd-syntax locate in not-in-use folder
"/reference/reporter/pipes/testomatio.html": "/project/runs/reporter/pipes/testomatio",
"/usage/templates.html": "/management/project/templates",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"slugify": "^1.6.6"
},
"dependencies": {
"@astrojs/starlight": "^0.31.0",
"@astrojs/starlight": "^0.31.1",
"@octokit/core": "^5.1.0",
"@pagefind/default-ui": "^1.3.0",
"astro": "^5.1.6",
"astro": "^5.1.8",
"astro-breadcrumbs": "^3.3.1",
"astro-og-canvas": "^0.5.6",
"astro-rehype-relative-markdown-links": "^0.18.1",
Expand Down
13 changes: 8 additions & 5 deletions src/components/PageTitle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import "astro-breadcrumbs/breadcrumbs.css";
const hideTitle = Astro.props.hideTitle;
---

{!hideTitle && <Default {...Astro.props} />}

<Breadcrumbs>
<Breadcrumbs linkTextFormat="capitalized">
<svg
slot="separator"
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -22,11 +20,12 @@ const hideTitle = Astro.props.hideTitle;
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<polyline points="9 18 15 12 9 6" />
><polyline points="9 18 15 12 9 6"></polyline>
</svg>
</Breadcrumbs>

{!hideTitle && <Default {...Astro.props} />}

<style>
h1 {
margin-top: 1rem;
Expand All @@ -35,4 +34,8 @@ const hideTitle = Astro.props.hideTitle;
font-weight: 600;
color: var(--sl-color-white);
}

:root {
--color-link-breadcrumbs: var(--sl-color-text-accent);
}
</style>
Loading

0 comments on commit 1cfd047

Please sign in to comment.