Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
2 changes: 2 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

_pagefind
2 changes: 1 addition & 1 deletion docs/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const eslintConfig = [
extends: ['next/core-web-vitals', 'next/typescript', 'prettier'],
}),
{
ignores: ['node_modules/', '.next/', 'next-env.d.ts'],
ignores: ['node_modules/', '.next/', 'next-env.d.ts', 'out/'],
},
];

Expand Down
11 changes: 5 additions & 6 deletions docs/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ import type { NextConfig } from 'next';
import nextra from 'nextra';

const nextConfig: NextConfig = {
/* config options here */
reactStrictMode: true,
output: 'export',
images: {
unoptimized: true,
},
};

const withNextra = nextra({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.tsx',
});
const withNextra = nextra({});

export default withNextra(nextConfig);
24 changes: 13 additions & 11 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,32 @@
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"dev": "next dev --turbopack",
"build": "next build",
"postbuild": "pagefind --site .next/server/app --output-path out/_pagefind",
"start": "next start",
"format": "prettier --write .",
"lint": "prettier --check . && eslint .",
"lint:fix": "prettier --write . && eslint --fix .",
"check-updates": "npx npm-check-updates"
},
"dependencies": {
"next": "15.1.3",
"nextra": "3.3.1",
"nextra-theme-docs": "3.3.1",
"next": "15.1.5",
"nextra": "4.0.4",
"nextra-theme-docs": "4.0.4",
"react": "19.0.0",
"react-dom": "19.0.0"
},
"devDependencies": {
"@eslint/eslintrc": "3.2.0",
"@types/node": "22.10.5",
"@types/react": "19.0.2",
"@types/react-dom": "19.0.2",
"eslint": "9.17.0",
"eslint-config-next": "15.1.3",
"eslint-config-prettier": "9.1.0",
"@types/node": "22.10.7",
"@types/react": "19.0.7",
"@types/react-dom": "19.0.3",
"eslint": "9.18.0",
"eslint-config-next": "15.1.5",
"eslint-config-prettier": "10.0.1",
"pagefind": "1.3.0",
"prettier": "3.4.2",
"typescript": "5.7.2"
"typescript": "5.7.3"
}
}
981 changes: 486 additions & 495 deletions docs/pnpm-lock.yaml

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions docs/src/app/[[...mdxPath]]/page.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { generateStaticParamsFor, importPage } from 'nextra/pages';
import { useMDXComponents } from '../../mdx-components';

export const generateStaticParams = generateStaticParamsFor('mdxPath');

export async function generateMetadata(props) {
const params = await props.params;
const { metadata } = await importPage(params.mdxPath);
return metadata;
}

const Wrapper = useMDXComponents().wrapper;

export default async function Page(props) {
const params = await props.params;
const result = await importPage(params.mdxPath);
const { default: MDXContent, toc, metadata } = result;
return (
<Wrapper toc={toc} metadata={metadata}>
<MDXContent {...props} params={params} />
</Wrapper>
);
}
Binary file added docs/src/app/favicon.ico
Binary file not shown.
34 changes: 34 additions & 0 deletions docs/src/app/layout.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { Footer, Layout, Navbar } from 'nextra-theme-docs';
import 'nextra-theme-docs/style.css';
import { Head } from 'nextra/components';
import { getPageMap } from 'nextra/page-map';

// https://nextjs.org/docs/app/building-your-application/optimizing/metadata
export const metadata = {
title: {
default: 'Docs | bugzkit',
template: '%s | bugzkit',
},
};

const navbar = <Navbar logo={<b>bugzkit</b>} projectLink="https://github.com/while1618/bugzkit" />;
const footer = <Footer>{new Date().getFullYear()} © bugzkit.</Footer>;

export default async function RootLayout({ children }) {
return (
<html lang="en" dir="ltr" suppressHydrationWarning>
<Head></Head>
{/* https://github.com/vercel/next.js/discussions/72035 */}
<body suppressHydrationWarning>
<Layout
navbar={navbar}
pageMap={await getPageMap()}
docsRepositoryBase="https://github.com/while1618/bugzkit/tree/master/docs"
footer={footer}
>
{children}
</Layout>
</body>
</html>
);
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions docs/src/mdx-components.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { useMDXComponents as getThemeComponents } from 'nextra-theme-docs';

const themeComponents = getThemeComponents();

export function useMDXComponents(components) {
return {
...themeComponents,
...components,
};
}
5 changes: 0 additions & 5 deletions docs/src/pages/_app.tsx

This file was deleted.

33 changes: 0 additions & 33 deletions docs/theme.config.tsx

This file was deleted.

7 changes: 6 additions & 1 deletion docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
2 changes: 1 addition & 1 deletion frontend/svelte-kit/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="%paraglide.lang%" dir="%paraglide.textDirection%">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<link rel="icon" href="%sveltekit.assets%/favicon.ico" />
<meta name="viewport" content="width=device-width" />
%sveltekit.head%
</head>
Expand Down
Binary file added frontend/svelte-kit/static/favicon.ico
Binary file not shown.
Binary file removed frontend/svelte-kit/static/favicon.png
Binary file not shown.
Loading