2

我正在尝试在 Azure Web 应用程序中运行Docsify 。我得到一个 404,看起来我在配置站点时缺少一些东西,也许?

Failed to load resource: the server responded with a status of 404 (Not Found)
index.html/README.md 

有没有人在 Azure Web App 中成功使用过 Docsify ?

4

2 回答 2

1

我找到了答案。您需要允许 IIS 提供降价文件。您可以通过将以下内容添加到您的web.config(或者如果您还没有,则将其添加您的)来做到这一点:web.config

<configuration>
  <system.webServer>
    <staticContent>
      <remove fileExtension=".md" />
      <mimeMap fileExtension=".md" mimeType="text/markdown" />
    </staticContent>
  </system.webServer>
</configuration>

Doscify GitHub 上的问题在这里

于 2018-03-07T08:34:05.807 回答
-1

我用这个

window.$docsify = {
      homepage: 'readme.md'
}
于 2019-07-10T14:14:48.757 回答