Skip to content

Commit

Permalink
[add] mkdocs-ai-summary
Browse files Browse the repository at this point in the history
  • Loading branch information
AIboy996 committed May 22, 2024
1 parent 0fe0c74 commit f0066c4
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
14 changes: 14 additions & 0 deletions docs/Note/mkdocs/plugin_dev.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
tags:
- mkdocs
include:
- ai-summary
---

# mkdocs插件开发

很多博客网站都又了AI摘要的功能,但我看mkdocs社区好像还没有。于是我自己写了一个:[mkdocs-ai-summary](../../../Project/mkdocs-ai-summary),效果就是本文开头的那样。

大火可以来用用看,暂时只支持通义千问,后续会增加对其他的AI模型的支持(其实我也很想率先ChatGPT,但我手头没有可用的api key😭,只能后面再说了)。

代码不多,水平有限,大家多多包涵~
20 changes: 20 additions & 0 deletions docs/Project/mkdocs-ai-summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
tags:
- PyPJ
- 开源项目
---

# mkdocs-ai-summary

<figure markdown>

[![AIboy996/mkdocs-ai-summary - GitHub](https://gh-card.dev/repos/AIboy996/mkdocs-ai-summary.svg?fullname=)](https://github.com/AIboy996/mkdocs-ai-summary)

</figure>


!!! success
[![PyPI - Version](https://img.shields.io/pypi/v/mkdocs-ai-summary)](https://pypi.org/project/mkdocs-ai-summary/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mkdocs-ai-summary)

已完成基础功能,支持使用通义千问的api生成文章摘要。
2 changes: 2 additions & 0 deletions nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ nav:
- Note/mkdocs/best_practices.md
- Note/mkdocs/about_math.md
- Note/mkdocs/plugin.md
- Note/mkdocs/plugin_dev.md
- SAS:
- SAS的基本操作: Note/SAS/SAS_basic.md
- SAS的统计应用: Note/SAS/SAS_application.md
Expand Down Expand Up @@ -129,6 +130,7 @@ nav:
- Project/pymd.md
- Project/plt-gallery.md
- Project/high_school_math.md
- Project/mkdocs-ai-summary.md
- Project/AirPrint-with-Python.md
- Project/Course-Selection-System.md
- Statistics:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ mkdocs-minify-plugin==0.6.2
mkdocs-rss-plugin==1.7.0
mkdocs-static-i18n==1.2.3
mkdocs-video==1.5.0
mkdocs-ai-summary==0.1.1
mkdocs-ai-summary[tongyi]==0.1.1
# mkdocs-jupyter==0.22.0

0 comments on commit f0066c4

Please sign in to comment.