-
Notifications
You must be signed in to change notification settings - Fork 1k
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
增加pdf文档目录 #286
Comments
手动做了一个目录。使用方式如下:
|
如果遇到未来 PDF 版本更新,或者想要从头生成带目录的 PDF,可以按照如下步骤操作
fs.writeFileSync("{path_to_folder}" + "/sidebar.json", JSON.stringify(sidebar));
fs.writeFileSync("{path_to_folder}" + "/exportPages.json", JSON.stringify(exportPages));
如果不想自己生成 PDF,只是想要自己生成目录的话,只需要做如下改动
但这样可能会有一些小问题:如果官网比 PDF 新(新在这里指文章增加),用官网的文件结构生成的 PDF 目录会包含实际 PDF 文件中没有的项,在脚本中会自动跳过,但是依然会提示。
生成原理:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
希望增加pdf的文档目录,方便统筹阅读
The text was updated successfully, but these errors were encountered: