Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎样添加 host #20

Open
LianTianNo1 opened this issue Aug 31, 2023 · 6 comments
Open

怎样添加 host #20

LianTianNo1 opened this issue Aug 31, 2023 · 6 comments

Comments

@LianTianNo1
Copy link

ytool pull 176XXXXXX XXX https://tengdie.yuque.com
这样好像直接把host当作知识库库了

@vannvan
Copy link
Owner

vannvan commented Aug 31, 2023

ytool pull 176XXXXXX XXX https://tengdie.yuque.com 这样好像直接把host当作知识库库了

考虑把所有参数都放进命令行会加重使用的负担,所以host只支持文件配置的方式,yuque.config.json

{
  "userName": "XXX",
  "password": "XXX",
  "tocRange":["xxx知识库", "yyy知识库/zzz目录"], 
  "skipDoc": false, 
  "linebreak": false,
  "host":"https://tengdie.yuque.com/",
  "output":"./docs"
}

@LianTianNo1
Copy link
Author

谢谢,他已经能正常使用!!!

@teacoffee123
Copy link

您好,我用这个yuque.config.json这个配置,拉取团队空间的文档,这个hosts和output 这两个参数都没生效。都是只拉取到了个人的文章。配置看了好几遍没错= ={
"userName": "AAAAA",
"password": "AAAAA",
"tocRange": [
"xxx文档"
],
"output": "./mydocs",
"linebreak": false,
"only_note": false,
"host":"https://AAAAA.yuque.com"
}

@vannvan
Copy link
Owner

vannvan commented Nov 1, 2023

您好,我用这个yuque.config.json这个配置,拉取团队空间的文档,这个hosts和output 这两个参数都没生效。都是只拉取到了个人的文章。配置看了好几遍没错= ={ "userName": "AAAAA", "password": "AAAAA", "tocRange": [ "xxx文档" ], "output": "./mydocs", "linebreak": false, "only_note": false, "host":"https://AAAAA.yuque.com" }

请问使用的是程序版吗?程序版目前团队的还不支持,如果是Node.js包的话尝试clear一下再重新pull呢

@teacoffee123
Copy link

大佬,我用的是nodejs版的,clear试过了还是拉取不到团队空间的文档= =是不是个人账号的那个token访问不到团队空间

@vannvan
Copy link
Owner

vannvan commented Nov 1, 2023

大佬,我用的是nodejs版的,clear试过了还是拉取不到团队空间的文档= =是不是个人账号的那个token访问不到团队空间

个人账号被邀请团队是可以拿到空间知识库列表的,需要在网页端确认一下是否有知识库访问权限,如果有权限但脚本还是拿不到我wx

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

No branches or pull requests

3 participants