feat(docs): update document (#2877)

This commit is contained in:
Alex Yang 2023-06-28 00:52:42 +08:00 committed by GitHub
parent 1556167262
commit 78b74d5b15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 2 deletions

View File

@ -25,11 +25,11 @@ const AppCreator = (pathname: string) =>
const buffer = [...readFileSync(path)];
return (
<div className="flex flex-col-reverse sm:flex-row">
<div className="flex flex-col-reverse sm:flex-row h-screen">
<nav className="w-full sm:w-64">
<Sidebar />
</nav>
<main className="flex-1 p-6 w-full sm:w-[calc(100%-16rem)]">
<main className="flex-1 p-6 w-full sm:w-[calc(100%-16rem)] overflow-scroll">
<Editor
workspaceId={pathname}
pageId="1"

Binary file not shown.

View File

@ -180,6 +180,7 @@ const baseDir = process.env.LOCAL_BLOCK_SUITE ?? '/';
const withDebugLocal = debugLocal(
{
'@blocksuite/editor': path.resolve(baseDir, 'packages', 'editor'),
'@blocksuite/block-std': path.resolve(baseDir, 'packages', 'block-std'),
'@blocksuite/blocks/models': path.resolve(
baseDir,
'packages',
@ -203,6 +204,14 @@ const withDebugLocal = debugLocal(
),
'@blocksuite/blocks': path.resolve(baseDir, 'packages', 'blocks'),
'@blocksuite/store': path.resolve(baseDir, 'packages', 'store'),
'@blocksuite/store/providers/broadcast-channel': path.resolve(
baseDir,
'packages',
'store',
'src',
'providers',
'broadcast-channel'
),
},
{
enable: enableDebugLocal,

View File

@ -7,6 +7,9 @@
"./theme/*": "./src/theme/*",
"./*": "./src/components/*/index.tsx"
},
"scripts": {
"build": "yarn workspace @affine/i18n build"
},
"peerDependencies": {
"@blocksuite/blocks": "*",
"@blocksuite/editor": "*",