如何在 Gitlab/Github 的 wiki 中嵌入 src 文件?

How to embed src file in a wiki in Gitlab/Github?

我的项目(在 Gitlab 中)有一个 doc 文件夹,其中包含使用 jsdoc 生成的文档。此文档在构建时生成。

我现在要做的是将生成的 index.html 文件嵌入到 wiki 中,这样在每次构建时,wiki 都会自动更新。
有办法吗?

你可以clone your GLitab wiki locally.

这意味着,在每次本地构建之后,您可以在构建中添加一个步骤以修改和嵌入生成文件的内容(这里是生成的 index.html),然后添加、提交和推送回到你的 GitLab wiki。

作为 OP tigermarques adds :

The only extra thing I had to do was to rename the .html file to either .md or .txt so that Gitlab would show it on the Wiki page list.