技能 docusaurus-advanced
🦖

docusaurus-advanced

安全 🌐 网络访问📁 文件系统访问⚙️ 外部命令🔑 环境变量

掌握 Docusaurus 配置

文件編寫團隊難以自定義超出基本設置的 Docusaurus 站點。本技能提供有關插件、主題自定義和 MDX 整合的深入指導,適用於高級文件網站。

支持: Claude Codex Code(CC)
📊 69 充足
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“docusaurus-advanced”。 How do I configure a custom API URL in Docusaurus?

预期结果:

  • Expose the API URL via customFields in your docusaurus.config.ts
  • Set environment variable: DOCUSAURUS_API_URL or use default
  • Access in client-side components via themeConfig.apiUrl
  • Configure AuthBar navbar item for authenticated sections

正在使用“docusaurus-advanced”。 What is theme swizzling and when should I use it?

预期结果:

  • Theme swizzling replaces Docusaurus theme components with custom versions
  • Use it when CSS overrides are not sufficient for your customization needs
  • Create component in src/theme/ComponentName to override
  • Avoid modifying node_modules directly to prevent upgrade issues

正在使用“docusaurus-advanced”。 How do I organize my documentation sidebar?

预期结果:

  • Define sidebar structure in sidebars.ts for consistent navigation
  • Use autogenerated sidebars for automatic index creation
  • Group related docs using category nodes
  • Enable collapsible categories for better user experience

安全审计

安全
v5 • 1/16/2026

This skill is a pure documentation guide containing only informational content about Docusaurus configuration. The static analysis flagged 34 pattern-based findings, but evaluation confirms ALL are false positives: the 'hardcoded URLs' are repository metadata, 'C2 keywords' refer to content hash fields, 'weak cryptographic algorithms' are SHA-256 integrity hashes, and 'shell backticks' are documentation file path references. No executable code, command execution, or credential exfiltration exists.

2
已扫描文件
206
分析行数
4
发现项
5
审计总数
审计者: claude 查看审计历史 →

质量评分

38
架构
100
可维护性
87
内容
21
社区
100
安全
83
规范符合性

你能构建什么

自定義文件網站

學習使用自定義 CSS 和佈局修改來為 Docusaurus 站點添加主題和品牌特色。

添加互動組件

整合 MDX 組件和自定義插件,使用互動元素增強文件內容。

配置構建管道

為文件設置 API 整合、環境變量和部署配置。

试试这些提示

基本配置幫助
Explain the structure of docusaurus.config.ts and how to configure the basic settings for a documentation site.
插件選擇指南
What plugins and presets are available in Docusaurus and how do I configure the classic preset for docs, blog, and pages?
主題自定義
How do I customize the Docusaurus theme using CSS overrides and theme swizzling? What files should I modify?
MDX 整合
How do I use MDX to create interactive documentation components in Docusaurus? Provide examples of embedded React components.

最佳实践

  • 使用經典預設集來構建標準文件網站,包含 docs、blog 和 pages
  • 將自定義 CSS 保持在 textbook/src/css/custom.css 中以實現乾淨的主題覆蓋
  • 在 sidebars.ts 中定義側邊欄以實現網站一致的導航

避免

  • 避免直接修改 Docusaurus 源代碼文件;改用 theme swizzling
  • 不要硬編碼 API URL;對不同部署使用環境變量
  • 避免跳過側邊欄配置;這會導致不一致的導航

常见问题

支援哪些版本的 Docusaurus?
本技能涵蓋 Docusaurus v2 和 v3 配置。核心概念適用於各版本。
這個技能可以生成完整的 Docusaurus 網站嗎?
不行。本技能提供配置指導,但無法創建文件或運行命令。
如何向配置添加自定義欄位?
在您的 docusaurus.config.ts 中添加 customFields。這些會暴露給客戶端組件。
使用這個技能時我的數據安全嗎?
是的。本技能只讀取信息並提供指導。不會修改任何文件。
為什麼配置更改後構建失敗?
檢查配置語法、驗證插件兼容性,並確保已安裝所需的依賴項。
這與基礎 Docusaurus 技能相比如何?
高級技能涵蓋插件、theme swizzling 和 MDX。初級技能涵蓋初始設置。

开发者详情

文件结构

📄 SKILL.md