Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Added 'Specification Explorer' to mobile view & fixed spelling inconsistency #3732

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/layout/DocsLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ export default function DocsLayout({ post, navItems = {}, children }: IDocsLayou
className='flex px-4 text-gray-500 hover:text-gray-900 focus:outline-none sm:px-6 md:px-8'
aria-label='Open sidebar'
>
<span>{post.sectionTitle}</span>
<span>{post.title}</span>
<ArrowRight className='size-5 rotate-90 pl-1' />
</button>
</div>
)}

{/* @TODO Will uncomment the component once it is in use */}
{/* @TODO Will uncomment the component once it is in use */}
{/* <AnnouncementHero className='ml-6' hideVideo={true} /> */}

<div className={`xl:flex ${post.toc && post.toc.length ? 'xl:flex-row-reverse' : ''}`}>
Expand Down
10 changes: 9 additions & 1 deletion components/navigation/learningItems.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type React from 'react';

import IconExplorer from '../icons/Explorer';
import IconGradCap from '../icons/GradCap';
import IconGuide from '../icons/Guide';
import IconMigration from '../icons/Migration';
Expand Down Expand Up @@ -56,7 +57,7 @@ const learningItems: LearningItem[] = [
href: '/docs/migration',
icon: IconMigration,
className: 'bg-blue-400',
title: 'Migrations',
title: 'Migration',
description: 'Our migration guides on how to upgrade to newer AsyncAPI versions.'
},
{
Expand All @@ -65,6 +66,13 @@ const learningItems: LearningItem[] = [
className: 'bg-red-200',
title: 'Community',
description: 'Our Community section documents the community guidelines and resources.'
},
{
href: '/docs/reference/specification/v3.0.0-explorer',
icon: IconExplorer,
className: 'bg-teal-200',
title: 'Specification Explorer',
description: 'Simplifying our Specification JSON Schema like a pro.'
}
];

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,6 @@
"remark-lint": "^10.0.0",
"remark-mdx": "^3.0.1",
"storybook": "^8.2.4"
}
},
"packageManager": "[email protected]+sha512.5383cc12567a95f1d668fbe762dfe0075c595b4bfff433be478dbbe24e05251a8e8c3eb992a986667c1d53b6c3a9c85b8398c35a960587fbd9fa3a0915406728"
}
Loading