mirror of https://github.com/coder/coder.git
chore: bump the offlinedocs group in /offlinedocs with 6 updates (#11014)
* chore: bump the offlinedocs group in /offlinedocs with 6 updates Bumps the offlinedocs group in /offlinedocs with 6 updates: | Package | From | To | | --- | --- | --- | | [fs-extra](https://github.com/jprichardson/node-fs-extra) | `11.1.1` | `11.2.0` | | [react-markdown](https://github.com/remarkjs/react-markdown) | `8.0.3` | `9.0.1` | | [rehype-raw](https://github.com/rehypejs/rehype-raw) | `6.1.1` | `7.0.0` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `18.18.1` | `18.19.2` | | [eslint](https://github.com/eslint/eslint) | `8.53.0` | `8.55.0` | | [typescript](https://github.com/Microsoft/TypeScript) | `5.1.6` | `5.3.2` | Updates `fs-extra` from 11.1.1 to 11.2.0 - [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md) - [Commits](https://github.com/jprichardson/node-fs-extra/compare/11.1.1...11.2.0) Updates `react-markdown` from 8.0.3 to 9.0.1 - [Release notes](https://github.com/remarkjs/react-markdown/releases) - [Changelog](https://github.com/remarkjs/react-markdown/blob/main/changelog.md) - [Commits](https://github.com/remarkjs/react-markdown/compare/8.0.3...9.0.1) Updates `rehype-raw` from 6.1.1 to 7.0.0 - [Release notes](https://github.com/rehypejs/rehype-raw/releases) - [Commits](https://github.com/rehypejs/rehype-raw/compare/6.1.1...7.0.0) Updates `@types/node` from 18.18.1 to 18.19.2 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Updates `eslint` from 8.53.0 to 8.55.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.53.0...v8.55.0) Updates `typescript` from 5.1.6 to 5.3.2 - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v5.1.6...v5.3.2) --- updated-dependencies: - dependency-name: fs-extra dependency-type: direct:production update-type: version-update:semver-minor dependency-group: offlinedocs - dependency-name: react-markdown dependency-type: direct:production update-type: version-update:semver-major dependency-group: offlinedocs - dependency-name: rehype-raw dependency-type: direct:production update-type: version-update:semver-major dependency-group: offlinedocs - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: offlinedocs - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor dependency-group: offlinedocs - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor dependency-group: offlinedocs ... Signed-off-by: dependabot[bot] <support@github.com> * fix: install react-gfm v4 and update type signatures * fix: update link-nesting for a11y/hydration issue --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Parkreiner <michaelsmith@coder.com>
This commit is contained in:
parent
2443a9f861
commit
3883d7181d
|
@ -22,26 +22,26 @@
|
|||
"archiver": "6.0.0",
|
||||
"framer-motion": "10",
|
||||
"front-matter": "4.0.2",
|
||||
"fs-extra": "11.1.1",
|
||||
"fs-extra": "11.2.0",
|
||||
"lodash": "4.17.21",
|
||||
"next": "14.0.1",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react-icons": "4.12.0",
|
||||
"react-markdown": "8.0.3",
|
||||
"rehype-raw": "6.1.1",
|
||||
"remark-gfm": "3.0.1"
|
||||
"react-markdown": "9.0.1",
|
||||
"rehype-raw": "7.0.0",
|
||||
"remark-gfm": "4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@react-native-community/eslint-config": "3.2.0",
|
||||
"@react-native-community/eslint-plugin": "1.3.0",
|
||||
"@types/node": "18.18.1",
|
||||
"@types/node": "18.19.2",
|
||||
"@types/react": "18.2.17",
|
||||
"@types/react-dom": "18.2.7",
|
||||
"eslint": "8.53.0",
|
||||
"eslint": "8.55.0",
|
||||
"eslint-config-next": "14.0.1",
|
||||
"prettier": "3.1.0",
|
||||
"typescript": "5.1.6"
|
||||
"typescript": "5.3.2"
|
||||
},
|
||||
"engines": {
|
||||
"npm": ">=9.0.0 <10.0.0",
|
||||
|
|
|
@ -33,6 +33,7 @@ import Head from "next/head";
|
|||
import NextLink from "next/link";
|
||||
import { useRouter } from "next/router";
|
||||
import path from "path";
|
||||
import { ReactNode } from "react";
|
||||
import { MdMenu } from "react-icons/md";
|
||||
import ReactMarkdown from "react-markdown";
|
||||
import rehypeRaw from "rehype-raw";
|
||||
|
@ -256,7 +257,7 @@ const SidebarNavItem: React.FC<{ item: NavItem; nav: Nav }> = ({
|
|||
|
||||
return (
|
||||
<Box>
|
||||
<NextLink href={"/" + item.path} passHref>
|
||||
<NextLink href={"/" + item.path} passHref legacyBehavior>
|
||||
<Link
|
||||
fontWeight={isActive ? 600 : 400}
|
||||
color={isActive ? "gray.900" : "gray.700"}
|
||||
|
@ -351,8 +352,12 @@ const MobileNavbar: React.FC<{ nav: Nav; version: string }> = ({
|
|||
);
|
||||
};
|
||||
|
||||
const slugifyTitle = (title: string) => {
|
||||
return _.kebabCase(title.toLowerCase());
|
||||
const slugifyTitle = (titleSource: ReactNode) => {
|
||||
if (Array.isArray(titleSource) && typeof titleSource[0] === "string") {
|
||||
return _.kebabCase(titleSource[0].toLowerCase());
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
const getImageUrl = (src: string | undefined) => {
|
||||
|
@ -411,10 +416,11 @@ const DocsPage: NextPage<{
|
|||
>
|
||||
{route.title}
|
||||
</Heading>
|
||||
|
||||
<ReactMarkdown
|
||||
rehypePlugins={[rehypeRaw]}
|
||||
remarkPlugins={[remarkGfm]}
|
||||
transformLinkUri={transformLinkUriSource(route.path)}
|
||||
urlTransform={transformLinkUriSource(route.path)}
|
||||
components={{
|
||||
h1: ({ children }) => (
|
||||
<Heading
|
||||
|
@ -422,18 +428,19 @@ const DocsPage: NextPage<{
|
|||
fontSize="4xl"
|
||||
pt={10}
|
||||
pb={2}
|
||||
id={slugifyTitle(children[0] as string)}
|
||||
id={slugifyTitle(children)}
|
||||
>
|
||||
{children}
|
||||
</Heading>
|
||||
),
|
||||
|
||||
h2: ({ children }) => (
|
||||
<Heading
|
||||
as="h2"
|
||||
fontSize="3xl"
|
||||
pt={10}
|
||||
pb={2}
|
||||
id={slugifyTitle(children[0] as string)}
|
||||
id={slugifyTitle(children)}
|
||||
>
|
||||
{children}
|
||||
</Heading>
|
||||
|
@ -444,7 +451,7 @@ const DocsPage: NextPage<{
|
|||
fontSize="2xl"
|
||||
pt={10}
|
||||
pb={2}
|
||||
id={slugifyTitle(children[0] as string)}
|
||||
id={slugifyTitle(children)}
|
||||
>
|
||||
{children}
|
||||
</Heading>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue