generated from timelessco/next-ts-app-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(updates): ✨ update nextra & nextra docs
- Loading branch information
1 parent
7562154
commit c9e6693
Showing
53 changed files
with
2,107 additions
and
1,916 deletions.
There are no files selected for viewing
1,692 changes: 781 additions & 911 deletions
1,692
.yalc/nextra-renderlesskit-theme-docs/dist/index.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import React from "react"; | ||
import { DocsThemeConfig } from "./types"; | ||
export declare const ThemeConfigContext: React.Context<DocsThemeConfig>; | ||
export declare const useConfig: () => DocsThemeConfig; |
12 changes: 12 additions & 0 deletions
12
.yalc/nextra-renderlesskit-theme-docs/dist/types/footer.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from "react"; | ||
import { Item } from "./utils/normalize-pages"; | ||
interface NavLinkProps { | ||
isRTL?: boolean | null; | ||
currentIndex: number; | ||
flatDirectories: Item[]; | ||
} | ||
export declare const NavLinks: ({ flatDirectories, currentIndex, isRTL, }: NavLinkProps) => JSX.Element; | ||
declare const Footer: React.FC<{ | ||
menu?: boolean; | ||
}>; | ||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/// <reference types="react" /> | ||
interface HeadProps { | ||
title: string; | ||
locale?: string; | ||
meta: Record<string, any>; | ||
} | ||
export default function Head({ title, locale, meta }: HeadProps): JSX.Element; | ||
export {}; |
3 changes: 3 additions & 0 deletions
3
.yalc/nextra-renderlesskit-theme-docs/dist/types/icons/arrow-right.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// <reference types="react" /> | ||
declare const ArrowRight: (props: any) => JSX.Element; | ||
export default ArrowRight; |
2 changes: 2 additions & 0 deletions
2
.yalc/nextra-renderlesskit-theme-docs/dist/types/icons/check.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/// <reference types="react" /> | ||
export default function Check(): JSX.Element; |
5 changes: 5 additions & 0 deletions
5
.yalc/nextra-renderlesskit-theme-docs/dist/types/icons/discord.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="react" /> | ||
declare const DiscordIcon: ({ height }: { | ||
height?: number | undefined; | ||
}) => JSX.Element; | ||
export default DiscordIcon; |
5 changes: 5 additions & 0 deletions
5
.yalc/nextra-renderlesskit-theme-docs/dist/types/icons/github.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="react" /> | ||
declare const Github: ({ height }: { | ||
height?: number | undefined; | ||
}) => JSX.Element; | ||
export default Github; |
2 changes: 2 additions & 0 deletions
2
.yalc/nextra-renderlesskit-theme-docs/dist/types/icons/globe.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/// <reference types="react" /> | ||
export default function Globe(): JSX.Element; |
2 changes: 2 additions & 0 deletions
2
.yalc/nextra-renderlesskit-theme-docs/dist/types/icons/moon.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/// <reference types="react" /> | ||
export default function Sun(): JSX.Element; |
2 changes: 2 additions & 0 deletions
2
.yalc/nextra-renderlesskit-theme-docs/dist/types/icons/sun.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/// <reference types="react" /> | ||
export default function Moon(): JSX.Element; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/// <reference types="react" /> | ||
import { PageOpt } from "nextra"; | ||
import { DocsThemeConfig } from "./types"; | ||
import "focus-visible"; | ||
import "./polyfill"; | ||
declare const _default: (opts: PageOpt, config: DocsThemeConfig) => (props: any) => JSX.Element; | ||
export default _default; |
7 changes: 7 additions & 0 deletions
7
.yalc/nextra-renderlesskit-theme-docs/dist/types/locale-switch.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/// <reference types="react" /> | ||
import { DocsThemeConfig } from "./types"; | ||
interface LocaleSwitchProps { | ||
options: NonNullable<DocsThemeConfig["i18n"]>; | ||
} | ||
export default function LocaleSwitch({ options }: LocaleSwitchProps): JSX.Element; | ||
export {}; |
10 changes: 10 additions & 0 deletions
10
.yalc/nextra-renderlesskit-theme-docs/dist/types/misc/active-anchor.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from "react"; | ||
export declare type ActiveAnchor = Record<string, { | ||
isActive?: boolean; | ||
aboveHalfViewport: boolean; | ||
index: number; | ||
insideHalfViewport: boolean; | ||
}>; | ||
export declare const useActiveAnchor: () => ActiveAnchor; | ||
export declare const useActiveAnchorSet: () => (value: ActiveAnchor | ((prevState: ActiveAnchor) => ActiveAnchor)) => void; | ||
export declare const ActiveAnchor: React.FC; |
18 changes: 18 additions & 0 deletions
18
.yalc/nextra-renderlesskit-theme-docs/dist/types/misc/default.config.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/// <reference types="react" /> | ||
declare const defaultTheme: { | ||
projectLink: string; | ||
docsRepositoryBase: string; | ||
titleSuffix: string; | ||
nextLinks: boolean; | ||
prevLinks: boolean; | ||
search: boolean; | ||
darkMode: boolean; | ||
defaultMenuCollapsed: boolean; | ||
font: boolean; | ||
footer: boolean; | ||
footerText: string; | ||
footerEditLink: string; | ||
logo: JSX.Element; | ||
head: JSX.Element; | ||
}; | ||
export default defaultTheme; |
7 changes: 7 additions & 0 deletions
7
.yalc/nextra-renderlesskit-theme-docs/dist/types/misc/theme.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from "react"; | ||
import "intersection-observer"; | ||
export declare const MDXTheme: ({ MDXContent, }: { | ||
MDXContent: React.FC<{ | ||
components?: any; | ||
}>; | ||
}) => JSX.Element; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/// <reference types="react" /> | ||
import { Item, PageItem } from "./utils/normalize-pages"; | ||
interface NavBarProps { | ||
isRTL?: boolean | null; | ||
flatDirectories: Item[]; | ||
flatPageDirectories: PageItem[]; | ||
} | ||
export default function Navbar({ flatDirectories, flatPageDirectories, }: NavBarProps): JSX.Element; | ||
export {}; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/// <reference types="react" /> | ||
import type { Item as NormalItem } from "./utils/normalize-pages"; | ||
interface SearchProps { | ||
directories: NormalItem[]; | ||
} | ||
declare const Search: ({ directories }: SearchProps) => JSX.Element; | ||
export default Search; |
12 changes: 12 additions & 0 deletions
12
.yalc/nextra-renderlesskit-theme-docs/dist/types/select.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from "react"; | ||
interface MenuOption { | ||
key: string; | ||
name: React.ReactElement | string; | ||
} | ||
interface MenuProps { | ||
selected: MenuOption; | ||
onChange: (option: MenuOption) => void; | ||
options: MenuOption[]; | ||
} | ||
export default function Menu({ options, selected, onChange }: MenuProps): JSX.Element; | ||
export {}; |
13 changes: 13 additions & 0 deletions
13
.yalc/nextra-renderlesskit-theme-docs/dist/types/sidebar.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/// <reference types="react" /> | ||
import { Heading } from "nextra"; | ||
import { Item, PageItem } from "./utils/normalize-pages"; | ||
interface SideBarProps { | ||
directories: PageItem[]; | ||
flatDirectories: Item[]; | ||
fullDirectories: Item[]; | ||
asPopover?: boolean; | ||
headings?: Heading[]; | ||
isRTL?: boolean; | ||
} | ||
export default function Sidebar({ directories, flatDirectories, fullDirectories, asPopover, headings, }: SideBarProps): JSX.Element; | ||
export {}; |
4 changes: 4 additions & 0 deletions
4
.yalc/nextra-renderlesskit-theme-docs/dist/types/theme-switch.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/// <reference types="react" /> | ||
export default function ThemeSwitch({ lite }: { | ||
lite?: boolean | undefined; | ||
}): JSX.Element; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/// <reference types="react" /> | ||
import { Heading } from "nextra"; | ||
export default function ToC({ headings, filepathWithName, }: { | ||
headings: Heading[] | null; | ||
filepathWithName: string; | ||
}): JSX.Element; |
47 changes: 47 additions & 0 deletions
47
.yalc/nextra-renderlesskit-theme-docs/dist/types/types.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/// <reference types="react" /> | ||
export interface DocsThemeConfig { | ||
docsRepositoryBase?: string; | ||
titleSuffix?: string | React.FC<{ | ||
locale: string; | ||
config: DocsThemeConfig; | ||
title: string; | ||
meta: Record<string, any>; | ||
}>; | ||
nextLinks?: boolean; | ||
prevLinks?: boolean; | ||
search?: boolean; | ||
darkMode?: boolean; | ||
defaultMenuCollapsed?: boolean; | ||
font?: boolean; | ||
footer?: boolean; | ||
footerText?: string; | ||
footerEditLink?: string; | ||
feedbackLink?: string; | ||
feedbackLabels?: string; | ||
head?: React.ReactNode | React.FC<{ | ||
locale: string; | ||
config: DocsThemeConfig; | ||
title: string; | ||
meta: Record<string, any>; | ||
}>; | ||
logo?: React.ReactNode; | ||
direction?: string; | ||
i18n?: { | ||
locale: string; | ||
text: string; | ||
direction: string; | ||
}[]; | ||
unstable_faviconGlyph?: string; | ||
customSearch?: boolean; | ||
unstable_flexsearch?: boolean; | ||
projectLink?: string; | ||
github?: string; | ||
projectLinkIcon?: React.FC<{ | ||
locale: string; | ||
}>; | ||
projectChatLink?: string; | ||
projectChatLinkIcon?: React.FC<{ | ||
locale: string; | ||
}>; | ||
floatTOC?: boolean; | ||
} |
1 change: 1 addition & 0 deletions
1
.yalc/nextra-renderlesskit-theme-docs/dist/types/utils/flatten.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default function flatten<T extends any[]>(list: T): T; |
1 change: 1 addition & 0 deletions
1
.yalc/nextra-renderlesskit-theme-docs/dist/types/utils/get-fs-route.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare const getFSRoute: (asPath: string, locale?: string | undefined) => string; |
2 changes: 2 additions & 0 deletions
2
.yalc/nextra-renderlesskit-theme-docs/dist/types/utils/get-heading-text.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { Heading } from "nextra"; | ||
export default function getHeadingText(heading: Heading): string; |
9 changes: 9 additions & 0 deletions
9
.yalc/nextra-renderlesskit-theme-docs/dist/types/utils/menu-context.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/// <reference types="react" /> | ||
interface MenuContextValue { | ||
menu: boolean; | ||
setMenu: (data: boolean) => any; | ||
defaultMenuCollapsed: boolean; | ||
} | ||
export declare const MenuContext: import("react").Context<MenuContextValue>; | ||
export default function useMenuContext(): MenuContextValue; | ||
export {}; |
35 changes: 35 additions & 0 deletions
35
.yalc/nextra-renderlesskit-theme-docs/dist/types/utils/normalize-pages.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { PageMapItem } from "nextra"; | ||
export interface Item extends Omit<PageMapItem, "children"> { | ||
title: string; | ||
type: string; | ||
children?: Item[]; | ||
} | ||
export interface PageItem extends Omit<PageMapItem, "children"> { | ||
title: string; | ||
type: string; | ||
children?: PageItem[]; | ||
firstChildRoute?: string; | ||
hidden?: boolean; | ||
} | ||
export interface DocsItem extends Omit<PageMapItem, "children"> { | ||
title: string; | ||
type: string; | ||
children?: DocsItem[]; | ||
firstChildRoute?: string; | ||
} | ||
export default function normalizePages({ list, locale, defaultLocale, route, docsRoot, }: { | ||
list: PageMapItem[]; | ||
locale?: string; | ||
defaultLocale?: string; | ||
route: string; | ||
docsRoot?: string; | ||
}): { | ||
activeType: undefined; | ||
activeIndex: number; | ||
directories: Item[]; | ||
flatDirectories: Item[]; | ||
docsDirectories: DocsItem[]; | ||
flatDocsDirectories: DocsItem[]; | ||
pageDirectories: PageItem[]; | ||
flatPageDirectories: PageItem[]; | ||
}; |
3 changes: 3 additions & 0 deletions
3
.yalc/nextra-renderlesskit-theme-docs/dist/types/utils/render-component.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import React from "react"; | ||
declare const renderComponent: <T>(ComponentOrNode: React.ReactNode | React.FC<T>, props: T) => {} | null; | ||
export default renderComponent; |
2 changes: 2 additions & 0 deletions
2
.yalc/nextra-renderlesskit-theme-docs/dist/types/utils/use-mounted.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
declare const useMounted: () => boolean; | ||
export default useMounted; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c9e6693
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: