Abd*_*man 7 python django python-sphinx github-pages
我已经使用 Sphinx 为 Django 项目创建了文档,并html在执行make html命令后将文件夹的内容复制到docs/我的 repo 文件夹中并将其推送到 Github。之后,我将此docs/目录设置为Github Pages,现在它正在加载文档,但css不起作用,它只是带有任何样式的文档文本。
这是我的狮身人面像config.py:
import os
import sys
import django
sys.path.insert(0, os.path.abspath('..'))
os.environ['DJANGO_SETTINGS_MODULE'] = 'PROJECT_NAME.settings'
django.setup()
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
html_theme = 'bizstyle'
html_static_path = ['_static']
BUILDDIR = '.'
Run Code Online (Sandbox Code Playgroud)
这是来自 GitHub 页面的文档页面的链接:https : //arycloud.github.io/Tagging-Project-for-Machine-Learning-Natural-Language-Processing/
有什么问题?
| 归档时间: |
|
| 查看次数: |
1241 次 |
| 最近记录: |