feat: add official docs link

This commit is contained in:
Stevan Freeborn
2023-04-25 16:56:06 -05:00
parent 82301a8aa0
commit 10ab2d3d17
6 changed files with 18 additions and 56 deletions
+4
View File
@@ -111,6 +111,10 @@
border-radius: 0.25rem;
}
.docsNote {
padding-left: 1rem;
}
@media screen and (max-width: 1000px) {
.nav {
align-items: flex-start;
+9
View File
@@ -190,6 +190,15 @@ export default function NavBar({
<li className={styles.navItem}>
<VersionsDropdown version={version.version} />
</li>
<li className={styles.navItem}>
<Link
href={version.officialDocs}
className={styles.navLink}
target="_blank"
>
Official Docs
</Link>
</li>
<li className={styles.navItem}>
{version.hasSwagger ? (
<Link
+1
View File
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
export type DocsStructure = {
version: string;
officialDocs: string;
hasSwagger: boolean;
docs: Doc[];
};
+2
View File
@@ -2,6 +2,8 @@ import { DocsStructure } from '@/app/types/types';
export const versionOne: DocsStructure = {
version: 'version_001',
officialDocs:
'https://software.onspring.com/hubfs/Training/Admin%20Guide%20-%20v1%20API.pdf',
hasSwagger: false,
docs: [
{
+2
View File
@@ -2,6 +2,8 @@ import { DocsStructure } from '@/app/types/types';
export const versionTwo: DocsStructure = {
version: 'version_002',
officialDocs:
'https://software.onspring.com/hubfs/Training/Admin%20Guide%20-%20v2%20API.pdf',
hasSwagger: true,
docs: [
{