Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/comeonzhj/Auto-Redbook-Skills
/ functions
Functions
62 in github.com/comeonzhj/Auto-Redbook-Skills
⨍
Functions
62
◇
Types & classes
2
↓ 3 callers
Function
estimateContentHeight
* 预估内容高度
scripts/render_xhs_v2.js:116
↓ 3 callers
Function
estimate_content_height
预估内容高度(基于字数和元素类型)
scripts/render_xhs_v2.py:132
↓ 3 callers
Function
generateCardHtml
* 生成正文卡片 HTML
scripts/render_xhs_v2.js:340
↓ 3 callers
Function
generate_card_html
生成正文卡片 HTML
scripts/render_xhs_v2.py:375
↓ 2 callers
Function
generate_card_html
生成正文卡片 HTML
scripts/render_xhs.py:276
↓ 2 callers
Function
measureContentHeight
* 测量内容高度
scripts/render_xhs_v2.js:492
↓ 2 callers
Function
measure_content_height
使用 Playwright 测量实际内容高度
scripts/render_xhs_v2.py:528
↓ 2 callers
Function
parse_cookie
解析 Cookie 字符串为字典
scripts/publish_xhs.py:72
↓ 2 callers
Function
printHelp
* 打印帮助信息
scripts/render_xhs.js:146
↓ 2 callers
Function
renderHtmlToImage
* 渲染 HTML 到图片
scripts/render_xhs_v2.js:566
↓ 2 callers
Function
renderHtmlToImage
* 渲染 HTML 为图片
scripts/render_xhs.js:430
↓ 2 callers
Function
render_html_to_image
使用 Playwright 将 HTML 渲染为图片
scripts/render_xhs.py:431
↓ 1 callers
Function
auto_split_content
自动切分内容:根据渲染后的高度自动分页
scripts/render_xhs.py:529
↓ 1 callers
Function
convertMarkdownToHtml
* 将 Markdown 转换为 HTML
scripts/render_xhs_v2.js:238
↓ 1 callers
Function
convert_markdown_to_html
将 Markdown 转换为 HTML
scripts/render_xhs.py:104
↓ 1 callers
Function
convert_markdown_to_html
将 Markdown 转换为 HTML
scripts/render_xhs_v2.py:261
↓ 1 callers
Function
generateCardHtml
* 生成正文卡片 HTML
scripts/render_xhs.js:311
↓ 1 callers
Function
generateCoverHtml
* 生成封面 HTML
scripts/render_xhs_v2.js:264
↓ 1 callers
Function
generateCoverHtml
* 生成封面 HTML
scripts/render_xhs.js:217
↓ 1 callers
Function
generate_cover_html
生成封面 HTML
scripts/render_xhs.py:145
↓ 1 callers
Function
generate_cover_html
生成封面 HTML
scripts/render_xhs_v2.py:290
↓ 1 callers
Function
get_api_url
获取 API 服务地址
scripts/publish_xhs.py:99
↓ 1 callers
Method
init_client
初始化 xhs 客户端
scripts/publish_xhs.py:127
↓ 1 callers
Function
listStyles
* 列出所有样式
scripts/render_xhs_v2.js:639
↓ 1 callers
Function
list_styles
列出所有可用样式
scripts/render_xhs_v2.py:687
↓ 1 callers
Function
loadThemeCss
* 加载主题 CSS
scripts/render_xhs.js:202
↓ 1 callers
Function
load_cookie
从 .env 文件加载 Cookie
scripts/publish_xhs.py:43
↓ 1 callers
Function
load_theme_css
加载主题 CSS 样式
scripts/render_xhs.py:130
↓ 1 callers
Function
main
()
scripts/render_xhs.py:638
↓ 1 callers
Function
main
()
scripts/render_xhs_v2.py:696
↓ 1 callers
Function
main
()
scripts/render_xhs_v2.js:715
↓ 1 callers
Function
main
* 主函数
scripts/render_xhs.js:547
↓ 1 callers
Function
main
()
scripts/publish_xhs.py:314
↓ 1 callers
Function
parseArgs
* 解析命令行参数
scripts/render_xhs_v2.js:651
↓ 1 callers
Function
parseArgs
* 解析命令行参数
scripts/render_xhs.js:80
↓ 1 callers
Function
parseMarkdownFile
* 解析 Markdown 文件,提取 YAML 头部和正文内容
scripts/render_xhs_v2.js:84
↓ 1 callers
Function
parseMarkdownFile
* 解析 Markdown 文件
scripts/render_xhs.js:170
↓ 1 callers
Function
parse_markdown_file
解析 Markdown 文件,提取 YAML 头部和正文内容
scripts/render_xhs.py:73
↓ 1 callers
Function
parse_markdown_file
解析 Markdown 文件,提取 YAML 头部和正文内容
scripts/render_xhs_v2.py:101
↓ 1 callers
Function
processAndRenderCards
* 处理和渲染卡片
scripts/render_xhs_v2.js:507
↓ 1 callers
Function
process_and_render_cards
处理卡片内容,检测高度并自动分页,然后渲染 返回最终生成的所有卡片文件路径
scripts/render_xhs_v2.py:569
↓ 1 callers
Method
publish
发布图文笔记
scripts/publish_xhs.py:157
↓ 1 callers
Function
renderMarkdownToCards
* 主渲染函数
scripts/render_xhs_v2.js:582
↓ 1 callers
Function
renderMarkdownToCards
* 主渲染函数
scripts/render_xhs.js:502
↓ 1 callers
Function
render_html_to_image
使用 Playwright 将 HTML 渲染为图片
scripts/render_xhs_v2.py:545
↓ 1 callers
Function
render_markdown_to_cards
主渲染函数:将 Markdown 文件渲染为多张卡片图片
scripts/render_xhs.py:589
↓ 1 callers
Function
render_markdown_to_cards
主渲染函数:将 Markdown 文件渲染为多张卡片图片
scripts/render_xhs_v2.py:629
↓ 1 callers
Function
smartSplitContent
* 智能拆分内容
scripts/render_xhs_v2.js:154
↓ 1 callers
Function
smart_split_content
智能拆分内容到多张卡片 基于预估高度进行拆分,尽量保持段落完整
scripts/render_xhs_v2.py:173
↓ 1 callers
Function
splitContentBySeparator
* 按照 --- 分隔符拆分正文为多张卡片内容
scripts/render_xhs_v2.js:108
↓ 1 callers
Function
splitContentBySeparator
* 按分隔符拆分内容
scripts/render_xhs.js:194
↓ 1 callers
Function
split_content_by_separator
按照 --- 分隔符拆分正文为多张卡片内容
scripts/render_xhs.py:98
↓ 1 callers
Function
split_content_by_separator
按照 --- 分隔符拆分正文为多张卡片内容
scripts/render_xhs_v2.py:126
↓ 1 callers
Function
validate_cookie
验证 Cookie 是否包含必要的字段
scripts/publish_xhs.py:83
↓ 1 callers
Function
validate_images
验证图片文件是否存在
scripts/publish_xhs.py:104
Method
__init__
(self, cookie: str)
scripts/publish_xhs.py:123
Method
__init__
(self, cookie: str, api_url: str = None)
scripts/publish_xhs.py:205
Method
get_user_info
获取当前登录用户信息
scripts/publish_xhs.py:147
Method
get_user_info
获取当前登录用户信息
scripts/publish_xhs.py:251
Method
init_client
初始化 API 客户端
scripts/publish_xhs.py:210
Method
publish
发布图文笔记
scripts/publish_xhs.py:270
Method
sign_func
(uri, data=None, a1_param="", web_session="")
scripts/publish_xhs.py:141