Skip to content

Commit

Permalink
chore(deps): bump next.js in the documentation to v15.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
maaaathis committed Nov 4, 2024
1 parent b5b5864 commit dbd7a4a
Show file tree
Hide file tree
Showing 8 changed files with 1,255 additions and 374 deletions.
427 changes: 425 additions & 2 deletions .pnp.cjs

Large diffs are not rendered by default.

725 changes: 367 additions & 358 deletions .yarn/releases/yarn-4.5.0.cjs → .yarn/releases/yarn-4.5.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ packageExtensions:
dependencies:
eslint: "*"

yarnPath: .yarn/releases/yarn-4.5.0.cjs
yarnPath: .yarn/releases/yarn-4.5.1.cjs
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@mittwald/flow-project",
"private": true,
"version": "0.0.0",
"packageManager": "[email protected].0",
"packageManager": "[email protected].1",
"type": "module",
"license": "MIT",
"engines": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
/* auto-generated file */
export { IconApp } from "./IconApp";
export { IconBackLink } from "./IconBackLink";
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"dot-prop": "^9.0.0",
"fs-jetpack": "^5.1.0",
"humanize-string": "^3.0.0",
"next": "~14.2.15",
"next": "~15.0.2",
"next-mdx-remote": "^5.0.0",
"parse-es-import": "^0.6.0",
"prism-react-renderer": "^2.4.0",
Expand Down
15 changes: 9 additions & 6 deletions packages/docs/src/app/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,39 +11,42 @@ import { IconExternalLink } from "@mittwald/flow-react-components/Icons";
const contentFolder = "src/content";

interface Props {
params: StaticParams;
params: Promise<StaticParams>;
}

export const generateStaticParams = async (): Promise<StaticParams[]> => {
return await MdxFileFactory.generateStaticParams(contentFolder);
};

export const generateMetadata = async (props: Props) => {
return await MdxFileFactory.generateMetadata(contentFolder, props.params);
const params = await props.params;
return await MdxFileFactory.generateMetadata(contentFolder, params);
};

export default async function Page(props: Props) {
const params = await props.params;

const indexMdxFile = await MdxFileFactory.fromParams(
contentFolder,
props.params,
params,
"index",
);

const overviewMdxFile = await MdxFileFactory.fromParams(
contentFolder,
props.params,
params,
"overview",
);

const developMdxFile = await MdxFileFactory.fromParams(
contentFolder,
props.params,
params,
"develop",
);

const guidelinesMdxFile = await MdxFileFactory.fromParams(
contentFolder,
props.params,
params,
"guidelines",
);

Expand Down
Loading

0 comments on commit dbd7a4a

Please sign in to comment.