0

这是我的文档文件结构

|__docs/
| |__config-docsify.js
| |__index.html
| |__README.md
|__README.md

如您所见,Docsify 文件位于docs/目录中,我想将该/docs/README.md文件链接到 README 文件 ( /README.md) 的根目录。即,当我单击文件中的链接时/docs/README.md,我被重定向到/README.md文件,或者至少我以某种方式获得了它的内容。

但是,当我尝试添加这样的链接时

<!-- projectfolder/docs/README.md file -->
See the [README](../README.md) file in the root directory.

我被重定向到localhost:3000/../README.md不存在的地方。

有谁知道链接不在 docsify 文件的同一文件夹(或子文件夹)中的文件的方法?


编辑

我正在docs使用

docsify serve docs/
4

1 回答 1

1

您可以使用嵌入文件嵌入外部文件(或 raw.github...):https ://docsify.js.org/#/embed-files

于 2020-05-17T23:49:16.023 回答