diff --git a/docs/Note/mkdocs/plugin_dev.md b/docs/Note/mkdocs/plugin_dev.md new file mode 100644 index 000000000..fc60e6d46 --- /dev/null +++ b/docs/Note/mkdocs/plugin_dev.md @@ -0,0 +1,14 @@ +--- +tags: +- mkdocs +include: +- ai-summary +--- + +# mkdocs插件开发 + +很多博客网站都又了AI摘要的功能,但我看mkdocs社区好像还没有。于是我自己写了一个:[mkdocs-ai-summary](../../../Project/mkdocs-ai-summary),效果就是本文开头的那样。 + +大火可以来用用看,暂时只支持通义千问,后续会增加对其他的AI模型的支持(其实我也很想率先ChatGPT,但我手头没有可用的api key😭,只能后面再说了)。 + +代码不多,水平有限,大家多多包涵~ \ No newline at end of file diff --git a/docs/Project/mkdocs-ai-summary.md b/docs/Project/mkdocs-ai-summary.md new file mode 100644 index 000000000..328f9cea3 --- /dev/null +++ b/docs/Project/mkdocs-ai-summary.md @@ -0,0 +1,20 @@ +--- +tags: +- PyPJ +- 开源项目 +--- + +# mkdocs-ai-summary + +
+ +[![AIboy996/mkdocs-ai-summary - GitHub](https://gh-card.dev/repos/AIboy996/mkdocs-ai-summary.svg?fullname=)](https://github.com/AIboy996/mkdocs-ai-summary) + +
+ + +!!! 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生成文章摘要。 \ No newline at end of file diff --git a/nav.yml b/nav.yml index 9b1dfe6ea..ca5a0c56b 100644 --- a/nav.yml +++ b/nav.yml @@ -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 @@ -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: diff --git a/requirements.txt b/requirements.txt index ebc69afa6..81d79337a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 \ No newline at end of file