feat: add navigation between version 1 and 2
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { versionOne } from '@/docs/version_001/docsStructure';
|
||||
import Main from '../components/Main';
|
||||
import NavBar from '../components/NavBar';
|
||||
import SideBar from '../components/SideBar';
|
||||
import { loadSections } from '../lib/markdoc';
|
||||
|
||||
export default function Page() {
|
||||
const versionOneSections = loadSections(
|
||||
versionOne.version,
|
||||
versionOne.docs
|
||||
);
|
||||
|
||||
return (
|
||||
<>
|
||||
<SideBar version={versionOne} />
|
||||
<div className="container">
|
||||
<NavBar version={versionOne} />
|
||||
<Main versionSections={versionOneSections} />
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user