1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-03 08:45:40 +02:00
focalboard/import/notion
dependabot[bot] 53df62771d
Bump minimist from 1.2.5 to 1.2.6 in /import/notion (#2612)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-23 19:45:44 -06:00
..
.eslintrc.json Import from Notion 2021-02-22 10:58:50 -08:00
.gitignore Import from Notion 2021-02-22 10:58:50 -08:00
importNotion.ts Permissions feature branch (#2578) 2022-03-22 08:24:34 -06:00
package-lock.json Bump minimist from 1.2.5 to 1.2.6 in /import/notion (#2612) 2022-03-23 19:45:44 -06:00
package.json Bump minimist from 1.2.5 to 1.2.6 in /import/notion (#2612) 2022-03-23 19:45:44 -06:00
README.md GH-Pages: Move contributors guide to GitHub (#2298) 2022-02-09 08:17:46 -08:00
tsconfig.json Import from Notion 2021-02-22 10:58:50 -08:00
utils.ts Import from Notion 2021-02-22 10:58:50 -08:00

Notion importer

This node app converts a Notion CSV and markdown export into a Focalboard archive. To use:

  1. From a Notion Board, open the ... menu at the top right
  2. Select Export, pick Markdown & CSV as the export format, select true to include subpages.
  3. Save it locally, and unzip the folder e.g. to notion-export
  4. Run npm install from within focalboard/webapp
  5. Run npm install from within focalboard/import/notion
  6. Run npx ts-node importNotion.ts -i <path to the notion-export folder> -o archive.focalboard
  7. In Focalboard, click Settings, then Import archive and select archive.focalboard

Import scope

Currently, the script imports all cards from a single board, including their properties and markdown content.

The Notion export format does not preserve property types, so the script currently imports all card properties as a Select type. You can change the type after importing into Focalboard.

Contribute code to expand this.