{"id":15020721,"url":"https://github.com/easychris/obsidian-to-notion","last_synced_at":"2025-04-05T02:09:29.618Z","repository":{"id":39642535,"uuid":"495279479","full_name":"EasyChris/obsidian-to-notion","owner":"EasyChris","description":"Share obsidian markdown file to notion and generate notion share link    同步obsdian文件到notion，并生成notion分享链接，可以方便的分享obsidian的文件。","archived":false,"fork":false,"pushed_at":"2024-04-08T23:18:32.000Z","size":6113,"stargazers_count":502,"open_issues_count":32,"forks_count":45,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-05T02:09:24.313Z","etag":null,"topics":["notion","notion-api","obsidian-plugin","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EasyChris.png","metadata":{"files":{"readme":"README-zh.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-23T06:08:48.000Z","updated_at":"2025-03-26T13:54:51.000Z","dependencies_parsed_at":"2024-10-30T08:22:45.017Z","dependency_job_id":null,"html_url":"https://github.com/EasyChris/obsidian-to-notion","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":"obsidianmd/obsidian-sample-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyChris%2Fobsidian-to-notion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyChris%2Fobsidian-to-notion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyChris%2Fobsidian-to-notion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyChris%2Fobsidian-to-notion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EasyChris","download_url":"https://codeload.github.com/EasyChris/obsidian-to-notion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276189,"owners_count":20912288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["notion","notion-api","obsidian-plugin","typescript"],"created_at":"2024-09-24T19:55:29.309Z","updated_at":"2025-04-05T02:09:29.598Z","avatar_url":"https://github.com/EasyChris.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Obsidian to Notion\n[![](https://github.com/Easychris/obsidian-to-notion/actions/workflows/CI.yml/badge.svg)](https://github.com/Easychris/obsidian-to-notion/actions/workflows/CI.yml)\n[![Release Obsidian plugin](https://github.com/Easychris/obsidian-to-notion/actions/workflows/release.yml/badge.svg)](https://github.com/Easychris/obsidian-to-notion/actions/workflows/release.yml)\n[![GitHub license](https://camo.githubusercontent.com/400c4e52df43f6a0ab8a89b74b1a78d1a64da56a7848b9110c9d2991bb7c3105/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c76332d626c75652e737667)](https://raw.githubusercontent.com/EasyChris/obsidian-to-notion/master/LICENSE)\n[![Github all releases](https://img.shields.io/github/downloads/Easychris/obsidian-to-notion/total.svg)](https://GitHub.com/Easychris/obsidian-to-notion/releases/)\n[![GitLab latest release](https://badgen.net/github/release/Easychris/obsidian-to-notion/)](https://github.com/Easychris/obsidian-to-notion/releases)\n\nObsidian share to Notion [English](README.md)\n\n将obsidian文件一键分享到Notion,并在obsidian中添加Notion分享链接\n\n如果能对你有所帮助，欢迎给一个star支持。\n\n![](./doc/1.gif)\n\n# 使用方式\n## 安装插件\n\n### 市场下载\n插件市场搜索 noiton 即可下载\n\n![](https://afox-1256168983.cos.ap-shanghai.myqcloud.com/20220628214145.png)\n### BRAT\n插件中中心搜索 BRAT\n添加 `EasyChris/obsidian-to-notion` 到 BRAT 插件安装列表中\n返回插件中心启用即可\n### 手动安装\n```\ncd YOUR_OBSIDIAN_FOLDER/.obsidian/plugins/\ngit clone https://github.com/EasyChris/obsidian-to-notion.git\n```\n\n\n## 申请 Notion API\n官方参考文档：[https://developers.notion.com/docs](https://developers.notion.com/docs)\n### 第 1 步：创建integration。\n转到 [https://www.notion.com/my-integrations](https://www.notion.com/my-integrations)\n创建完成之后，复制`secrets toekn`\n![](https://files.readme.io/2ec137d-093ad49-create-integration.gif)\n\n### 第2步：与你的集成共享一个数据库\n新建一个的page（权限为公开）\n在page中新建一个数据库 -\u003e 需要`full page database`\n![](./doc/3.gif)\n\n将`integration`添加到你的新建的数据库中\n\n![](./doc/6.gif)\n\n#### 注意\n\n数据库的第一个自定义名称必须是 \"Name\"，否则同步会失败。\n\n![](https://afox-1256168983.cos.ap-shanghai.myqcloud.com/20220618102029.png)\n\n\n\n\n### 第三步：复制database ID\n\n```\nhttps://www.notion.so/myworkspace/a8aec43384f447ed84390e8e42c2e089?v=...\n                                  |--------- Database ID --------|\n\n```\n\n\n\n## 打开插件配置\n将得到的 `NOTION_API_KEY` 和 `DATABASE_ID`填入配置当中\n![](./doc/2.png)\n\n## 上传文件内容到notion\n点击上传notion的按钮\n![](./doc/4.png)\n上传成功之后会自动生成一个分享链接\n![](./doc/5.png)\n\n\n## 页面 Banner 链接[可选]\n默认可以不填写\n横幅URL必须是图像URL，例如：https：//i.imgur.com/xxx.jpg\n\n## Notion ID [可选]\nNotion ID是你想分享文件的页面ID。\n如果你不写它，notion将分享到默认的链接，如：https://www.notion.so/myworkspace/a8aec43384f447ed84390，访问这个页面将重定向到你的网站页面。\n如果你写了Notion ID，它将分享到页面链接如：https://your_user_name.notion.site/myworkspace/a8aec43384f447ed84390。不需要重定向网址。\n\n## 同步图片\n\n使用 [Obsidian Image Auto Upload Plugin](https://github.com/renmu123/obsidian-image-auto-upload-plugin) 插件，配置你自己的 cos 或者 oss，将图片存储到你自己的云存储，然后在 obsidian 中使用图片链接即可。该插件会自动帮你上传图片，并替换成链接。\n\n# 请我喝杯咖啡\n\n[顿顿饭](https://dun.mianbaoduo.com/@easy)\n\n# 感谢\n[开发流程 | Obsidian 插件开发文档](https://luhaifeng666.github.io/obsidian-plugin-docs-zh/zh/getting-started/development-workflow.html)\n\n[GitHub - devbean/obsidian-wordpress: An obsidian plugin for publishing docs to WordPress.](https://github.com/devbean/obsidian-wordpress)\n\n[GitHub - obsidianmd/obsidian-api](https://github.com/obsidianmd/obsidian-api)\n\n[GitHub - zhaohongxuan/obsidian-weread-plugin: Obsidian Weread Plugin is an plugin to sync Weread(微信读书) hightlights and annotations into your Obsidian Vault.](https://github.com/zhaohongxuan/obsidian-weread-plugin)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychris%2Fobsidian-to-notion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasychris%2Fobsidian-to-notion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychris%2Fobsidian-to-notion/lists"}