【问题标题】:Error using Docsify in an Azure Web App在 Azure Web 应用程序中使用 Docsify 时出错
【发布时间】:2023-03-18 14:44:01
【问题描述】:

我正在尝试在 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

【问题讨论】:

    标签: docsify


    【解决方案1】:

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

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

    Doscify GitHub 上的问题是here

    【讨论】:

      【解决方案2】:

      我用过这个

      window.$docsify = {
            homepage: 'readme.md'
      }
      

      【讨论】:

        猜你喜欢
        • 2017-07-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-04-15
        • 2019-08-06
        • 1970-01-01
        • 2019-08-24
        相关资源
        最近更新 更多