{children}
diff --git a/src/app/page.module.css b/src/app/page.module.css
index e69de29..92916cc 100644
--- a/src/app/page.module.css
+++ b/src/app/page.module.css
@@ -0,0 +1,10 @@
+.container {
+ margin: 0 auto;
+ max-width: 1450px;
+ padding: 5rem;
+ display: flex;
+ width: 100%;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+}
\ No newline at end of file
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 638b437..d80e71f 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -1,9 +1,10 @@
+import Article from './components/Article';
import styles from './page.module.css';
export default function Home() {
return (
-
-
Onspring API Docs
-
+
+
+
);
}
diff --git a/src/app/types/types.ts b/src/app/types/types.ts
new file mode 100644
index 0000000..8741262
--- /dev/null
+++ b/src/app/types/types.ts
@@ -0,0 +1,7 @@
+export type DocsStructure = {
+ title: string;
+ folder: string;
+ copy?: string;
+ example?: string;
+ children?: DocsStructure[];
+};
diff --git a/src/docs/version_001/docsStructure.ts b/src/docs/version_001/docsStructure.ts
new file mode 100644
index 0000000..278c3b6
--- /dev/null
+++ b/src/docs/version_001/docsStructure.ts
@@ -0,0 +1,11 @@
+import { DocsStructure } from '@/app/types/types';
+
+export const versionOne: DocsStructure[] = [
+ {
+ title: 'Introduction',
+ folder: 'introduction',
+ copy: 'copy.md',
+ example: 'example.md',
+ children: [],
+ },
+];
diff --git a/src/docs/version_002/docsStructure.ts b/src/docs/version_002/docsStructure.ts
new file mode 100644
index 0000000..bddbd26
--- /dev/null
+++ b/src/docs/version_002/docsStructure.ts
@@ -0,0 +1,34 @@
+import { DocsStructure } from '@/app/types/types';
+
+export const versionTwo: DocsStructure[] = [
+ {
+ title: 'Introduction',
+ folder: 'introduction',
+ copy: 'copy.md',
+ example: 'example.md',
+ children: [
+ {
+ title: 'What is this?',
+ folder: 'what-is-this',
+ copy: 'copy.md',
+ example: 'example.md',
+ children: [],
+ },
+ ],
+ },
+ {
+ title: 'Authentication',
+ folder: 'authentication',
+ copy: 'copy.md',
+ example: 'example.md',
+ children: [
+ {
+ title: 'Login',
+ folder: 'login',
+ copy: 'copy.md',
+ example: 'example.md',
+ children: [],
+ },
+ ],
+ },
+];
diff --git a/src/docs/version_002/introduction/copy.md b/src/docs/version_002/introduction/copy.md
new file mode 100644
index 0000000..e69de29
diff --git a/src/docs/version_002/introduction/example.md b/src/docs/version_002/introduction/example.md
new file mode 100644
index 0000000..e69de29