diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 088bc262..05214d74 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,3 +1,7 @@ +/public/ @dan-online @RealShadowNova +/src/ @dan-online @RealShadowNova + + /.github/ @RealShadowNova /.husky/ @RealShadowNova /.vscode/ @RealShadowNova diff --git a/.husky/commit-msg b/.husky/commit-msg old mode 100644 new mode 100755 diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100644 new mode 100755 diff --git a/.prettierignore b/.prettierignore index 7f680533..f640b1fa 100644 --- a/.prettierignore +++ b/.prettierignore @@ -27,3 +27,5 @@ CHANGELOG.md # Ignore toml files *.toml + +*.mdx \ No newline at end of file diff --git a/index.html b/index.html index f419b9b8..e9298d7a 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - + diff --git a/package.json b/package.json index 65f97200..6bbe2fdb 100644 --- a/package.json +++ b/package.json @@ -21,12 +21,14 @@ }, "dependencies": { "@mdx-js/rollup": "^2.3.0", + "@sapphire/fetch": "^2.4.1", "@solidjs/meta": "^0.28.2", "@solidjs/router": "^0.7.0", "@tailwindcss/typography": "^0.5.9", "@types/markdown-it": "^12.2.3", "highlight.js": "^11.7.0", "markdown-it": "^13.0.1", + "query-registry": "^2.6.0", "remark-gfm": "^3.0.1", "solid-icons": "^1.0.4", "solid-js": "^1.6.11", diff --git a/src/App.tsx b/src/App.tsx index b0bde240..a9f2e8a0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,25 +1,19 @@ -import { Route, Routes } from '@solidjs/router'; - +import { useRoutes } from '@solidjs/router'; import { Footer } from './components/layout/footer'; import { Navigation } from './components/layout/navigation'; -import DocsPage from './pages/docs'; -import { LandingPage } from './pages/landing'; -import NotFound from './pages/notfound'; +import { Up } from './components/layout/up'; +import { routes } from './routes'; export function App() { + const Routes = useRoutes(routes); + return (
- - - - - - -
+ + + +
); diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 46d4a12c..0609f86e 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -42,7 +42,7 @@ p, span { font-family: 'Maven Pro', sans-serif; } -h1, +/* h1, h2, h3, p, @@ -51,7 +51,7 @@ span { -webkit-font-smoothing: antialiased !important; -moz-font-smoothing: antialiased !important; text-rendering: optimizelegibility !important; -} +} */ .prose, .prose * { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'; @@ -77,6 +77,10 @@ span { .dark p code { background: rgba(0, 0, 0, 0.3); } +.prose :where(blockquote p:first-of-type):not(:where([class~='not-prose'] *))::before, +.prose :where(blockquote p:last-of-type):not(:where([class~='not-prose'] *))::after { + content: ''; +} .animate-cursor { animation: blink 1s step-end infinite; } diff --git a/src/components/docs/SideBar.tsx b/src/components/docs/Contents.tsx similarity index 62% rename from src/components/docs/SideBar.tsx rename to src/components/docs/Contents.tsx index ff5da4b2..47c420dd 100644 --- a/src/components/docs/SideBar.tsx +++ b/src/components/docs/Contents.tsx @@ -2,35 +2,28 @@ import { Link } from '@solidjs/router'; import { Accessor, Show } from 'solid-js'; import type { DocsPageParams, ExtraClassMethod } from '../types'; -export const DocsSideBar = ({ - scrollValue, +export const DocsContents = ({ params, - allMethods, - onUpdateScroll + allMethods }: { - scrollValue: Accessor; params: Accessor; allMethods: Accessor; - onUpdateScroll: (value: boolean) => void; }) => { return (