Skip to content

feat: adjust docs sidebar menu order and hide socket section - #5

Merged
twosugar merged 1 commit into
mainfrom
feat/adjust_docs_menu_order
Jul 3, 2026
Merged

twosugar merged 1 commit into
mainfrom
feat/adjust_docs_menu_order

Conversation

@twosugar

@twosugar twosugar commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

内容

调整文档侧边栏菜单顺序(三个语言一致):

Quote → Trade → Fundamental → Market → Content → Account → Screener → Legal → API Reference → Q&A → LLM → Changelog

顶部的「平台介绍 / 快速开始」保持不动。

实现

  • gen.ts 支持目录 _category_.json 的 hidden 字段与文件 frontmatter 的 sidebar: false
  • Socket 目录从菜单移除(页面保留,站内链接仍可访问)
  • 无 _category_.json 的顶层目录(fundamental / market / content / account / screener / legal)补齐 position;已有的只改 position、保留原 label
  • LLM 与 Changelog 顺序对调(改 frontmatter sidebar_position)

顺手修复

侧边栏此前出现两个 "API Reference"(api.md frontmatter 已声明 sidebar: false 但生成器不识别该字段),现已尊重该字段,重复项消失。

🤖 Generated with Claude Code

菜单顺序调整为:Quote / Trade / Fundamental / Market /
Content / Account / Screener / Legal / API Reference /
Q&A / LLM / Changelog,三个语言一致。

- gen.ts 支持目录 _category_.json 的 hidden 字段与文件
  frontmatter 的 sidebar: false(修复 api.md 重复出现在
  侧边栏的问题)
- Socket 目录通过 hidden 从菜单移除(页面仍可直链访问)
- 无 _category_.json 的目录补齐 position

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@twosugar
twosugar merged commit 88ef3ec into main Jul 3, 2026
2 checks passed
@twosugar
twosugar deleted the feat/adjust_docs_menu_order branch July 3, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant