forked from mohuishou/notion-blog-actions
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:Doradx/notion2markdown-action
- Loading branch information
Showing
3 changed files
with
46 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Dorad | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,7 +146,7 @@ jobs: | |
id: NotionSync | ||
uses: Doradx/notion2markdown-action@v1 | ||
with: | ||
notion_secret: ${{ secrets.NOTION_TOKEN }} | ||
notion_secret: ${{ secrets.NOTION_SECRET }} | ||
database_id: ${{ secrets.NOTION_DATABASE_ID }} | ||
pic_migrate: true | ||
pic_bed_config: ${{ secrets.PICBED_CONFIG }} | ||
|
@@ -155,7 +155,7 @@ jobs: | |
output_post_dir: 'source/_posts/notion' | ||
clean_unpublished_post: true | ||
metas_keeped: abbrlink | ||
metas_excluded: pstatus,ptype | ||
metas_excluded: pstatus,ptype | ||
last_sync_datetime: ${{ steps.GetNotionSyncDatetime.outputs.NOTION_SYNC_DATETIME }} | ||
- name: Hexo deploy | ||
if: steps.NotionSync.outputs.updated_count != '0' | ||
|
@@ -271,4 +271,15 @@ jobs: | |
``` | ||
以上是 `notion2markdown-action` 的详细文档,您可以根据需要自定义输入参数,并将该工作流添加到您的 GitHub 仓库中以自动将 Notion 页面转换为 Markdown 文档。如有任何问题或建议,请随时联系作者。 | ||
## 相关项目 | ||
- [notion-blog-actions](https://github.com/mohuishou/notion-blog-actions) - fork于该项目 | ||
- [notion-to-md](https://github.com/souvikinator/notion-to-md) - 核心模块, Notion转Markdown | ||
- [notion-sdk-js](https://github.com/makenotion/notion-sdk-js): 核心模块, Notion API | ||
- [PicGo-Core](https://github.com/PicGo/PicGo-Core): 核心模块, 图床 | ||
## 开源协议 | ||
采用[MIT协议](./LICENSE) | ||
## Author | ||
Dorad, [email protected] | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -182,7 +182,7 @@ jobs: | |
output_post_dir: 'source/_posts/notion' | ||
clean_unpublished_post: true | ||
metas_keeped: abbrlink | ||
metas_excluded: pstatus,ptype | ||
metas_excluded: pstatus,ptype | ||
last_sync_datetime: ${{ steps.GetNotionSyncDatetime.outputs.NOTION_SYNC_DATETIME }} | ||
- name: Hexo deploy | ||
if: steps.NotionSync.outputs.updated_count != '0' | ||
|
@@ -297,6 +297,15 @@ jobs: | |
uses: actions/deploy-pages@v2 | ||
``` | ||
## Related Projects | ||
- [notion-blog-actions](https://github.com/mohuishou/notion-blog-actions) | ||
- [notion-to-md](https://github.com/souvikinator/notion-to-md) | ||
- [notion-sdk-js](https://github.com/makenotion/notion-sdk-js) | ||
- [PicGo-Core](https://github.com/PicGo/PicGo-Core) | ||
## License | ||
This action is licensed under the MIT License. See the [LICENSE](https://github.com/Doradx/notion2markdown-action/blob/main/LICENSE) file for details. | ||
This action is licensed under the MIT License. See the [LICENSE](https://github.com/Doradx/notion2markdown-action/blob/main/LICENSE) file for details. | ||
## Author | ||
Dorad, [email protected] |