2023-04-09 00:24:42 -05:00
|
|
|
import { versionOne } from '@/docs/version_001/docsStructure';
|
|
|
|
|
import { versionTwo } from '@/docs/version_002/docsStructure';
|
2023-04-07 23:18:45 -05:00
|
|
|
import { ReactNode } from 'react';
|
|
|
|
|
import NavBar from './components/NavBar';
|
|
|
|
|
import SideBar from './components/SideBar';
|
|
|
|
|
import './globals.css';
|
2023-04-07 21:33:32 -05:00
|
|
|
|
|
|
|
|
export const metadata = {
|
2023-04-07 23:18:45 -05:00
|
|
|
title: 'Onspring API Docs',
|
|
|
|
|
description: 'Documentation for the Onspring API',
|
2023-04-09 23:13:02 -05:00
|
|
|
icons: {
|
|
|
|
|
icon: [
|
|
|
|
|
{
|
|
|
|
|
url: 'images/favicon.ico',
|
|
|
|
|
type: 'image/x-icon',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2023-04-07 23:18:45 -05:00
|
|
|
};
|
2023-04-07 21:33:32 -05:00
|
|
|
|
|
|
|
|
export default function RootLayout({
|
|
|
|
|
children,
|
|
|
|
|
}: {
|
2023-04-07 23:18:45 -05:00
|
|
|
children: ReactNode;
|
2023-04-07 21:33:32 -05:00
|
|
|
}) {
|
|
|
|
|
return (
|
|
|
|
|
<html lang="en">
|
2023-04-07 23:18:45 -05:00
|
|
|
<body>
|
2023-04-09 00:24:42 -05:00
|
|
|
<SideBar
|
|
|
|
|
versionOne={versionOne}
|
|
|
|
|
versionTwo={versionTwo}
|
|
|
|
|
/>
|
2023-04-07 23:18:45 -05:00
|
|
|
<div className="container">
|
|
|
|
|
<NavBar />
|
|
|
|
|
{children}
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
2023-04-07 21:33:32 -05:00
|
|
|
</html>
|
2023-04-07 23:18:45 -05:00
|
|
|
);
|
2023-04-07 21:33:32 -05:00
|
|
|
}
|