我正在尝试在 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 ?
我正在尝试在 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 ?
我找到了答案。您需要允许 IIS 提供降价文件。您可以通过将以下内容添加到您的web.config
(或者如果您还没有,则将其添加为您的)来做到这一点:web.config
<configuration>
<system.webServer>
<staticContent>
<remove fileExtension=".md" />
<mimeMap fileExtension=".md" mimeType="text/markdown" />
</staticContent>
</system.webServer>
</configuration>
Doscify GitHub 上的问题在这里。
我用这个
window.$docsify = {
homepage: 'readme.md'
}