mirror of
https://github.com/langgenius/dify-docs-archived.git
synced 2026-07-21 18:05:33 -04:00
Gitbook Local 编译问题 #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @THWJ on GitHub (Mar 20, 2024).
因为官方没有提供离线的文档版本,但是我又需要在kindle上离线阅读,因此需要自己编译一个epub或pdf文档出来。
使用工具:docker:billryan/gitbook
问题:
1. 不能识别hint tag
2. 有四个md文档编译不通过
解决方案:
1. 在文档目录下新建 book.json,增加内容:
然后执行:
hint标签问题解决
暂不知道是什么原因。
@dosubot[bot] commented on GitHub (Mar 20, 2024):
Based on the context provided, it seems you've already resolved the issue with the hint tag not being recognized by adding the "hints" plugin to your book.json file. That's great!
For the second issue, the four documents not compiling due to the use of
<figure><image>Image description not available.</image><figcaption></figcaption></figure>method for referencing images, you're correct that this should be replaced with the![]()method.Here's an example of how you can replace the
<figure><image>Image description not available.</image><figcaption></figcaption></figure>with the![]()method:You can find the original document here.
Regarding your question about specific dependencies or plugins required for the compilation of these documents, there are indeed several dependencies and plugins that might not be installed or correctly configured on your system. These include Docker and Docker Compose, FFmpeg, Python 3.10.x, Node.js v18.x (LTS) and NPM version 8.x.x or Yarn, Git, OpenSSL, Celery, and Flask. You can find more detailed information about these dependencies and how to install and configure them in the installation guide.
I hope this helps! If you have any further questions or issues, please don't hesitate to ask.
Sources
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
@THWJ commented on GitHub (Mar 20, 2024):
我好像错了,并不是figure标签的问题。我在其他能正常编译的文档中也看到了这个标签。看来需要再看看是什么标签导致的。
我没有精力去查看具体是什么原因导致的了。可能是billryan/gitbook版本太老(最新的镜像也是6年前的),某些新东西不兼容。
如果你们能直接提供编译好的epub或pdf就好了,非常感谢。
@THWJ commented on GitHub (Mar 20, 2024):
再补充一个错误。使用命令
docker run --rm -v "$PWD:/gitbook" -p 4000:4000 billryan/gitbook gitbook pdf .生成文件时,又出现一个错误文件:@crazywoola commented on GitHub (Mar 28, 2024):
我们其实不太用 local 模式启动
@JayHsu5 commented on GitHub (May 24, 2024):
\ 符号问题