Skip to content

Commit

Permalink
docs(docs): 📝 add showmore & spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-moorthy committed Feb 1, 2022
1 parent 0de1528 commit 09a7130
Show file tree
Hide file tree
Showing 36 changed files with 982 additions and 3,325 deletions.
198 changes: 125 additions & 73 deletions .yalc/nextra-renderlesskit-theme-docs/dist/index.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@ declare const defaultTheme: {
footerEditLink: string;
logo: JSX.Element;
head: JSX.Element;
searchPlaceholder: ({ locale }: {
locale?: string | undefined;
}) => "搜索文档..." | "Search documentation...";
unstable_searchResultEmpty: () => JSX.Element;
};
export default defaultTheme;
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import React from "react";
import { ButtonProps } from "@renderlesskit/react-tailwind";
import "intersection-observer";
export declare const MDXTheme: ({ MDXContent, }: {
MDXContent: React.FC<{
components?: any;
}>;
}) => JSX.Element;
export declare const MDXTheme: React.FC<{}>;
export default MDXTheme;
export declare type CopyButtonProps = ButtonProps & {
code?: string;
};
Expand Down
13 changes: 11 additions & 2 deletions .yalc/nextra-renderlesskit-theme-docs/dist/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ export interface DocsThemeConfig {
text: string;
direction: string;
}[];
unstable_faviconGlyph?: string;
customSearch?: boolean;
unstable_flexsearch?: boolean;
searchPlaceholder?: string | ((props: {
locale?: string;
}) => string);
projectLink?: string;
github?: string;
projectLinkIcon?: React.FC<{
Expand All @@ -44,4 +45,12 @@ export interface DocsThemeConfig {
locale: string;
}>;
floatTOC?: boolean;
unstable_faviconGlyph?: string;
unstable_flexsearch?: boolean;
unstable_searchResultEmpty?: React.ReactNode | React.FC<{
locale: string;
config: DocsThemeConfig;
title: string;
meta: Record<string, any>;
}>;
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import React from "react";
declare const renderComponent: <T>(ComponentOrNode: React.ReactNode | React.FC<T>, props: T) => {} | null;
declare const renderComponent: <T>(ComponentOrNode: React.ReactNode | React.FC<T>, props: T, functionOnly?: boolean | undefined) => any;
export default renderComponent;
12 changes: 6 additions & 6 deletions .yalc/nextra-renderlesskit-theme-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,20 @@
]
},
"dependencies": {
"@chakra-ui/hooks": "^1.7.2",
"@headlessui/react": "^1.4.3",
"@chakra-ui/hooks": "1.7.2",
"@headlessui/react": "1.4.3",
"@mdx-js/react": "2.0.0-rc.2",
"@reach/skip-nav": "0.16.0",
"@renderlesskit/react-tailwind": "^0.0.1-alpha.37",
"@renderlesskit/react-tailwind": "0.0.1-alpha.37",
"classnames": "2.3.1",
"flexsearch": "^0.7.21",
"flexsearch": "0.7.21",
"focus-visible": "5.2.0",
"github-slugger": "1.4.0",
"intersection-observer": "0.12.0",
"match-sorter": "6.3.1",
"next-themes": "0.0.15",
"parse-git-url": "1.0.1",
"react-innertext": "^1.1.5",
"react-innertext": "1.1.5",
"title": "3.4.3"
},
"peerDependencies": {
Expand All @@ -92,5 +92,5 @@
"emoji": "emoji",
"editor": false
},
"yalcSig": "5d1141f386524da53ce06dc905b60ff0"
"yalcSig": "58d9a2d568bf33edb5057305bc8dcaf3"
}
7 changes: 4 additions & 3 deletions .yalc/nextra-renderlesskit-theme-docs/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ article {
a code {
@apply text-current no-underline;
}
span[data-nextra-code][data-filename] {
[data-nextra-code][data-filename] {
@apply block relative;

&::before {
Expand Down Expand Up @@ -209,15 +209,16 @@ article {
}
&.nextra-flexsearch ul {
@apply overflow-auto left-0 md:-left-80 md:right-0;
min-height: 100px;
max-height: min(calc(var(--vh) - 12.5rem), 600px);
max-width: min(calc(100vw - 2rem), calc(100% + 20rem));
transition: max-height 0.2s ease;
width: 100vw;
}
ul {
@apply rounded-xl backdrop-blur-lg bg-white bg-opacity-[.7] text-gray-100 ring-1 ring-black ring-opacity-5 py-2.5 overflow-hidden overscroll-contain shadow-xl list-none;
@apply rounded-xl backdrop-blur-lg bg-white bg-opacity-[.7] text-gray-100 ring-1 ring-black ring-opacity-5 overflow-hidden overscroll-contain shadow-xl list-none;
li {
@apply text-gray-800 break-words mx-2.5 p-2.5 rounded-md;
@apply text-gray-800 break-words mx-2.5 px-2.5 py-2 rounded-md;
.highlight {
@apply underline decoration-prime-400 text-prime-500;
}
Expand Down
2 changes: 1 addition & 1 deletion .yalc/nextra-renderlesskit-theme-docs/yalc.sig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5d1141f386524da53ce06dc905b60ff0
58d9a2d568bf33edb5057305bc8dcaf3
2 changes: 0 additions & 2 deletions .yalc/nextra/dist/filter-route-locale.d.ts

This file was deleted.

234 changes: 0 additions & 234 deletions .yalc/nextra/dist/index.js

This file was deleted.

Loading

1 comment on commit 09a7130

@vercel
Copy link

@vercel vercel bot commented on 09a7130 Feb 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

The most recent charge for your active payment method has failed. Please update it here: https://vercel.com/teams/timelessco/settings/billing.

Please sign in to comment.