From e73eb0fd8cbd654d8a64da46d98282d5f0793006 Mon Sep 17 00:00:00 2001 From: nthnn Date: Thu, 21 Sep 2023 17:20:02 +0800 Subject: [PATCH] Initial documentation page and some fixes. --- docs/package.json | 4 ++-- docs/src/documentation.html | 16 ++++++++++++++++ docs/src/index.html | 2 +- docs/src/scripts/components/navigationbar.tsx | 7 +++---- docs/src/scripts/documentation.tsx | 18 ++++++++++++++++++ docs/src/scripts/{main.tsx => homepage.tsx} | 2 +- docs/src/scripts/pages/docs.tsx | 10 ++++++++++ docs/src/scripts/pages/home.tsx | 5 +---- 8 files changed, 52 insertions(+), 12 deletions(-) create mode 100644 docs/src/documentation.html create mode 100644 docs/src/scripts/documentation.tsx rename docs/src/scripts/{main.tsx => homepage.tsx} (87%) create mode 100644 docs/src/scripts/pages/docs.tsx diff --git a/docs/package.json b/docs/package.json index beccda5..85ae50c 100644 --- a/docs/package.json +++ b/docs/package.json @@ -4,8 +4,8 @@ "description": "Brillo-8 Official Documentation", "source": "src/index.html", "scripts": { - "build": "parcel build src/index.html", - "docs": "parcel src/index.html --open", + "build": "parcel build src/*.html", + "docs": "parcel src/index.html src/documentation.html --open", "clean": "rimraf .parcel-cache dist", "deploy": "cd .. && npx vercel deploy --prod && cd docs" }, diff --git a/docs/src/documentation.html b/docs/src/documentation.html new file mode 100644 index 0000000..61ca49a --- /dev/null +++ b/docs/src/documentation.html @@ -0,0 +1,16 @@ + + + + + + + + Brillo-8 Documentation + + + + +
+ + + \ No newline at end of file diff --git a/docs/src/index.html b/docs/src/index.html index f3489e8..56593d0 100644 --- a/docs/src/index.html +++ b/docs/src/index.html @@ -11,6 +11,6 @@
- + \ No newline at end of file diff --git a/docs/src/scripts/components/navigationbar.tsx b/docs/src/scripts/components/navigationbar.tsx index 398e74f..4aebf29 100644 --- a/docs/src/scripts/components/navigationbar.tsx +++ b/docs/src/scripts/components/navigationbar.tsx @@ -7,8 +7,7 @@ import { } from "@heroicons/react/24/outline"; export default class NavigationBar extends React.Component<{ - currentPage: string, - onPageout: ()=> void + currentPage: string }, {}> { render() { return ( @@ -25,13 +24,13 @@ export default class NavigationBar extends React.Component<{