Skip to content

代码里面两次单独取了yaml数据 #20

Closed
@xiaohuoni

Description

@xiaohuoni

代码中,这个位置取到的 config 没在任何地方使用。
https://github.com/umijs/father-doc/blob/d79a04cbc12f48096d36ef95d07f2b47db87855a/packages/umi-plugin-father-doc/src/transformer/index.ts#L30
真正 menu 里面取得是
https://github.com/umijs/father-doc/blob/d79a04cbc12f48096d36ef95d07f2b47db87855a/packages/umi-plugin-father-doc/src/routes/getFrontMatter.ts#L18

因为我想把页面的二级导航完成,不想再跑一次编译,所以,在这个 load 的中间过程,保留了heading 的数据,取完才发现,并没有把这个数据放回 route 中。
https://github.com/umijs/father-doc/blob/d79a04cbc12f48096d36ef95d07f2b47db87855a/packages/umi-plugin-father-doc/src/transformer/index.ts#L30
我想做的是二级导航 可以切分支 sub-layout-data
image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions