复制页面按钮 是 AI Skill Hub 本期精选AI工具之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
复制页面按钮 是一款基于 JavaScript 开发的开源工具,专注于 ai-tools、content-extraction、javascript 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
复制页面按钮 是一款基于 JavaScript 开发的开源工具,专注于 ai-tools、content-extraction、javascript 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:npm 全局安装 npm install -g docusaurus-plugin-copy-page-button # 方式二:npx 直接运行(无需安装) npx docusaurus-plugin-copy-page-button --help # 方式三:项目依赖安装 npm install docusaurus-plugin-copy-page-button # 方式四:从源码运行 git clone https://github.com/portdeveloper/docusaurus-plugin-copy-page-button cd docusaurus-plugin-copy-page-button npm install npm start
# 命令行使用
docusaurus-plugin-copy-page-button --help
# 基本用法
docusaurus-plugin-copy-page-button [options] <input>
# Node.js 代码中使用
const docusaurus_plugin_copy_page_button = require('docusaurus-plugin-copy-page-button');
const result = await docusaurus_plugin_copy_page_button.run(options);
console.log(result);
# docusaurus-plugin-copy-page-button 配置说明 # 查看配置选项 docusaurus-plugin-copy-page-button --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export DOCUSAURUS_PLUGIN_COPY_PAGE_BUTTON_CONFIG="/path/to/config.yml"
npm install docusaurus-plugin-copy-page-button
git clone https://github.com/portdeveloper/docusaurus-plugin-copy-page-button.git
cd docusaurus-plugin-copy-page-button
npm install
Add the plugin to your docusaurus.config.js:
module.exports = {
plugins: ["docusaurus-plugin-copy-page-button"],
};
The button automatically appears in the table of contents sidebar when one is visible. On mobile and no-TOC pages, it falls back to the top of the article.
Use placement: "article" if your theme header, sidebar, or table of contents layout makes the sidebar placement awkward:
module.exports = {
plugins: [
[
"docusaurus-plugin-copy-page-button",
{
placement: "article",
},
],
],
};
Available values: - "auto" - sidebar on desktop when visible, article on mobile/no-TOC pages - "toc" - table of contents only - "article" - top of the article column
Use custom styles to position the button differently:
module.exports = {
plugins: [
[
"docusaurus-plugin-copy-page-button",
{
customStyles: {
button: {
style: {
position: "fixed",
top: "20px",
right: "20px",
},
},
},
},
],
],
};
For high-traffic docs sites that want zero client-side placement shift, disable auto-injection and render the button from a swizzled Docusaurus theme component.
// docusaurus.config.js
module.exports = {
plugins: [
[
"docusaurus-plugin-copy-page-button",
{
injectButton: false,
generateMarkdownRoutes: true,
},
],
],
};
// src/theme/DocItem/Layout/index.tsx
import CopyPageButton from "docusaurus-plugin-copy-page-button/react";
export default function DocItemLayout(props) {
return (
<>
<div style={{display: "flex", justifyContent: "flex-end"}}>
<CopyPageButton generateMarkdownRoutes />
</div>
{/* render your normal Docusaurus DocItem layout here */}
</>
);
}
This path is best when maintainers care about first paint, exact visual placement, or avoiding any post-hydration DOM insertion.
Add the plugin to your config:
module.exports = {
plugins: ["docusaurus-plugin-copy-page-button"],
};
<img src="https://github.com/user-attachments/assets/8e7351ba-0cab-489c-bbcf-543603c3bcf1" alt="Docusaurus Copy Page Button Plugin Preview" width="418" height="448" />
Extract Docusaurus documentation content as markdown for AI tools like ChatGPT, Claude, Perplexity, and Gemini
A lightweight Docusaurus plugin that adds a "Copy page" button to your documentation site. Perfect for developers who want to quickly extract documentation content for AI assistance, code reviews, or content analysis.
npm link
方便快捷的文档内容提取工具
该工具未明确声明开源协议,商业使用前请联系原作者确认授权范围,避免侵权风险。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
经综合评估,复制页面按钮 在AI工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | docusaurus-plugin-copy-page-button |
| 原始描述 | 开源AI工具:Docusaurus plugin that adds a copy page button to extract documentation content 。⭐8 · JavaScript |
| Topics | ai-toolscontent-extractionjavascript |
| GitHub | https://github.com/portdeveloper/docusaurus-plugin-copy-page-button |
| 语言 | JavaScript |
收录时间:2026-05-25 · 更新时间:2026-05-30 · License:未公布 · AI Skill Hub 不对第三方内容的准确性作法律背书。