在本地网络上托管 sphinx 文档(静态 html)的最简单方法是什么?

What is the simplest way to host sphinx documentation (static html) on a local network?

我想在本地网络上为我正在编写的 python 应用程序托管 sphinx 文档。

我尝试使用以下 Flask 方法托管它但未成功:

  1. How to serve static files in Flask
  2. Flask: How to serve static html?

上述方法导致 404 或未格式化 html(没有 css,等等)

我也尝试过在 docs/_build/html/ 目录(其中存在 index.html)中使用一个简单的 http server such as python,但只得到了 404。

如何为我的本地网络托管此文档?

您可以使用 Apache 或 Nginx 等网络服务器简单地提供文件。某些文件存储库系统可以让您浏览静态站点(例如 Artifactory)。您也可以使用 readthedocs.org