feat: add navigation between version 1 and 2
This commit is contained in:
1 parent
39449a5e0f
commit
7d7bffc20a
10 files changed
+106
-59
No files matched your search
@@ -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