Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3883d71

Browse files
chore: bump the offlinedocs group in /offlinedocs with 6 updates (#11014)
* chore: bump the offlinedocs group in /offlinedocs with 6 updatesBumps 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](jprichardson/node-fs-extra@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](remarkjs/react-markdown@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](rehypejs/rehype-raw@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](eslint/eslint@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](microsoft/TypeScript@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>
1 parent2443a9f commit3883d71

File tree

3 files changed

+746
-585
lines changed

3 files changed

+746
-585
lines changed

‎offlinedocs/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,26 @@
2222
"archiver":"6.0.0",
2323
"framer-motion":"10",
2424
"front-matter":"4.0.2",
25-
"fs-extra":"11.1.1",
25+
"fs-extra":"11.2.0",
2626
"lodash":"4.17.21",
2727
"next":"14.0.1",
2828
"react":"18.2.0",
2929
"react-dom":"18.2.0",
3030
"react-icons":"4.12.0",
31-
"react-markdown":"8.0.3",
32-
"rehype-raw":"6.1.1",
33-
"remark-gfm":"3.0.1"
31+
"react-markdown":"9.0.1",
32+
"rehype-raw":"7.0.0",
33+
"remark-gfm":"4.0.0"
3434
},
3535
"devDependencies": {
3636
"@react-native-community/eslint-config":"3.2.0",
3737
"@react-native-community/eslint-plugin":"1.3.0",
38-
"@types/node":"18.18.1",
38+
"@types/node":"18.19.2",
3939
"@types/react":"18.2.17",
4040
"@types/react-dom":"18.2.7",
41-
"eslint":"8.53.0",
41+
"eslint":"8.55.0",
4242
"eslint-config-next":"14.0.1",
4343
"prettier":"3.1.0",
44-
"typescript":"5.1.6"
44+
"typescript":"5.3.2"
4545
},
4646
"engines": {
4747
"npm":">=9.0.0 <10.0.0",

‎offlinedocs/pages/[[...slug]].tsx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import Head from "next/head";
3333
importNextLinkfrom"next/link";
3434
import{useRouter}from"next/router";
3535
importpathfrom"path";
36+
import{ReactNode}from"react";
3637
import{MdMenu}from"react-icons/md";
3738
importReactMarkdownfrom"react-markdown";
3839
importrehypeRawfrom"rehype-raw";
@@ -256,7 +257,7 @@ const SidebarNavItem: React.FC<{ item: NavItem; nav: Nav }> = ({
256257

257258
return(
258259
<Box>
259-
<NextLinkhref={"/"+item.path}passHref>
260+
<NextLinkhref={"/"+item.path}passHreflegacyBehavior>
260261
<Link
261262
fontWeight={isActive ?600 :400}
262263
color={isActive ?"gray.900" :"gray.700"}
@@ -351,8 +352,12 @@ const MobileNavbar: React.FC<{ nav: Nav; version: string }> = ({
351352
);
352353
};
353354

354-
constslugifyTitle=(title:string)=>{
355-
return_.kebabCase(title.toLowerCase());
355+
constslugifyTitle=(titleSource:ReactNode)=>{
356+
if(Array.isArray(titleSource)&&typeoftitleSource[0]==="string"){
357+
return_.kebabCase(titleSource[0].toLowerCase());
358+
}
359+
360+
returnundefined;
356361
};
357362

358363
constgetImageUrl=(src:string|undefined)=>{
@@ -411,29 +416,31 @@ const DocsPage: NextPage<{
411416
>
412417
{route.title}
413418
</Heading>
419+
414420
<ReactMarkdown
415421
rehypePlugins={[rehypeRaw]}
416422
remarkPlugins={[remarkGfm]}
417-
transformLinkUri={transformLinkUriSource(route.path)}
423+
urlTransform={transformLinkUriSource(route.path)}
418424
components={{
419425
h1:({ children})=>(
420426
<Heading
421427
as="h1"
422428
fontSize="4xl"
423429
pt={10}
424430
pb={2}
425-
id={slugifyTitle(children[0]asstring)}
431+
id={slugifyTitle(children)}
426432
>
427433
{children}
428434
</Heading>
429435
),
436+
430437
h2:({ children})=>(
431438
<Heading
432439
as="h2"
433440
fontSize="3xl"
434441
pt={10}
435442
pb={2}
436-
id={slugifyTitle(children[0]asstring)}
443+
id={slugifyTitle(children)}
437444
>
438445
{children}
439446
</Heading>
@@ -444,7 +451,7 @@ const DocsPage: NextPage<{
444451
fontSize="2xl"
445452
pt={10}
446453
pb={2}
447-
id={slugifyTitle(children[0]asstring)}
454+
id={slugifyTitle(children)}
448455
>
449456
{children}
450457
</Heading>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp