From fd037c8469c714faf385536d7d67d427bb031937 Mon Sep 17 00:00:00 2001 From: AIboy996 <2207854887@qq.com> Date: Wed, 22 May 2024 23:52:38 +0800 Subject: [PATCH] [update] readme --- docs/index.md | 9 ++++++++- readme.md | 9 ++++++++- site/index.html | 8 ++++++-- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/docs/index.md b/docs/index.md index cfe0276..f3197c5 100644 --- a/docs/index.md +++ b/docs/index.md @@ -20,9 +20,16 @@ You should install the package with pip: pip install mkdocs-ai-summary[tongyi] ``` +> ⚠️⚠️⚠️⚠️ +> > Only support [tongyi ai](https://tongyi.aliyun.com/) for now. **Soon to support ChatGPT.** +> +> To use tongyi ai, you should set a Environmental Variable for **api key**: +> ```bash +> export DASHSCOPE_API_KEY='sk-xxxxxxx' +> ``` -And you should include the [ai-summary.css](./ai-summary.css)(optional, this is for the **custom admonition style**) in the config file as below: +[optional] Then you can include the [ai-summary.css](./ai-summary.css)(optional, this is for the **custom admonition style**) in the config file as below: ## Configuration diff --git a/readme.md b/readme.md index 5016518..77cc661 100644 --- a/readme.md +++ b/readme.md @@ -18,9 +18,16 @@ You should install the package with pip: pip install mkdocs-ai-summary[tongyi] ``` +> ⚠️⚠️⚠️⚠️ +> > Only support [tongyi ai](https://tongyi.aliyun.com/) for now. **Soon to support ChatGPT.** +> +> To use tongyi ai, you should set a Environmental Variable for **api key**: +> ```bash +> export DASHSCOPE_API_KEY='sk-xxxxxxx' +> ``` -And you should include the [ai-summary.css](./docs/ai-summary.css)(optional, this is for the **custom admonition style**) in the config file as below: +[optional] Then you can include the [ai-summary.css](./docs/ai-summary.css)(optional, this is for the **custom admonition style**) in the config file as below: ## Configuration diff --git a/site/index.html b/site/index.html index 4d8fef5..e4d6651 100644 --- a/site/index.html +++ b/site/index.html @@ -296,7 +296,7 @@
AI摘要 powered by 通义千问
-mkdocs-ai-summary
is a Python package that generates AI-generated summaries for MkDocs pages using Tongyi AI. It supports live demos on yangzhang.site and is compatible with Tongyi AI only, soon to include ChatGPT. Install with pip, and include ai-summary.css
(optional). Configure in mkdocs.yml
by adding meta tags to pages. Caching ensures efficient re-use of summaries when content remains unchanged.
mkdocs-ai-summary
is a plugin for generating AI-generated summaries on MkDocs pages using Tongyi AI. Install with pip and configure via a mkdocs.yml
file, setting an API key for Tongyi. Add an AI summary to each page using a meta tag. The plugin supports caching to minimize API calls, with plans to expand to ChatGPT support. Live demo at yangzhang.site.
pip install mkdocs-ai-summary[tongyi]
+-⚠️⚠️⚠️⚠️
Only support tongyi ai for now. Soon to support ChatGPT.
+To use tongyi ai, you should set a Environmental Variable for api key: +
export DASHSCOPE_API_KEY='sk-xxxxxxx' +
And you should include the ai-summary.css(optional, this is for the custom admonition style) in the config file as below:
+[optional] Then you can include the ai-summary.css(optional, this is for the custom admonition style) in the config file as below:
A demo for mkdocs.yml
:
site_name: mkdocs-ai-summary