Skip to content

Add items parameter to the open-menu-doctree event#15620

Draft
TCOTC wants to merge 2 commits intosiyuan-note:devfrom
TCOTC:feat/doctree
Draft

Add items parameter to the open-menu-doctree event#15620
TCOTC wants to merge 2 commits intosiyuan-note:devfrom
TCOTC:feat/doctree

Conversation

@TCOTC
Copy link
Contributor

@TCOTC TCOTC commented Aug 18, 2025

Note

本 PR 需要按照最新的讨论重新修改

fix #15615

还需要修改 petal:

https://github.com/siyuan-note/petal/blob/3076bfbbff6110c098472046350cba4cb9f178e0/siyuan.d.ts#L167-L171

改成:

"open-menu-doctree": {
    menu: subMenu,
    elements: Element[],
    type: "doc" | "docs" | "notebook",
    items: { id: string, path: string }[],
};

@TCOTC

This comment was marked as resolved.

@TCOTC TCOTC marked this pull request as draft August 25, 2025 11:15
@TCOTC TCOTC changed the title Add ids parameter to the open-menu-doctree event Add items parameter to the open-menu-doctree event Sep 10, 2025
@TCOTC
Copy link
Contributor Author

TCOTC commented Oct 25, 2025

@TCOTC TCOTC marked this pull request as draft October 25, 2025 09:23
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

Comments