【发布时间】:2022-11-11 16:36:11
【问题描述】:
我有一个quarto 网站和一个用bookdown 制作的gitbook 的.html 文件(位于quarto 网站名为_notes 的子文件夹中)。如何将这个 gitbook 嵌入到 quarto 网站中?
quarto网站源代码在:https://github.com/lnalborczyk/IMSB2022 网站的渲染版本(通过 Github 页面渲染)位于:https://www.barelysignificant.com/IMSB2022/
现在,当我单击导航栏中的“Notes”时,我想重定向到 bookdown gitbook(即位于_notes/docs/ 中的index.html 文件)。因此,我在_quarto.yml 的导航栏选项中添加了以下命令:
navbar:
pinned: true
search: true
background: "#1c5253"
right:
- syllabus.qmd
- planning.qmd
- content/index.qmd
- resources.qmd
- install.qmd
- text: "Notes"
href: "_notes/docs/index.html"
并且还使用以下方法将 bookdown 文件夹添加为资源:
resources:
- "files/"
- "_notes/docs/"
这在本地工作(即通过“预览网站”),但在通过 Github 页面呈现时失败(即,它给出 404 错误消息)。
关于如何使其在线工作的任何想法?
谢谢您的帮助!
拉迪斯拉斯
【问题讨论】: