docs: 更新部署文档和README说明

- 在DEPLOYMENT.md中添加默认API路径说明
- 优化README中的警告提示格式和内容
- 移除index.js中已注释的代码
This commit is contained in:
justlovemaki
2025-06-12 17:51:28 +08:00
parent 5dbbe8f484
commit 826ca56b17
3 changed files with 7 additions and 14 deletions

View File

@@ -80,17 +80,17 @@
> [!NOTE]
> 本项目优先支持从 [Folo](https://app.follow.is/) 数据源抓取内容。
> 您只需通过F12获取Folo Cookie并将其配置到项目中即可在线试用。
> Folo Cookie只保留在浏览器没有安全隐患。
> [!WARNING]
> **注意:** 为了保证项目的正常运行,您需要在项目中配置 Folo Cookie。
> 为了保证项目的正常运行,您需要在项目中配置 Folo Cookie。
> Folo Cookie只保留在浏览器没有安全隐患。
1. **获取Folo Cookie**
[![cookie](docs/images/folo-0.png "img")](docs/images/folo-0.png)
2. **[Demo 地址](https://ai-daily-demo.justlikemaki.workers.dev/getContentHtml)**
* 默认账号密码root/toor
---
## 📚 更多文档
@@ -108,7 +108,7 @@
AI 或许能模仿你过去的喜好,却难以捕捉你此刻的灵感与洞见。
`手动勾选`这一步,正是为了保留这份属于“人”的、不断演进的独特视角。它确保了日报的灵魂——**你的思想和判断力**——始终贯穿其中,让每一份日报都成为你当日思考的真实快照。
`手动勾选`这一步,正是为了保留这份属于“人”的、不断演进的独特视角。它确保了日报的灵魂`你的思想和判断力`始终贯穿其中,让每一份日报都成为你当日思考的真实快照。
当然,我们也完全支持并欢迎社区开发者探索全自动化的实现方式。如果你有更棒的想法,请随时提交 Pull Request

View File

@@ -129,6 +129,9 @@ TWITTER_FETCH_PAGES = "2"
```
该命令会启动一个本地服务器(通常在 `http://localhost:8787`),您可以直接在浏览器中访问以进行调试。
- **默认开始路径**:
* 路径:/getContentHtml?date=YYYY-MM-DD (GET)
#### 4. 部署到 Cloudflare
- **登录 Cloudflare**:

View File

@@ -76,16 +76,6 @@ export default {
} else if (path === '/commitToGitHub' && request.method === 'POST') {
response = await handleCommitToGitHub(request, env);
} else {
// const availableEndpoints = [
// "/writeData (POST) - Fetches, filters, translates, and stores data for today.",
// "/getContent?date=YYYY-MM-DD (GET) - Retrieves stored data as JSON.",
// "/getContentHtml?date=YYYY-MM-DD (GET) - Displays stored data as HTML with selection.",
// "/genAIContent (POST) - Generates summary from selected items. Expects 'date' and 'selectedItems' form data.",
// "/commitToGitHub (POST) - Commits generated content to GitHub. Triggered from /genAIContent result page.",
// "/logout (GET) - Clears the login cookie and redirects."
// ];
// let responseBody = `Not Found. Available endpoints:\n\n${availableEndpoints.map(ep => `- ${ep}`).join('\n')}\n\nSpecify a date parameter (e.g., ?date=2023-10-27) for content endpoints or they will default to today.`;
// return new Response(responseBody, { status: 404, headers: {'Content-Type': 'text/plain; charset=utf-8'} });
return new Response(null, { status: 404, headers: {'Content-Type': 'text/plain; charset=utf-8'} });
}
} catch (e) {