Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat(docs): update document (#2877)

Alex Yang78b74d5b1578
diff --git a/apps/docs/src/app.tsx b/apps/docs/src/app.tsx
index e6c746f480..84cfe597fc 100644
--- a/apps/docs/src/app.tsx
+++ b/apps/docs/src/app.tsx
@@ -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"
diff --git a/apps/docs/src/pages/binary b/apps/docs/src/pages/binary
index 3d63fdf2b7..072c58daa8 100644
Binary files a/apps/docs/src/pages/binary and b/apps/docs/src/pages/binary differ
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs
index ac07dc959d..314d42f23e 100644
--- a/apps/web/next.config.mjs
+++ b/apps/web/next.config.mjs
@@ -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,
diff --git a/packages/component/package.json b/packages/component/package.json
index 818cb74c28..2e4b71b4d8 100644
--- a/packages/component/package.json
+++ b/packages/component/package.json
@@ -7,6 +7,9 @@
"./theme/*": "./src/theme/*",
"./*": "./src/components/*/index.tsx"
},
+ "scripts": {
+ "build": "yarn workspace @affine/i18n build"
+ },
"peerDependencies": {
"@blocksuite/blocks": "*",
"@blocksuite/editor": "*",