错误消息“no theme named'sphinx-theme-okfn'”当试图建立CKAN的文档 [英] Error message "no theme named 'sphinx-theme-okfn'" when trying to build CKAN's docs

查看:607
本文介绍了错误消息“no theme named'sphinx-theme-okfn'”当试图建立CKAN的文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将CKAN安装在virtualenv中并激活了virtualenv,并且我在pip-requirements-docs.txt中安装了需求,但是当我尝试构建文档时,出现此错误:

I have CKAN installed in a virtualenv and the virtualenv activated, and I've installed the requirements in pip-requirements-docs.txt, but when I try to build the docs I get this error:

> python setup.py build_sphinx
...
sphinx.errors.ThemeError: no theme named 'sphinx-theme-okfn' found (missing theme.conf?)


推荐答案

问题是CKAN使用的Sphinx主题不是CKAN git存储库本身的一部分,有自己的git repo,它是CKAN git repo的子模块。因此,在构建文档之前,您需要签出子模块:

The problem is that the Sphinx theme that CKAN uses is not part of the CKAN git repository itself, it has its own git repo which is a submodule of the CKAN git repo. So before you can build the docs, you need to checkout the submodule:

> git submodule init
> git submodule update
> python setup.py build_sphinx

这篇关于错误消息“no theme named'sphinx-theme-okfn'”当试图建立CKAN的文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆