Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Doradx/notion2markdown-action
Browse files Browse the repository at this point in the history
  • Loading branch information
Doradx committed Sep 7, 2023
2 parents d7c1a5f + c7d45db commit c128876
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 5 deletions.
21 changes: 21 additions & 0 deletions LICENSE
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.
17 changes: 14 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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'
Expand Down Expand Up @@ -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]
13 changes: 11 additions & 2 deletions readme_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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]

0 comments on commit c128876

Please sign in to comment.