Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
qgq99 committed Jul 9, 2024
1 parent 34faf20 commit 16d3268
Show file tree
Hide file tree
Showing 50 changed files with 2,205 additions and 10 deletions.
11 changes: 1 addition & 10 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,6 @@ const config: StorybookConfig = {
framework: {
name: "@storybook/react-vite",
options: {},
},
viteFinal: async (config, { configType }) => {
// return the customized config
return mergeConfig(config, {
// customize the Vite config here
build: {
outDir: "docs" // 使得文档打包结果输出到docs目录以激活github pages
}
});
},
}
};
export default config;
7 changes: 7 additions & 0 deletions docs/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
167 changes: 167 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />

<title>@storybook/cli - Storybook</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />


<link rel="icon" type="image/svg+xml" href="./favicon.svg" />

<link
rel="prefetch"
href="./sb-common-assets/nunito-sans-regular.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<link
rel="prefetch"
href="./sb-common-assets/nunito-sans-bold.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<link rel="stylesheet" href="./sb-common-assets/fonts.css" />

<link href="./sb-manager/runtime.js" rel="modulepreload" />


<link href="./sb-addons/storybook-core-server-presets-0/common-manager-bundle.js" rel="modulepreload" />

<link href="./sb-addons/onboarding-1/manager-bundle.js" rel="modulepreload" />

<link href="./sb-addons/links-2/manager-bundle.js" rel="modulepreload" />

<link href="./sb-addons/essentials-controls-3/manager-bundle.js" rel="modulepreload" />

<link href="./sb-addons/essentials-actions-4/manager-bundle.js" rel="modulepreload" />

<link href="./sb-addons/essentials-backgrounds-5/manager-bundle.js" rel="modulepreload" />

<link href="./sb-addons/essentials-viewport-6/manager-bundle.js" rel="modulepreload" />

<link href="./sb-addons/essentials-toolbars-7/manager-bundle.js" rel="modulepreload" />

<link href="./sb-addons/essentials-measure-8/manager-bundle.js" rel="modulepreload" />

<link href="./sb-addons/essentials-outline-9/manager-bundle.js" rel="modulepreload" />

<link href="./sb-addons/chromatic-com-storybook-10/manager-bundle.js" rel="modulepreload" />

<link href="./sb-addons/interactions-11/manager-bundle.js" rel="modulepreload" />


<style>
#storybook-root[hidden] {
display: none !important;
}
</style>


</head>
<body>
<div id="root"></div>


<script>


window['FEATURES'] = {
"argTypeTargetsV7": true,
"legacyDecoratorFileOrder": false,
"disallowImplicitActionsInRenderV8": true
};



window['REFS'] = {};



window['LOGLEVEL'] = "info";



window['DOCS_OPTIONS'] = {
"defaultName": "Docs",
"autodocs": "tag"
};



window['CONFIG_TYPE'] = "PRODUCTION";







window['TAGS_OPTIONS'] = {
"dev-only": {
"excludeFromDocsStories": true
},
"docs-only": {
"excludeFromSidebar": true
},
"test-only": {
"excludeFromSidebar": true,
"excludeFromDocsStories": true
}
};



window['STORYBOOK_RENDERER'] = "react";



window['STORYBOOK_BUILDER'] = "@storybook/builder-vite";



window['STORYBOOK_FRAMEWORK'] = "@storybook/react-vite";


</script>


<script type="module">
import './sb-manager/globals-runtime.js';


import './sb-addons/storybook-core-server-presets-0/common-manager-bundle.js';

import './sb-addons/onboarding-1/manager-bundle.js';

import './sb-addons/links-2/manager-bundle.js';

import './sb-addons/essentials-controls-3/manager-bundle.js';

import './sb-addons/essentials-actions-4/manager-bundle.js';

import './sb-addons/essentials-backgrounds-5/manager-bundle.js';

import './sb-addons/essentials-viewport-6/manager-bundle.js';

import './sb-addons/essentials-toolbars-7/manager-bundle.js';

import './sb-addons/essentials-measure-8/manager-bundle.js';

import './sb-addons/essentials-outline-9/manager-bundle.js';

import './sb-addons/chromatic-com-storybook-10/manager-bundle.js';

import './sb-addons/interactions-11/manager-bundle.js';


import './sb-manager/runtime.js';
</script>


<link href="./sb-preview/runtime.js" rel="prefetch" as="script" />

</body>
</html>
1 change: 1 addition & 0 deletions docs/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"v":5,"entries":{"configure-your-project--docs":{"id":"configure-your-project--docs","title":"Configure your project","name":"Docs","importPath":"./src/stories/Configure.mdx","storiesImports":[],"type":"docs","tags":["dev","test","unattached-mdx"]},"stories-monthrecord--docs":{"id":"stories-monthrecord--docs","title":"stories/MonthRecord","name":"Docs","importPath":"./src/stories/MonthRecord.mdx","storiesImports":["./src/stories/MonthRecord.stories.tsx"],"type":"docs","tags":["dev","test","attached-mdx"]},"stories-tooltip--docs":{"id":"stories-tooltip--docs","title":"stories/Tooltip","name":"Docs","importPath":"./src/stories/Tooltip.mdx","storiesImports":["./src/stories/Tooltip.stories.tsx"],"type":"docs","tags":["dev","test","attached-mdx"]},"stories-yearrecord--docs":{"id":"stories-yearrecord--docs","title":"stories/YearRecord","name":"Docs","importPath":"./src/stories/YearRecord.mdx","storiesImports":["./src/stories/YearRecord.stories.tsx"],"type":"docs","tags":["dev","test","attached-mdx"]},"stories-monthrecord--default":{"type":"story","id":"stories-monthrecord--default","name":"Default","title":"stories/MonthRecord","importPath":"./src/stories/MonthRecord.stories.tsx","tags":["dev","test"]},"stories-monthrecord--specific-month":{"type":"story","id":"stories-monthrecord--specific-month","name":"Specific Month","title":"stories/MonthRecord","importPath":"./src/stories/MonthRecord.stories.tsx","tags":["dev","test"]},"stories-monthrecord--specific-geo-info":{"type":"story","id":"stories-monthrecord--specific-geo-info","name":"Specific Geo Info","title":"stories/MonthRecord","importPath":"./src/stories/MonthRecord.stories.tsx","tags":["dev","test"]},"stories-monthrecord--specific-tooltip-title-placement":{"type":"story","id":"stories-monthrecord--specific-tooltip-title-placement","name":"Specific Tooltip Title Placement","title":"stories/MonthRecord","importPath":"./src/stories/MonthRecord.stories.tsx","tags":["dev","test"]},"stories-monthrecord--custom-data":{"type":"story","id":"stories-monthrecord--custom-data","name":"Custom Data","title":"stories/MonthRecord","importPath":"./src/stories/MonthRecord.stories.tsx","tags":["dev","test"]},"stories-monthrecord--specific-tooltip-title":{"type":"story","id":"stories-monthrecord--specific-tooltip-title","name":"Specific Tooltip Title","title":"stories/MonthRecord","importPath":"./src/stories/MonthRecord.stories.tsx","tags":["dev","test"]},"stories-monthrecord--specific-prps":{"type":"story","id":"stories-monthrecord--specific-prps","name":"Specific Prps","title":"stories/MonthRecord","importPath":"./src/stories/MonthRecord.stories.tsx","tags":["dev","test"]},"stories-tooltip--default":{"type":"story","id":"stories-tooltip--default","name":"Default","title":"stories/Tooltip","importPath":"./src/stories/Tooltip.stories.tsx","tags":["dev","test"]},"stories-yearrecord--default":{"type":"story","id":"stories-yearrecord--default","name":"Default","title":"stories/YearRecord","importPath":"./src/stories/YearRecord.stories.tsx","tags":["dev","test"]},"stories-yearrecord--basic":{"type":"story","id":"stories-yearrecord--basic","name":"Basic","title":"stories/YearRecord","importPath":"./src/stories/YearRecord.stories.tsx","tags":["dev","test"]},"stories-yearrecord--compact":{"type":"story","id":"stories-yearrecord--compact","name":"Compact","title":"stories/YearRecord","importPath":"./src/stories/YearRecord.stories.tsx","tags":["dev","test"]},"stories-yearrecord--props":{"type":"story","id":"stories-yearrecord--props","name":"Props","title":"stories/YearRecord","importPath":"./src/stories/YearRecord.stories.tsx","tags":["dev","test"]}}}
1 change: 1 addition & 0 deletions docs/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"generatedAt":1720532780501,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"testPackages":{},"packageManager":{"type":"npm","version":"10.2.3"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.1.10","storybookVersionSpecifier":"^8.1.10","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"8.1.10"},"@storybook/react":{"version":"8.1.10"},"@storybook/react-vite":{"version":"8.1.10"},"@storybook/test":{"version":"8.1.10"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.1.10"}},"addons":{"@storybook/addon-onboarding":{"version":"8.1.10"},"@storybook/addon-links":{"version":"8.1.10"},"@storybook/addon-essentials":{"version":"8.1.10"},"@chromatic-com/storybook":{"version":"1.5.0"},"@storybook/addon-interactions":{"version":"8.1.10"},"chromatic":{"version":"11.5.5","versionSpecifier":"^11.5.5"}}}
Loading

0 comments on commit 16d3268

Please sign in to comment.