diff --git a/app/[...slug]/page.tsx b/app/[...slug]/page.tsx
deleted file mode 100644
index 18fd56f..0000000
--- a/app/[...slug]/page.tsx
+++ /dev/null
@@ -1,19 +0,0 @@
-import { GetFilesTree } from "../features/functions";
-
-export const generateStaticParams = ()=>{
- const slugs = [];
- for (const filePath of GetFilesTree("./wiki")) {
- const [base, wiki, ...ss] = filePath.split("/");
- if(ss.at(-1)?.endsWith(".md")){
- ss[ss.length - 1] = ss[ss.length - 1].substring(0, ss.length - 3);
- if(ss[ss.length - 1] === "__here__") ss.pop();
- slugs.push({slug: ss});
- }
- }
- return slugs;
-}
-export default function ArticlaPage(){
- return <>
-
- >
-}
\ No newline at end of file
diff --git a/app/components/buttonLink/buttonLink.tsx b/app/components/buttonLink/buttonLink.tsx
deleted file mode 100644
index 5b8aa62..0000000
--- a/app/components/buttonLink/buttonLink.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-import Link from "next/link";
-
-export default function ButtonLink({ name, link }: { name: string, link: string }) {
- return
-
-
-}
\ No newline at end of file
diff --git a/app/components/dropdownMenu/arrow.svg b/app/components/dropdownMenu/arrow.svg
deleted file mode 100644
index 0c8f273..0000000
--- a/app/components/dropdownMenu/arrow.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/app/components/dropdownMenu/dropdownMenu.module.css b/app/components/dropdownMenu/dropdownMenu.module.css
deleted file mode 100644
index 4954547..0000000
--- a/app/components/dropdownMenu/dropdownMenu.module.css
+++ /dev/null
@@ -1,11 +0,0 @@
-.container {
- display: flex;
- align-items: center;
- justify-content: space-around;
-}
-
-.child {
- display: flex;
- flex-direction: column;
- background-color: black;
-}
\ No newline at end of file
diff --git a/app/components/dropdownMenu/dropdownMenu.tsx b/app/components/dropdownMenu/dropdownMenu.tsx
deleted file mode 100644
index 581a59d..0000000
--- a/app/components/dropdownMenu/dropdownMenu.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-"use client"
-import { ReactElement, useState } from "react"
-import { MotionProps, Variants, motion } from "framer-motion"
-import styles from "./dropdownMenu.module.css"
-import arrow from "./arrow.svg"
-import Image from "next/image"
-
-export default function DropdownMenu({ children, name }: { children?: React.ReactNode[], name: string }) {
- const [expanded, setExpanded] = useState(false)
-
- const variants = {
- closed: { y: -16, opacity: 0, display: "none" },
- open: { y: 0, opacity: 1, display: "flex" },
-
- } satisfies Variants;
-
- return
-
-
-
- {children}
-
-
-
-}
\ No newline at end of file
diff --git a/app/components/header/header.module.css b/app/components/header/header.module.css
deleted file mode 100644
index 2a5eb81..0000000
--- a/app/components/header/header.module.css
+++ /dev/null
@@ -1,7 +0,0 @@
-.container {
- width: 100%;
- height: 50px;
- background-color: rgb(35, 35, 35);
- position: sticky;
- top: 0;
-}
\ No newline at end of file
diff --git a/app/components/header/header.tsx b/app/components/header/header.tsx
deleted file mode 100644
index 21d0a14..0000000
--- a/app/components/header/header.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-import style from "./header.module.css"
-
-export default function Header() {
- return
-}
\ No newline at end of file
diff --git a/app/components/sidebar/fileTree.tsx b/app/components/sidebar/fileTree.tsx
deleted file mode 100644
index f5177d7..0000000
--- a/app/components/sidebar/fileTree.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-import { readdirSync } from "fs";
-import DropdownMenu from "../dropdownMenu/dropdownMenu";
-import { join } from "path";
-import ButtonLink from "../buttonLink/buttonLink";
-
-function getFiles(dir: string): { name: string, path: string, isDirectory: boolean, children: any }[] {
- const files = readdirSync(dir, { withFileTypes: true });
-
- return files.map((file) => {
- const filePath = join(dir, file.name);
- return {
- name: file.name,
- path: filePath,
- isDirectory: file.isDirectory(),
- children: file.isDirectory() ? getFiles(filePath) : null,
- };
- });
-};
-
-export function FileTree({ rootPath }: { rootPath: string }) {
- const files = getFiles(rootPath);
-
- const renderFileTree = (files: ReturnType) => {
- return files.map((file, index) => (
-
- {file.isDirectory ? (
- <>
-
- {
- renderFileTree(file.children)
- }
-
- >
- ) : (
-
- )}
-
- ));
- };
-
- return {renderFileTree(files)}
;
-};
diff --git a/app/components/sidebar/sidebar.module.css b/app/components/sidebar/sidebar.module.css
deleted file mode 100644
index db20d22..0000000
--- a/app/components/sidebar/sidebar.module.css
+++ /dev/null
@@ -1,11 +0,0 @@
-.container {
- width: max-content;
- background-color: rgb(69, 69, 69);
- overflow: auto;
- height: calc(100vh - 50px);
- min-width: 250px;
- position: fixed;
-}
-.container * {
- width: 100%;
-}
\ No newline at end of file
diff --git a/app/components/sidebar/sidebar.tsx b/app/components/sidebar/sidebar.tsx
deleted file mode 100644
index bc89e8e..0000000
--- a/app/components/sidebar/sidebar.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import { glob } from "glob"
-import style from "./sidebar.module.css"
-import DropdownMenu from "../dropdownMenu/dropdownMenu"
-import { FileTree } from "./fileTree"
-
-export default async function Sidebar() {
- return
-}
\ No newline at end of file
diff --git a/app/favicon.ico b/app/favicon.ico
deleted file mode 100644
index 718d6fe..0000000
Binary files a/app/favicon.ico and /dev/null differ
diff --git a/app/features/functions.ts b/app/features/functions.ts
deleted file mode 100644
index ab03905..0000000
--- a/app/features/functions.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import * as fs from "node:fs";
-
-export function * GetFilesTree(base: string): Generator {
- for (const info of fs.readdirSync(base, {withFileTypes: true})) {
- if(info.isDirectory()) yield * GetFilesTree(base + "/" + info.name);
- else yield base + "/" + info.name;
- }
-}
\ No newline at end of file
diff --git a/app/features/index.tsx b/app/features/index.tsx
deleted file mode 100644
index e69de29..0000000
diff --git a/app/layout.tsx b/app/layout.tsx
deleted file mode 100644
index f94e662..0000000
--- a/app/layout.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import './styles/global.css'
-
-import type { Metadata } from 'next'
-import { Inter } from 'next/font/google'
-import Sidebar from './components/sidebar/sidebar'
-import styles from "./styles/layout.module.css"
-import Header from './components/header/header'
-
-const inter = Inter({ subsets: ['latin'] })
-
-export const metadata: Metadata = {
- title: 'Bedrock Scripting Wiki',
- description: 'The One And Only',
-}
-
-export default function RootLayout({
- children,
-}: {
- children: React.ReactNode
-}) {
- return (
-
-
-
-
-
-
- {children}
-
-
-
-
- )
-}
\ No newline at end of file
diff --git a/app/page.tsx b/app/page.tsx
deleted file mode 100644
index 4ae2a92..0000000
--- a/app/page.tsx
+++ /dev/null
@@ -1,8 +0,0 @@
-import styles from './styles/page.module.css'
-
-export default function Home() {
- return (
-
-
- )
-}
diff --git a/app/styles/global.css b/app/styles/global.css
deleted file mode 100644
index 7536b04..0000000
--- a/app/styles/global.css
+++ /dev/null
@@ -1,5 +0,0 @@
-body {
- margin: 0;
- padding: 0;
- background-color: #2f2f2f;
-}
\ No newline at end of file
diff --git a/app/styles/layout.module.css b/app/styles/layout.module.css
deleted file mode 100644
index beb72b1..0000000
--- a/app/styles/layout.module.css
+++ /dev/null
@@ -1,3 +0,0 @@
-.mainContent {
- margin-left: 18rem;
-}
\ No newline at end of file
diff --git a/app/styles/page.module.css b/app/styles/page.module.css
deleted file mode 100644
index e69de29..0000000
diff --git a/components/buttonLink/buttonLink.tsx b/components/buttonLink/buttonLink.tsx
deleted file mode 100644
index 5b8aa62..0000000
--- a/components/buttonLink/buttonLink.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-import Link from "next/link";
-
-export default function ButtonLink({ name, link }: { name: string, link: string }) {
- return
-
-
-}
\ No newline at end of file
diff --git a/components/dropdownMenu/arrow.svg b/components/dropdownMenu/arrow.svg
deleted file mode 100644
index 0c8f273..0000000
--- a/components/dropdownMenu/arrow.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/components/dropdownMenu/dropdownMenu.module.css b/components/dropdownMenu/dropdownMenu.module.css
deleted file mode 100644
index 4954547..0000000
--- a/components/dropdownMenu/dropdownMenu.module.css
+++ /dev/null
@@ -1,11 +0,0 @@
-.container {
- display: flex;
- align-items: center;
- justify-content: space-around;
-}
-
-.child {
- display: flex;
- flex-direction: column;
- background-color: black;
-}
\ No newline at end of file
diff --git a/components/dropdownMenu/dropdownMenu.tsx b/components/dropdownMenu/dropdownMenu.tsx
deleted file mode 100644
index b68d44c..0000000
--- a/components/dropdownMenu/dropdownMenu.tsx
+++ /dev/null
@@ -1,36 +0,0 @@
-"use client"
-import { ReactElement, useState } from "react"/*
-import { MotionProps, Variants, motion } from "framer-motion"
-import styles from "./dropdownMenu.module.css"
-import arrow from "./arrow.svg"
-import Image from "next/image"
-
-export default function DropdownMenu({ children, name }: { children?: React.ReactNode[], name: string }) {
- const [expanded, setExpanded] = useState(false)
-
- const variants = {
- closed: { y: -16, opacity: 0, display: "none" },
- open: { y: 0, opacity: 1, display: "flex" },
-
- } satisfies Variants;
-
- return
-
-
-
- {children}
-
-
-
-}*/
-export default ({ children, name }: { children?: React.ReactNode[], name: string })=><>> as any;
\ No newline at end of file
diff --git a/components/header/header.module.css b/components/header/header.module.css
deleted file mode 100644
index 2a5eb81..0000000
--- a/components/header/header.module.css
+++ /dev/null
@@ -1,7 +0,0 @@
-.container {
- width: 100%;
- height: 50px;
- background-color: rgb(35, 35, 35);
- position: sticky;
- top: 0;
-}
\ No newline at end of file
diff --git a/components/header/header.tsx b/components/header/header.tsx
deleted file mode 100644
index 21d0a14..0000000
--- a/components/header/header.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-import style from "./header.module.css"
-
-export default function Header() {
- return
-}
\ No newline at end of file
diff --git a/components/sidebar/fileTree.tsx b/components/sidebar/fileTree.tsx
deleted file mode 100644
index 5149787..0000000
--- a/components/sidebar/fileTree.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-import { readdirSync } from "fs";
-import DropdownMenu from "../dropdownMenu/dropdownMenu";
-import { join } from "path";
-import ButtonLink from "../buttonLink/buttonLink";
-
-function getFiles(dir: string): { name: string, path: string, isDirectory: boolean, children: any }[] {
- const files = readdirSync(dir, { withFileTypes: true });
-
- return files.map((file) => {
- const filePath = join(dir, file.name);
- return {
- name: file.name,
- path: filePath,
- isDirectory: file.isDirectory(),
- children: file.isDirectory() ? getFiles(filePath) : null,
- };
- });
-};
-
-export function FileTree({ rootPath }: { rootPath: string }) {
- const files = getFiles(rootPath);
-
- const renderFileTree = (files: ReturnType) => {
- return files.map((file, index) => (
-
- {file.isDirectory ? (
- <>
-
- {
- renderFileTree(file.children)
- }
-
- >
- ) : (
-
- )}
-
- ));
- };
-
- return {renderFileTree(files)}
;
-};
\ No newline at end of file
diff --git a/components/sidebar/sidebar.module.css b/components/sidebar/sidebar.module.css
deleted file mode 100644
index db20d22..0000000
--- a/components/sidebar/sidebar.module.css
+++ /dev/null
@@ -1,11 +0,0 @@
-.container {
- width: max-content;
- background-color: rgb(69, 69, 69);
- overflow: auto;
- height: calc(100vh - 50px);
- min-width: 250px;
- position: fixed;
-}
-.container * {
- width: 100%;
-}
\ No newline at end of file
diff --git a/components/sidebar/sidebar.tsx b/components/sidebar/sidebar.tsx
deleted file mode 100644
index bc89e8e..0000000
--- a/components/sidebar/sidebar.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import { glob } from "glob"
-import style from "./sidebar.module.css"
-import DropdownMenu from "../dropdownMenu/dropdownMenu"
-import { FileTree } from "./fileTree"
-
-export default async function Sidebar() {
- return
-}
\ No newline at end of file
diff --git a/tsconfig.json b/tsconfig.json
index 3c432fe..bbfce69 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -31,8 +31,8 @@
},
"include": [
"next-env.d.ts",
- "**/*.ts",
- "**/*.tsx",
+ "srs/**/*.ts",
+ "srs/**/*.tsx",
".next/types/**/*.ts",
"./dist/types/**/*.ts"
],