No description
Find a file
2023-03-11 15:15:35 +08:00
img 新增 README.md 2023-03-11 13:57:51 +08:00
src 修復切換頁籤畫布消失問題 2023-03-11 12:55:27 +08:00
.editorconfig Initial commit 2023-03-10 17:44:58 +08:00
.eslintignore Initial commit 2023-03-10 17:44:58 +08:00
.eslintrc Initial commit 2023-03-10 17:44:58 +08:00
.gitignore Initial commit 2023-03-10 17:44:58 +08:00
.npmrc Initial commit 2023-03-10 17:44:58 +08:00
esbuild.config.mjs 代碼結構調整 2023-03-10 18:00:18 +08:00
LICENSE Create LICENSE 2023-03-11 15:15:35 +08:00
manifest.json 更新 ReadMe 2023-03-11 14:35:31 +08:00
package.json Initial commit 2023-03-10 17:44:58 +08:00
README-zh.md 更新 ReadMe 2023-03-11 14:35:31 +08:00
README.md 更新 ReadMe 2023-03-11 14:35:31 +08:00
styles.css Initial commit 2023-03-10 17:44:58 +08:00
tsconfig.json Initial commit 2023-03-10 17:44:58 +08:00
version-bump.mjs Initial commit 2023-03-10 17:44:58 +08:00
versions.json Initial commit 2023-03-10 17:44:58 +08:00

Obsidian Source Code Plugin

中文文檔

Technical Support AntV X6

Functionality

  • Parse the code blocks in Obsidian notes, draw the graphs of the method call links, and keep the code blocks in the canvas for easy viewing Demo

How to use

1. In the code comments section of Markdown's code block, write the relevant information with the keyword

Supported keywords Effect
@class Name of the class corresponding to the method
@function Method Name
@call Call the related method, multiple methods are supported. Format: class name @ method name

Example

/** 
 * Register metadata string.
 * 
 * @class ShenyuClientHttpRegistryController
 * @function registerMetadata(@RequestBody final MetaDataRegisterDTO metaDataRegisterDTO)
 * @call RegisterClientServerDisruptorPublisher @ publish(final DataTypeParent data)
 * 
 * @param metaDataRegisterDTO the meta data register dto  
 * @return the string  
 */
@PostMapping("/register-metadata")  
@ResponseBody  
public String registerMetadata(@RequestBody final MetaDataRegisterDTO metaDataRegisterDTO) {  
    // 通过 Publisher 注册 元数据对象  
    publisher.publish(metaDataRegisterDTO);  
    return ShenyuResultMessage.SUCCESS;  
}
/** 
 * Register metadata string. 
 * 
 * @class RegisterClientServerDisruptorPublisher
 * @function publish(final DataTypeParent data)
 * 
 * @param metaDataRegisterDTO the meta data register dto  
 * @return the string  
 */
@Override  
public void publish(final DataTypeParent data) {  
    // 获取 DisruptorProvider 
    DisruptorProvider<Collection<DataTypeParent>> provider = providerManage.getProvider();  
    // 调用 DisruptorProvider 的 onData 方法,发送数据  
    provider.onData(Collections.singleton(data));  
}

2. Click the button to the left of Obsidian to open the canvas