git clone https://github.com/Neutree/teedoc
sudo apt install python3 python3-pip cd teedoc pip3 install -r requirements.txt
python3 teedoc/teedoc_main.py -p examples/teedoc_site install
python3 teedoc/teedoc_main.py -p examples/teedoc_site build python3 teedoc/teedoc_main.py -p examples/teedoc_site serve
在site_config.json中设置插件的本地路径,比如:
site_config.json
"teedoc-plugin-markdown-parser":{ "from": "../../plugins/teedoc-plugin-markdown-parser" }
然后在运行时将会优先从这个路径导入包(将这个路径加入sys.path,然后导入),而不是系统路径,可以保证修改及时生效
sys.path
在 vscode 中调试,直接调试单文件 teedoc_debug.py 文件即可
teedoc_debug.py
Related Issues not found
Please login GitHub to create issue
Related Issues not found
Please login GitHub to create issue